Skip to main content
Glama

SiftingIO market data (x402)

Historical forex OHLC bars (gzip required)

get_forex_bars
Read-only

Historical forex exchange rates: OHLC candles for currency pairs such as EURUSD, USDJPY, GBPUSD and AUDUSD, 1-minute to monthly intervals, up to 2,000 rows per call, paginated. Costs $0.01 USDC per call, paid with x402 on Base; failed calls are not charged.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "pair": "<pair>",
      "start": "<start>"
    },
    "name": "get_forex_bars"
  }
}

Input Schema

NameRequiredDescriptionDefault
endNoInclusive upper bound. Default now.
pairYesDEX pair (TOKEN0-TOKEN1) or FX pair (e.g. EURUSD).
limitNo
orderNoSort direction by time. `asc` (default) returns oldest→newest. `desc` returns newest→oldest and anchors the first page at the most recent bar, so fetching the latest N costs one request instead of paging the whole window. Supported on commodities and forex only; other historical routes are ascending-only.asc
startYesInclusive lower bound (YYYY-MM-DD or RFC3339). Required.
cursorNoOpaque pagination cursor from a previous response's `meta.next_cursor`.
intervalNoBar interval. Default 1m. All `/v1/hist/*` routes accept the same set: intraday (1m–1h), plus `1d` (UTC calendar day), `1w` (Monday-aligned), and `1mo` (calendar month). Coarser bars are aggregated from 1-minute history; a `1d`/`1w`/`1mo` bar opens at midnight UTC of the period start.1m

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and openWorldHint, but the description goes further with material behavior: $0.01 USDC per call via x402 on Base, no charge on failure, and a 2,000-row paginated ceiling. The significant gap is that the hard client requirement 'gzip required' lives only in the title, not in the description body where an agent would read it.

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?

A single tight sentence: purpose first, then coverage, then cost. Nothing is padding, though the interval and row-cap clauses partially restate what the schema declares rather than using that space for the missing gzip requirement.

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?

For a 7-parameter read-only market-data tool with no output schema, the description covers cost, pagination and interval granularity adequately. It omits the gzip transport requirement and any hint of response shape (e.g. the meta.next_cursor that the cursor parameter depends on), which keeps it short of 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 86%, so the schema already documents pair, start/end, limit, order, cursor and interval in detail. The description only echoes the interval span ('1-minute to monthly') and the limit/pagination ceiling, adding little beyond the structured fields — the baseline 3 applies.

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 states a specific verb and resource (historical forex OHLC candles) and scopes it with concrete examples (EURUSD, USDJPY), interval range (1-minute to monthly) and row cap (2,000). The word 'forex' plus 'currency pairs' implicitly separates it from the commodity/crypto/stock bar siblings, though no sibling is named explicitly.

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?

Usage is only implied by the data shape described — an agent infers this is the tool for historical bar series rather than get_last_close or get_snapshot. There is no explicit when-to-use, when-not-to-use, or named alternative, and the cost line, while decision-relevant, is not framed as guidance.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources