Skip to main content
Glama
florinel-chis

oanda-mcp

get_trade

Read-only

Fetch detailed information about a specific trade, including entry price, units, profit or loss, margin, and attached take-profit or stop-loss orders.

Instructions

Get the details of a single trade on the configured account.

Returns {"trade": {...}, "lastTransactionID": "..."} where the trade has id, instrument, price (entry fill, decimal string), openTime (RFC3339), state (OPEN, CLOSED, or CLOSE_WHEN_TRADEABLE), initialUnits / currentUnits (decimal strings; positive = long, negative = short), realizedPL, unrealizedPL, marginUsed, financing (decimal strings in the home currency), any attached takeProfitOrder / stopLossOrder / trailingStopLossOrder, and — for closed trades — averageClosePrice and closeTime.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
trade_specifierYesTrade ID (e.g. '42') or '@' followed by the client-assigned ID (e.g. '@my_trade').

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

The description provides extensive details about the return payload, including field semantics (e.g., decimal strings, positive/negative units), trade states, and closed-trade fields. It also notes the account context. This goes well beyond the readOnlyHint annotation, though it does not address error handling or rate limits.

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?

The description is moderately long but each sentence provides meaningful details about the output structure and field types. It is well-organized, with the main purpose front-loaded and subsequent information presented as a clear list.

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?

For a single-trade retrieval tool with one parameter and an output schema, the description is highly complete. It covers the return format, key fields, state values, and special cases like closed trades, making it sufficient for an agent to understand the tool's behavior.

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 input schema fully describes the trade_specifier parameter with an example and format. The tool description does not add any additional parameter-level details, so it matches the baseline for high schema coverage.

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?

The description clearly states the tool retrieves a single trade's details, distinguishing it from list_trades/list_open_trades by explicitly specifying 'single trade'. The verb 'Get' and resource 'details of a single trade' are specific and unambiguous.

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?

There is no explicit guidance on when to use this tool versus alternatives. The description focuses on the operation and return format rather than providing context on selecting it over list_trades or list_open_trades. Usage is only implied by the tool's name and the phrase 'single trade'.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/florinel-chis/oanda-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server