Home / Servers / Square API / revoke_token
RevokeToken
An MCP tool from the Square API server, hosted on mcp.hjlabs.in.
RevokeToken Revokes an access token generated with the OAuth flow. If an account has more than one OAuth access token for your application, this endpoint revokes all of them, regardless of which token you… [POST /oauth2/revoke]
Name on the gateway: square_api__revoke_token · may change things.
Parameters
| Name | Type | Description |
|---|---|---|
client_id | string | The Square-issued ID for your application, which is available on the **OAuth**… |
access_token | string | The access token of the merchant whose token you want to revoke. Do not… |
merchant_id | string | The ID of the merchant whose token you want to revoke. Do not provide a value… |
revoke_only_access_token | boolean | If true, terminate the given single access token, but do not terminate the… |
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__revoke_token",
"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 revoketoken tool with client_id set to ….