Skip to main content
Glama
florinel-chis

oanda-mcp

list_orders

Read-only

Retrieve order details from your Oanda account, starting with the most recent. Use filters like state, instrument, or order ID to narrow down results.

Instructions

List orders on the configured account, most recent first.

Returns {"orders": [...], "lastTransactionID": "..."}. Each order carries id, type (e.g. MARKET, LIMIT, STOP, MARKET_IF_TOUCHED, TAKE_PROFIT, STOP_LOSS, TRAILING_STOP_LOSS), instrument, units (signed decimal string: positive = long, negative = short), price (decimal string), state (PENDING, FILLED, TRIGGERED, or CANCELLED), timeInForce, createTime (RFC3339), and — where applicable — fill/cancel bookkeeping and attached takeProfitOnFill/stopLossOnFill/trailingStopLossOnFill details.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum number of orders to return.
stateNoOrder state to filter by.PENDING
before_idNoReturn only orders with an ID before this order ID; omit for the most recent. Use for paging backwards through history.
instrumentNoOnly orders for this instrument, e.g. 'EUR_USD'.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

Annotations include readOnlyHint=true, and the description is consistent. It adds substantial behavioral detail beyond the annotation: exact return structure with lastTransactionID, field-level semantics (signed units, state enum, price as decimal string), and optional bookkeeping fields. This exceeds the minimal read-only disclosure.

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?

The description is front-loaded with a one-sentence purpose, followed by a detailed but organized return structure. The field list is lengthy but informative, and each sentence conveys meaningful information without redundancy. It is longer than minimal but appropriately sized for a complex return type.

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?

Given the tool's complexity (4 optional parameters, rich return schema, no required inputs), the description is highly complete. It covers the return format, field details, and data conventions (e.g., signed units). The presence of an output schema further reduces the need to explain return values, yet the description goes beyond that.

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?

All four parameters are fully described in the schema (coverage 100%), so the description does not need to add parameter-level details. The description does not specifically elaborate on limit, state, before_id, or instrument beyond what the schema already states, meriting the baseline score.

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 opens with a clear verb and resource: 'List orders on the configured account'. It conveys the scope (account-level) and ordering (most recent first). It also enumerates the order types returned, which distinguishes it from list-related siblings like get_order or list_pending_orders.

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 description gives no explicit guidance about when to choose this tool versus list_pending_orders or other listing tools. However, by describing return fields that include all order states and a state filter, it implies comprehensive order listing. It stops short of naming alternatives or exclusions.

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