Skip to main content
Glama

get_forex_quote

Read-onlyIdempotent

Returns the real-time exchange rate quote for a forex pair.

Common pairs: EURUSD, GBPUSD, USDJPY, USDCHF, AUDUSD, USDCAD.

yearHigh / yearLow are the feed's trailing-year range, roughly the past
12-13 months: call them trailing-year figures. For a year-to-date or
calendar-year change, a dated extreme or an exact 52-week figure use
get_forex_historical, since the quote does not date its extremes.

A pair quotes the BASE currency (first three letters) in units of the
QUOTE currency (last three): USDHUF 320 means 1 USD = 320 HUF. A rising
rate, or a rate above its priceAvg50 / priceAvg200, is the base
strengthening against the quote. changePercentage is measured against
previousClose as of the quote's timestamp. Spot FX is closed from Friday
17:00 to Sunday 17:00 New York time; a quote stamped in that window
shows the change as of the last close, not a move made that day.

Args:
    symbol: Forex pair symbol (e.g. 'EURUSD')

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
symbolYesForex pair, uppercase with no slash, e.g. 'EURUSD', 'GBPUSD', 'USDJPY'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -{
      -  "properties": {
      -    "result": {
      -      "title": "Result",
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "result"
      -  ],
      -  "title": "get_forex_quoteOutput",
      -  "type": "object"
      -}New value: +null
  2. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive/openWorld, so this is safely a read. The description goes well beyond them: it discloses that yearHigh/yearLow are feed trailing-year (~12-13 month) figures rather than calendar values, that spot FX is closed Friday 17:00 to Sunday 17:00 NY time, and that a quote in that window shows the last close rather than a same-day move. These are real behavioral caveats an agent could not infer from annotations.

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?

Front-loads the one-line purpose, then groups the interpretation, trailing-year, and market-hours gotchas, each earning its place with no redundant restatement. Long but dense; every sentence addresses a distinct pitfall.

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?

With no output schema, the description carries return-value burden and does so: it defines yearHigh/yearLow, changePercentage's previousClose basis, and the meaning of priceAvg50/priceAvg200 relationships. Nothing material for correct invocation or interpretation appears missing.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3. The description adds genuine semantic value by explaining the base/quote convention ('USDHUF 320 means 1 USD = 320 HUF') and how a rising rate relates to the averages, which the schema's terse 'uppercase with no slash' note does not. It stops short of adding format/syntax beyond the schema, so a 4 rather than 5.

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?

States a specific verb and resource ('Returns the real-time exchange rate quote for a forex pair') and immediately names the sibling to use instead for historical figures (get_forex_historical) and the broader list variant is implied by common pairs. An agent can distinguish it from get_all_forex_quotes and get_forex_historical without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly routes the agent: 'For a year-to-date or calendar-year change, a dated extreme or an exact 52-week figure use get_forex_historical.' It also explains the market-hours caveat that determines whether a quote is actionable. Clear when-to-use and when-to-look-elsewhere 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