Home / Servers / Square API / list_device_codes
ListDeviceCodes
An MCP tool from the Square API server, hosted on mcp.hjlabs.in.
ListDeviceCodes Lists all DeviceCodes associated with the merchant. [GET /v2/devices/codes]
Name on the gateway: square_api__list_device_codes · read-only.
Parameters
| Name | Type | Description |
|---|---|---|
cursor | string | A pagination cursor returned by a previous call to this endpoint. Provide this… |
location_id | string | If specified, only returns DeviceCodes of the specified location. Returns… |
product_type | TERMINAL_API | If specified, only returns DeviceCodes targeting the specified product type.… |
status | UNKNOWN | UNPAIRED | PAIRED | EXPIRED | If specified, returns DeviceCodes with the specified statuses. Returns… |
How to call it
Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:
{
"name": "square_api__list_device_codes",
"arguments": {}
}Or connect the Square API server directly, which lists 308 tools including this one:
claude mcp add --transport http hj-square-api https://mcp.hjlabs.in/mcp/square-api \
--header "Authorization: Bearer YOUR_API_KEY"Try asking
Use the listdevicecodes tool with cursor set to ….