Skip to main content
Glama

Convert Currency

get_currency_rate
Read-onlyIdempotent

Convert an amount between two currencies using live rates (150+ currencies, daily updates). Use it for exchange rates and converting an amount between currencies.

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": {
      "from": "<from>",
      "to": "<to>"
    },
    "name": "get_currency_rate"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesTarget currency ISO 4217 code, e.g. USD.
fromYesSource currency ISO 4217 code, e.g. EUR.
amountNoAmount to convert. Default 1.
localeNoLanguage the user writes in (en, ru, de, fr, es, pt, tr). Set it on every call: the answer and the interactive card are shown in this language and units; without it the card falls back to the app's interface language.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. Changed2 schema fields changed
    • removedInput schema / additionalProperties
      Removed value: -false
    • changedOutput schema / additionalProperties
      Previous value: -trueNew value: +{}
  3. First observed

TDQS

A3.6/5.0
Behavior4/5

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

The annotations already cover safety and world scope (readOnly, idempotent, openWorld, non-destructive), so the description's contribution is data provenance: 150+ currencies and daily-updated rates. That freshness and coverage detail matters for callers, though "live rates" sits slightly in tension with "daily updates" and no limits on unsupported currencies are given.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

At two sentences it is short and front-loaded, but the second sentence largely repeats the first ("converting an amount between currencies"), so one of the two sentences does not fully earn its place. It reads as a padded single statement.

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?

With an output schema present, return values need no explanation, and the annotations cover the safety profile; the description fills the remaining gap with currency coverage and update cadence. Only minor gaps remain, such as historical-rate support or what happens for unsupported currency codes.

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 description coverage is 100%, so from/to ISO codes, the amount default, and the locale fallback behavior are all already documented at the parameter level. The description adds nothing about parameter handling, which is acceptable given the schema, but it does not compensate for the fact that the locale parameter's mandatory-for-display nature lives only in the schema.

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 clear verb and resource: convert an amount between two currencies at live rates, with a stated coverage of 150+ currencies. It is understandable on its own and no sibling tool overlaps with currency conversion, so no explicit differentiation is needed.

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 it for exchange rates and converting an amount between currencies" only restates the tool's own function rather than giving conditions for choosing it. There are no exclusions (for example historical rates or unsupported currencies) and no prerequisites named, so the usage signal is implied rather than explicit.

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.