KosmoKrator

sales

Square MCP, CLI, and Lua Integration for AI Agents

Square integration docs for AI agents: MCP gateway setup, Square CLI commands, Lua API reference, credentials, and function schemas.

7 functions 7 read 0 write Bearer token auth

Square for agents

Credentials can be configured manually in web or CLI hosts.

Use this integration from Lua code mode, the headless integrations CLI, or the KosmoKrator MCP gateway. The same package metadata powers all three surfaces.

Machine-Readable Metadata
integration_slug
square
route_slug
square
package
square
auth_strategy
bearer_token Bearer token
cli_setup_supported
true
cli_runtime_supported
true
mcp_gateway_supported
true
lua_supported
true
supports_multi_account
true

Quick Links

Square MCP Client Matrix

Use these pages when a specific agent client or framework needs copy-pasteable MCP setup for Square.

Square CLI Matrix

Use these pages for direct Square CLI workflows in scripts, CI, cron, and agent wrappers.

Function Catalog

FunctionTypeParametersDescription
square.square_get_current_user Read read 0 Get the current authenticated Square merchant account. Returns merchant details including business name, country, currency, and status.
square.square_get_customer Read read 1 Retrieve a Square customer by ID. Returns full customer details including email, phone, address, and cards on file.
square.square_get_order Read read 1 Retrieve a Square order by ID. Returns full order details including line items, totals, taxes, and discounts.
square.square_get_payment Read read 1 Retrieve a Square payment by ID. Returns full payment details including amount, status, card details, and processing fees.
square.square_list_customers Read read 4 List Square customers with optional filtering. Supports pagination with cursor.
square.square_list_orders Read read 4 List Square orders for a specific location. Requires a location_id. Supports filtering by order states and pagination with cursor.
square.square_list_payments Read read 5 List Square payments with optional filtering. Supports filtering by location ID, begin_time / end_time (ISO 8601), and pagination with cursor.