Skip to main content
Glama
FxSocket MCP

FxSocket MCP

Official

Get account journal

get_journal
Read-onlyIdempotent

Retrieve an account's in-memory journal of cTrader connection and trade events to diagnose why trading stopped or identify who sent a trade.

Instructions

The journal of one cTrader account, newest first: when it signed in at cTrader, became ready to trade, lost and regained its connection, and when its access was refreshed or refused; and every order, change and close the bridge carried out, with the request, the outcome (retcode, order, deal, position, or the error), the time it took, the caller's clientOrderId and User-Agent. Use it to answer why an account stopped trading or who sent a trade. The bridge keeps it in memory, at most 7 days and 1000 entries, and a bridge restart starts it afresh, so for the full record of closed trades use get_trade_history. cTrader accounts only.

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": {
      "account_id": "<account_id>"
    },
    "name": "get_journal"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNoconnection (the link to cTrader), trade (trade requests), or any.any
limitNo
sinceNoOnly entries at or after this moment (UTC). Date (YYYY-MM-DD) or ISO-8601 datetime, in the broker's server time.
account_idYesAn account_id from list_accounts.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive, closed-world), and the description adds substantial context beyond them: in-memory storage, retention of at most 7 days or 1000 entries, and that a bridge restart resets the journal. That retention/volatility caveat is exactly the kind of trait annotations cannot express. It stops short of describing pagination or ordering behavior when limit is hit, which keeps it from a 5.

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 resource and ordering, then contents, then usage, then the retention caveat and the sibling pointer. The middle enumeration is dense but earns its place because there is no output schema. Slightly long single sentence in the middle keeps it from being maximally tight.

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?

With no output schema, the description carries the return-shape burden and does so by listing the entry fields (retcode, order, deal, position, error, duration, clientOrderId, User-Agent). Combined with retention limits, restart volatility, account-type scope, and the get_trade_history fallback, an agent has everything needed to call this correctly and interpret the result.

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 75%, with kind's enum values and since's format and timezone documented in the schema itself. The description adds no meaning about the four parameters (nothing on limit, since, or account_id beyond what the schema states); its detail is about returned fields, not inputs. Baseline 3 is appropriate where the schema already does most of the work.

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 ('The journal of one cTrader account, newest first') and enumerates exactly what the journal contains: connection lifecycle events (sign-in, ready to trade, lost/regained connection, access refreshed or refused) and every order, change and close with request/outcome/timing. It also names its sibling get_trade_history as the different thing, so an agent can separate them 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 concrete use cases in question form ('why an account stopped trading or who sent a trade') and an explicit exclusion with the correct alternative: for the full record of closed trades use get_trade_history. It also scopes the tool with 'cTrader accounts only', which tells the agent when not to call it.

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