Skip to main content
Glama

fxapis — MetaTrader 5

List deals

list_deals
Read-onlyIdempotent

An account's deal history as the broker recorded it, newest first, including stops that fired, swaps and manual trades. Realised profit is here. Example: {"account_id": "", "since": "2026-10-01T00:00:00Z"}

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoRows per page, 1–200. Default 25.
sinceNoISO 8601 date-time; only rows at or after it.
untilNoISO 8601 date-time; only rows at or before it.
cursorNo`nextCursor` from the previous page.
symbolNoThe symbol exactly as this broker names it, e.g. "EURUSD" — some brokers add a suffix such as "EURUSD.r".
account_idYesThe fxapis account id (a UUID) from list_accounts — not the MT5 login number.
response_formatNoconcise (default): what a next step needs. detailed: every field the API returns.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
hintNo
itemsYes
totalYes
truncatedNo
next_cursorYesPass as cursor for the next page; null on the last.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds genuinely new behavior: rows come back newest-first, and the scope includes closed/fired stops, swaps and manual trades as 'the broker recorded it'. It stops short of describing pagination or result shape, but with annotations carrying safety this is solid.

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?

Two tight sentences front-loaded with what the tool returns, followed by a compact invocation example. Every element earns its place, though the example is somewhat redundant given the fully documented schema.

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

Completeness4/5

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

With an output schema present, return values need no explanation, and the description still usefully signals sorting order and that realised profit is included. Pagination, filtering by symbol, and the concise/detailed response_format are only covered by the schema, which is acceptable but leaves the description short of fully self-sufficient.

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 the schema already documents limit, since, until, cursor, symbol, account_id and response_format in detail. The description's inline example shows how account_id and since combine, which is mild added value, but nothing beyond the schema is explained. Baseline 3 applies.

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 (list an account's deal history) and goes further by characterizing the contents: stops that fired, swaps, manual trades, and realised profit. That content profile implicitly separates it from list_positions and list_orders, though neither sibling is named explicitly.

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

Usage Guidelines3/5

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

'Realised profit is here' hints that this is the right tool when the agent needs realised rather than unrealised P&L, but the description never states when to use it over list_positions or list_orders, nor any exclusions or prerequisites. Usage is implied rather than directed.

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.

Resources