Skip to main content
Glama
aobathree

oanda-mcp

by aobathree

get_candles

Retrieve historical candlestick data for any OANDA instrument, with options to customize granularity, time range, and price type.

Instructions

Get historical candlestick data for an instrument.

Args: instrument: OANDA instrument name, e.g. "USD_JPY". granularity: Candle size: S5,S10,S15,S30,M1,M2,M4,M5,M10,M15,M30, H1,H2,H3,H4,H6,H8,H12,D,W,M. Default "H1". count: Number of candles (max 5000). Ignored when both from_time and to_time are given. Default 100. price: "M" (mid), "B" (bid), "A" (ask), or combinations like "MBA". from_time: RFC3339 start time, e.g. "2026-07-01T00:00:00Z" (optional). to_time: RFC3339 end time (optional).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
countNo
priceNoM
to_timeNo
from_timeNo
instrumentYes
granularityNoH1

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

No annotations are provided, so the description carries the full burden. It explains parameter behavior but does not disclose whether the tool is read-only, any authorization needs, rate limits, or side effects. The read-only nature is implied but not stated.

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 structured as a clear docstring with Args. It is appropriately detailed without extraneous information. Each sentence adds value, though the format is slightly verbose.

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?

Given 6 parameters and an existing output schema, the description covers all parameter semantics and behavior (e.g., count vs time interaction). It does not need to explain output due to schema. Missing behavioral details are scored elsewhere.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so the description adds all meaning. It provides clear explanations for all 6 parameters: instrument format, granularity options, count limit and interaction, price options, and RFC3339 time format. This significantly aids correct usage.

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 'Get historical candlestick data for an instrument.' It uses a specific verb and resource, and the context of sibling tools (like get_price for current price, list_instruments for listing) distinguishes it effectively.

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 explains parameter defaults and behavior (e.g., count ignored when from/to given), but does not explicitly state when to use this tool versus alternatives. Usage is implied by the tool name and sibling contexts, but no direct guidance is provided.

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/aobathree/oanda-mcp'

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