Skip to main content
Glama

FiveSocket MT5 MCP Server

List closed trades

list_closed_trades
Read-onlyIdempotent

Read one bounded page of closed MT5 trades. Supply an explicit initial window end, then reuse nextCursor without from or to.

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": {
      "accountId": "<accountId>",
      "query": "<query>"
    },
    "name": "list_closed_trades"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYes
accountIdYes

Output Schema

NameRequiredDescriptionDefault
dataYes
loginYes
serverYes
accountIdYes
latencyMsYes
nextCursorYes
observedAtYes
historyStateNo
historySyncedYes
settledThroughNo
serverClockOffsetSourceNo
serverClockOffsetSecondsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent and non-destructive, so the safety profile is covered. The description adds pagination behavior (bounded pages, cursor reuse) and the requirement of an explicit window end. It does not disclose what the cursor represents, whether it expires, or how limit interacts with page boundaries.

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?

Two short sentences with no filler, front-loading the resource and scope before the pagination instruction.

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?

An output schema exists, so return values need not be explained, and annotations cover safety. Still, gaps remain for a cursor-paginated tool: cursor lifetime/validity, the effect of limit, and the meaning of requireSynced are untouched, and the cursor/nextCursor naming difference could cause a bad call.

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?

The description clarifies the from/to exclusivity with cursor, which is genuine added meaning. However it refers to 'nextCursor' while the schema property is named 'cursor', creating a naming mismatch, and it says nothing about limit, requireSynced, or accountId. Schema description coverage is reported at 0%, so more compensation was warranted.

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?

The description states a specific verb and resource ('Read ... closed MT5 trades') and scopes it to 'one bounded page', so an agent knows this is a paginated read of closed trade history. It does not explicitly differentiate itself from siblings such as list_deals or list_historical_orders, which is the only thing keeping it from a 5.

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

Usage Guidelines4/5

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

Clear procedural guidance: supply an explicit initial window end, then reuse the cursor without from or to. This tells the agent exactly how to sequence calls. It stops short of naming when to prefer this over list_deals or list_historical_orders.

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.