Skip to main content
Glama
CCXT MCP Server

CCXT MCP Server

by MyronKoch

account_balance

Retrieve the balance for a specified cryptocurrency exchange using API credentials set in environment variables. Use it to check available funds before trading or portfolio analysis.

Instructions

Get account balance (requires API credentials set in environment variables)

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": "account_balance"
  }
}

Input Schema

NameRequiredDescriptionDefault
exchangeYesExchange ID (credentials must be set as EXCHANGEID_API_KEY and EXCHANGEID_SECRET environment variables)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden; it does disclose the key operational fact that API credentials must be present as environment variables. It stops short of describing the read-only nature of the call, what balance data is returned (per-currency? totals?), or any rate limits or failure modes.

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?

One short sentence with the action front-loaded and the credential caveat in a parenthetical. Zero filler, though the parenthetical duplicates information already present in the parameter schema.

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

Completeness3/5

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

For a single-parameter read tool with a fully documented schema, the minimum needed to invoke it is present: which exchange, plus the credential prerequisite. With no output schema, the description should ideally note the shape of the returned balance data, which it omits.

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

Parameters2/5

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

Schema coverage is 100% and the sole parameter 'exchange' is fully documented in-schema, including the EXCHANGEID_API_KEY/SECRET naming convention. The description adds no meaning beyond the schema—it only repeats the credential requirement at a generic level—so the baseline 3 is not earned, though nothing is lost since the schema is complete.

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

Purpose4/5

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

States a specific verb and resource: 'Get account balance'. No sibling tool covers balances (siblings are analytics, market data, and exchange metadata), so there is no ambiguity to resolve, but the description also does not explicitly differentiate or scope the result (e.g., which currencies/wallets).

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

Usage Guidelines2/5

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

The only contextual note is a credential prerequisite, which is a precondition rather than usage guidance. There is no statement of when to call this versus other tools, whether it applies per-exchange, or what conditions might make a call fail beyond missing credentials.

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