Skip to main content
Glama

Exchangerate Get Pair

exchangerate_get_pair
Read-onlyIdempotent

Get the current exchange rate between two specific currencies (e.g., USD to EUR). Returns the conversion rate. Use for single currency pair lookups.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "to": "EUR",
      "from": "USD"
    },
    "name": "exchangerate_get_pair"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesTarget currency code (e.g., "JPY")
fromYesSource currency code (e.g., "USD")

Output Schema

NameRequiredDescriptionDefault
toYesTarget currency code
fromYesSource currency code
rateYesExchange rate from source to target currency
last_updatedYesTime of last update in UTC

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, openWorld, and non-destructive, so the safety profile is covered. The description adds that values are 'current' (i.e., live snapshot, not historical), which is genuinely useful beyond the annotations, but says nothing about rate source, freshness/latency, or failure behavior for unknown currency codes.

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?

Three short sentences, front-loaded with the core purpose and with zero preamble. 'Returns the conversion rate' is slightly redundant given an output schema exists, but overall the text is tight.

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 two-parameter read-only lookup with a documented schema, an output schema, and full annotations, the description covers what an agent needs to select and call it. Remaining gaps (currency code format, rate staleness) are minor rather than blocking.

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% and includes per-parameter descriptions plus example objects, so the schema carries the load. The description's 'from X to Y' phrasing reinforces the direction semantics of the pair, which is mildly additive but does not specify accepted code formats (ISO-4217 uppercasing) or error behavior.

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 pairs a specific verb ('Get') with a specific resource ('the current exchange rate between two specific currencies') and includes a concrete example (USD to EUR). It contrasts implicitly with a broader rates tool via 'single currency pair lookups', though it never names the alternative stringently enough to fully separate it from 'get_rates'.

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?

'Use for single currency pair lookups' implies the when-to-use context (one pair, not bulk), which is a reasonable cue. However, it never names 'get_rates' or any other sibling as the alternative, and gives no exclusions or prerequisites, leaving the routing decision partly inferential.

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.