Skip to main content
Glama
florinel-chis

oanda-mcp

get_order_book

Read-only

Retrieve the pending-order book for an instrument, showing price levels with percentages of pending long and short orders. Helps assess market sentiment and possible price movements.

Instructions

Fetch the aggregate pending-order book for an instrument.

Snapshots are produced periodically, not per-tick. Returns time (RFC3339), the snapshot price and bucketWidth (decimal strings), and buckets trimmed to at most depth buckets on each side of the current price. Each bucket has a price and longCountPercent/shortCountPercent — the percentage of pending long/short orders at that price, as decimal strings (e.g. "0.2543" means 0.2543%).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
timeNoRFC3339 timestamp of the snapshot to fetch; omit for the most recent snapshot.
depthNoPrice buckets to keep on each side of the current price.
instrumentYesInstrument name in Oanda format, e.g. EUR_USD.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

Beyond the readOnlyHint annotation, the description discloses that snapshots are periodic rather than per-tick, and details the output structure including time, price, bucketWidth, and bucket percentages. This adds meaningful behavioral context without contradicting the annotation.

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 concise yet comprehensive, with a clear opening statement followed by structured details. Every sentence contributes useful information about behavior or output format, with no redundant phrases.

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?

The description adequately covers the tool's purpose, output format, and key behavioral nuances. While it doesn't address alternative tools or error scenarios, the presence of an output schema and read-only annotation reduces the burden, making it reasonably 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 coverage is 100%, so the schema already documents all parameters thoroughly. The description adds minimal new parameter insight—it mentions depth trimming and snapshot time but largely mirrors the schema's existing descriptions.

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 'Fetch the aggregate pending-order book for an instrument,' clearly identifying the verb, resource, and scope. It distinguishes itself from sibling tools like get_position_book by specifying 'pending-order book' and 'aggregate'.

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 does not explicitly state when to use this tool over alternatives such as get_position_book or get_candles. It implies the use case via the title and first sentence but lacks direct comparison or exclusion statements, so it falls at the 'implied usage' level.

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