Skip to main content
Glama

connect_exchange

Connect a centralized exchange account using API key credentials. Default to get_account_import_url instead: give the user its link so they enter the key in the Summ web app's secure form. Never ask the user to paste an API key or secret into the chat. Use this tool only when the user has already given you a read-only API key and explicitly asks you to connect it. Required preflight: call find_integration immediately before this tool with your best guess for the exchange name (e.g. 'coinbase', 'binance') and copy the returned integrationId into exchangeName. OAuth exchange connections and CSV uploads are web-only. After connecting, use sync_data to import transactions.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "exchangeName": "<exchangeName>",
      "apiKey": "<apiKey>",
      "secret": "<secret>",
      "context": "<context>",
      "llm_model": "<llm_model>"
    },
    "name": "connect_exchange"
  }
}

Input Schema

NameRequiredDescriptionDefault
uidNoSub-account UID (some exchanges)
nameNoOptional display name
apiKeyYesExchange API key
secretYesExchange API secret
contextYesWrite one short, abstract, third-person sentence about the task. Refer to the requester only as "the user". Refer to any selected customer, client profile, business, portfolio, account, or data source only as "the client". Never copy, abbreviate, initialize, quote, or paraphrase a user or client name from the conversation, request, or tool data. Never put a name, initials, label, possessive name, business name, email, account name, or identifier before or after "the user" or "the client". Rewrite every named reference to exactly "the user" or "the client". For example, rewrite "User wants to know the inventory method for the client Alex R" as "The user wants to know the inventory method for the client." Do not include wallet names, wallet addresses, transaction hashes, amounts, balances, prices, dates, tax identifiers, account identifiers, or other personal or financial values. Use only generic data categories such as "transactions", "accounts", "wallets", or "tax settings". If a safe abstract summary is not possible, write exactly "the request contains sensitive details".
clientIdNoThe client this call acts for — its ID comes from list_clients. Accountants and collaborators: set it on every client-scoped call to operate on that client's data. Only accountant/collaborator accounts have clients; individual accounts omit it.
passwordNoAPI passphrase (some exchanges)
llm_modelYesThe exact model identifier you (the assistant) are running as, taken from your system prompt or environment (e.g. "claude-opus-4-8", "gpt-5.2"). Used for analytics only. If you do not know your model identifier with certainty, pass "unknown" — never guess.
exchangeNameYesExchange integration slug for API key flow. Call find_integration right before this tool with your best guess for the exchange name (e.g. 'coinbase', 'binance') and copy the returned `integrationId`.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already mark this as a non-read-only, open-world, non-destructive write, and the description adds material context beyond that: a secrets-handling constraint (never solicit keys in chat), a hard preflight dependency on find_integration whose output must be copied into exchangeName, and a post-connect action. That is exactly the operational context annotations cannot express.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loads the core action, then the preferred alternative, then the eligibility condition, then the preflight, then the next step — a sensible priority order. Sentences are short and each carries a distinct operational instruction, with no filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 9-parameter, 5-required credential-handling tool with no output schema, the description covers the safety posture, the mandatory call ordering, the alternative paths, and the follow-up. Nothing an agent needs to invoke it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3; the description still adds real meaning by explaining that exchangeName is an integration slug produced by a prior find_integration call, not a free-form exchange label. It says less about optional fields like uid, password, and name, leaving those to the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Connect a centralized exchange account using API key credentials') and immediately scopes it against the sibling it is not ('Default to get_account_import_url instead'). It also names connect_wallet and CSV uploads as different paths, so an agent can distinguish this tool from neighbors without opening schemas.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit when-to-use ('only when the user has already given you a read-only API key and explicitly asks you to connect it'), when-not-to-use (default to get_account_import_url; OAuth and CSV are web-only), and a mandatory prerequisite ('call find_integration immediately before this tool'). It also names the follow-up tool (sync_data) for the next step.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources