Skip to main content
Glama
FxSocket MCP

FxSocket MCP

Official

List trading accounts

list_accounts
Read-onlyIdempotent

Lists every MT4, MT5 and cTrader account linked to your API key with account IDs, platform, broker and connection status, so you get the account_id values other tools require. Optionally include live balances.

Instructions

Every MT4, MT5 and cTrader account linked to this API key: id, nickname, platform, broker server, login and connection status (connected / connecting / disconnected / error). Call this first: the other tools take its account_id values. Set include_balances to also read each account's live balance, equity and floating profit from its terminal, plus totals per currency; that reads at most 50 accounts, and one that cannot be read gets a balance_error instead of failing the call. For one account's margin, leverage and settings, use get_account instead.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list_accounts"
  }
}

Input Schema

NameRequiredDescriptionDefault
include_balancesNoAlso read live balance, equity and floating profit from each account's terminal (one extra read per account, so slower).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), and the description adds genuinely new behavior: a 50-account cap for balance reads, per-account failure isolation via balance_error rather than a whole-call failure, and the extra terminal read cost. These are operational traits not derivable from the annotations.

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 returned field set, then ordering guidance, then the optional flag, then the sibling routing — a logical sequence with no filler sentences. It is a dense single paragraph with several parentheticals, which is slightly harder to scan than it needs to be.

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?

There is no output schema, so the description carries the return-shape burden — and it enumerates the fields, the status values, and the error case. For a one-optional-parameter listing tool, 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.

Parameters4/5

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

Schema coverage is 100% and the boolean already explains the extra read, so the description's job is incremental — which it does by adding what balances are returned (balance, equity, floating profit), per-currency totals, and the 50-account limit. It does not mention the default value of false, but the schema covers that.

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?

Specific verb-resource pair with the returned fields enumerated (id, nickname, platform, broker server, login, connection status with its enum values). It also draws the boundary against the single-account sibling get_account, so an agent can separate the two without inspecting 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?

"Call this first: the other tools take its account_id values" gives an explicit ordering rule, and "For one account's margin, leverage and settings, use get_account instead" names the alternative and the condition that selects it. Both when-to-use and when-not-to-use are stated.

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