Skip to main content
Glama

connect

Idempotent

Connect any exchange configured on Autoview (see catalog) to your account: creates a webhook and links it to your already-saved credentials for that exchange, the same steps 2-4 the website's setup wizard runs. Safe to call more than once -- if a webhook is already linked, it reports connected:true and creates nothing new. If you have no credentials saved for this exchange yet, returns connect_url instead: open it in a browser to add them, then call connect again with the same exchange (for a paper/testnet exchange you can instead call link with its keys; real-money keys are browser-only). Connecting a real-money (non-paper) exchange requires a live-scoped token; any token can connect a paper/testnet exchange. Requires your Autoview account token.

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": {
      "exchange": "<exchange>"
    },
    "name": "connect"
  }
}

Input Schema

NameRequiredDescriptionDefault
tokenNoyour Autoview account token — an av_mcp_ personal access token, generate one at /account/tokens/ on the Autoview site. Omit this if your MCP client already sends it as an `Authorization: Bearer` header (Claude Code, Cursor, and most non-browser clients do this automatically once configured).
hook_idNolink this specific existing hook instead of letting connect pick or create one (see the `hooks` tool for your hook ids). Must have no other exchange linked -- an order fires on every exchange a hook links, so connect refuses to add a second one; omit hook_id to get a dedicated hook
exchangeYesthe exchange to connect

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / exchange / enum
      Previous value: -[
      -  "OANDAPRACTICE",
      -  "KRAKEN",
      -  "CRYPTO",
      -  "CRYPTODEMO",
      -  "BYBITTESTNET",
      -  "BYBITSPOTTESTNET",
      -  "TRADOVATESIM"
      -]New value: +[
      +  "ALPACA",
      +  "ALPACAPAPER",
      +  "BINANCE",
      +  "BINANCEDELIVERY",
      +  "BINANCEDELIVERYTESTNET",
      +  "BINANCEFUTURES",
      +  "BINANCEFUTURESTESTNET",
      +  "BINANCETEST",
      +  "BINANCEUS",
      +  "BITMEX",
      +  "BITMEXTESTNET",
      +  "BITFINEX",
      +  "BITGET",
      +  "BITGETDEMO",
      +  "BITGETMIX",
      +  "BITGETMIXCOPY",
      +  "BITGETMIXDEMO",
      +  "BYBIT",
      +  "BYBITCOPY",
      +  "BYBITCOPYTESTNET",
      +  "BYBITSPOT",
      +  "BYBITSPOTTESTNET",
      +  "BYBITTESTNET",
      +  "CAPITAL",
      +  "CAPITALDEMO",
      +  "CHARLESSCHWAB",
      +  "COINBASE",
      +  "CRYPTO",
      +  "CRYPTODEMO",
      +  "DERIBIT",
      +  "DERIBITTESTNET",
      +  "GATE",
      +  "GATEFUTURES",
      +  "GATEFUTURESTESTNET",
      +  "GEMINI",
      +  "GEMINISANDBOX",
      +  "HUOBI",
      +  "HUOBIFUTURES",
      +  "HUOBILINEAR",
      +  "HUOBISWAP",
      +  "HYPERLIQUID",
      +  "HYPERLIQUIDTESTNET",
      +  "KRAKEN",
      +  "KRAKENFUTURES",
      +  "KUCOIN",
      +  "KUCOINFUTURES",
      +  "KUCOINFUTURESCOPY",
      +  "OANDA",
      +  "OANDAPRACTICE",
      +  "OKX",
      +  "OKXDEMO",
      +  "OKXEEA",
      +  "OKXEEADEMO",
      +  "OKXUS",
      +  "OKXUSDEMO",
      +  "TRADESTATION",
      +  "TRADESTATIONSIM",
      +  "TRADOVATE",
      +  "TRADOVATESIM"
      +]
  2. Changed1 schema field changed
    • changedInput schema / properties / hook_id / description
      Previous value: -"link this specific existing hook instead of letting connect pick or create one (see the `hooks` tool for your hook ids)"New value: +"link this specific existing hook instead of letting connect pick or create one (see the `hooks` tool for your hook ids). Must have no other exchange linked -- an order fires on every exchange a hook links, so connect refuses to add a second one; omit hook_id to get a dedicated hook"
  3. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare non-read-only, idempotent, non-destructive; the description adds genuine behavioral context beyond that: the idempotent no-op path ('reports connected:true and creates nothing new'), the fallback return shape (connect_url), the token scoping rule, and the hook_id refusal condition. This is exactly the extra context annotations cannot carry.

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

Conciseness4/5

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

Front-loaded with the core action and result, followed by idempotency, fallback, and auth constraints in roughly priority order. It is dense but every clause is load-bearing; the closing 'Requires your Autoview account token' slightly overlaps the token schema description.

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 3-param tool with no output schema, the description covers the full call lifecycle: what it creates, idempotent re-calls, the alternate connect_url return, token scope requirements, and the alternative sibling for key-based linking. Nothing an agent needs to call it correctly is missing.

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

Parameters3/5

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

Schema description coverage is 100%, so all three parameters (token, hook_id, exchange) are already documented in the schema, which sets the baseline at 3. The description adds only indirect meaning for exchange via the paper/testnet discussion; it does not elaborate parameter syntax or formats beyond 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 any exchange... creates a webhook and links it to your already-saved credentials') and explicitly frames it against the sibling set by describing it as 'the same steps 2-4 the website's setup wizard runs'. An agent can distinguish connect from link, hooks, and setup without opening a schema.

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 and when-not-to-use guidance: call link instead for paper/testnet keys, use the returned connect_url when no credentials exist, and call connect again after adding them. It also names prerequisites (live-scoped token for real-money exchanges). Nothing is left to inference.

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.