Skip to main content
Glama
GeoSphere MCP Server

GeoSphere MCP Server

by Singh-Akesh

convert_currency

Convert amounts between currencies using official central bank exchange rates for today's rate or historical dates back to 1999.

Instructions

    Convert an amount between currencies using official central bank exchange rates.

    Args:
        amount:        Amount to convert (e.g. 100.0).
        from_currency: Source currency ISO 4217 code (e.g. "USD", "EUR", "GBP", "JPY").
        to_currency:   Target currency ISO 4217 code (e.g. "INR", "CAD", "AUD").
        date:          "latest" for today's rate (default), or a date in YYYY-MM-DD format
                       for a historical rate (data goes back to 1999).

    Returns:
        Converted amount, exchange rate used, and the date the rate was recorded.
    

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": {
      "amount": "<amount>",
      "from_currency": "<from_currency>",
      "to_currency": "<to_currency>"
    },
    "name": "convert_currency"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNolatest
amountYes
to_currencyYes
from_currencyYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It usefully discloses the data source (official central bank rates) and a hard boundary (historical data back to 1999), and the Returns section explains output shape. It omits error behavior, whether rates are cached or snapshotted, and any fee/spread semantics — meaningful gaps for a numeric conversion tool.

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?

The purpose line is front-loaded, then Args and Returns sections are cleanly enumerated with no redundant prose. Every line — format hints, examples, the 1999 cutoff, the default — adds information an agent would otherwise lack.

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 and no annotations, the description compensates by specifying the return payload ('Converted amount, exchange rate used, and the date the rate was recorded') and by documenting every parameter. For a simple four-argument utility, an agent has everything needed to call it correctly.

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 description coverage is 0%, so the description must supply all parameter meaning and it does: it names each of the four arguments, gives an example for amount, ISO 4217 codes with sample values for both currency fields, and the default plus format for date. Only minor gaps remain, such as rounding/precision of the converted amount and whether negative amounts are valid.

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?

States a specific verb and resource ('Convert an amount between currencies') plus the rate source ('official central bank exchange rates'), so the operation is unambiguous. It does not distinguish itself from the sibling get_exchange_rates, which likely returns raw rate tables, leaving the agent to infer which to call.

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 date parameter is framed as a usage decision ('latest' for today vs YYYY-MM-DD for historical), which is genuine when-to-use guidance for that argument. However, there is no guidance at the tool level — no statement of when to prefer this over get_exchange_rates, and no mention of invalid currency codes or unsupported pairs.

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