Skip to main content
Glama
trading-212-mcp

trading-212-mcp

by joe-yeomans

Order history

get_order_history
Read-only

Retrieve historical filled, cancelled, and rejected orders newest first, with pagination and optional ticker filtering to review past trading activity.

Instructions

Historical (filled, cancelled, rejected) orders, newest first. Paginated via nextCursor.

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

Input Schema

NameRequiredDescriptionDefault
limitNoItems per page (max 50, default 20).
cursorNoCursor from a previous call's nextCursor, to fetch the next page.
tickerNoFilter by ticker, e.g. AAPL_US_EQ.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered. The description still adds real behavioral context: which order statuses are included (and implicitly that pending is excluded), the sort order (newest first), and the pagination mechanism (nextCursor). It does not state limits on history depth or rate limits, keeping it short of 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?

Two terse sentences with the scope front-loaded ahead of the pagination note; nothing is wasted. The fragment style (no verb) slightly reduces clarity compared with a full sentence, but the information density is high.

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 three-optional-parameter read tool with annotations and no output schema, the definition covers scope, ordering and pagination adequately. It stops short of describing the order record shape or what an empty history looks like, so it is sufficient but not complete.

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 limit, cursor and ticker are already fully documented, establishing the baseline of 3. The description's mention of nextCursor usefully ties the cursor parameter to the return value, but adds no format or constraint detail beyond the schema.

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 identifies the resource (historical orders) and scopes it by status — filled, cancelled, rejected — which implicitly separates it from pending-order tools. It lacks an explicit verb ('list'/'get'), but the resource and scope are specific enough that an agent can tell what it retrieves.

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?

The word 'Historical' plus the status enumeration implies this is for completed/terminal orders, which implicitly contrasts with get_pending_order(s). However, no alternative is named and there is no explicit statement of when to prefer this over get_transaction_history or the pending-order siblings, leaving the routing to inference.

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