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

NameTypeDescription
client_idstringThe Square-issued ID for your application, which is available on the **OAuth**…
access_tokenstringThe access token of the merchant whose token you want to revoke. Do not…
merchant_idstringThe ID of the merchant whose token you want to revoke. Do not provide a value…
revoke_only_access_tokenbooleanIf 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:

call_tool arguments
{
  "name": "square_api__revoke_token",
  "arguments": {}
}

Or connect the Square API server directly, which lists 308 tools including this one:

Run in your terminal
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 ….

More from Square API