Skip to main content
Glama

MetalCharts

Convert metals, currencies and units

convert
Read-onlyIdempotent

Convert an amount between a metal, a currency and a mass unit: 10 g of gold in euros (from XAU to EUR, unit g, amount 10), how much silver 1000 INR buys (from INR to XAG, unit g), EUR to JPY, or grams to troy ounces. Live, or as of a past date.

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": "convert"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesMetal code, currency code or unit.
dateNoYYYY-MM-DD to convert at that day's close and ECB rate.
fromYesMetal code, currency code or unit.
unitNoFor a metal: the unit its quantity is in. Default: the metal's own unit.
karatNoGold only: price this karat at purity karat/24 (24 is pure gold).
amountNoQuantity of `from`, default 1.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds that results can be live or historical ('as of a past date'), which is useful behavioral context, but it does not explain what the response contains, how missing/unsupported pairs behave, or rate-source caveats beyond what the schema's date field already says.

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?

Front-loaded with the verb and resource, followed by tightly packed illustrative examples and a short historical-mode clause. Dense but every clause carries information; the only mild cost is that the example list makes the sentence long.

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 6-parameter, no-output-schema tool with full schema coverage and annotations, the description supplies the conceptual model (metal/currency/unit interchange) and the live-vs-historical distinction. It omits any mention of karat and does not characterize the return value, which would help since no output schema exists.

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 baseline is 3, but the description goes further by showing how from/to/unit/amount combine in practice — 'from XAU to EUR, unit g, amount 10' and 'from INR to XAG, unit g' clarify directionality and that unit describes the metal's quantity. Karat is not mentioned in the description, leaving that one parameter to the schema alone.

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 (convert) and the exact resource triad (metal, currency, mass unit), then grounds it with concrete examples such as '10 g of gold in euros (from XAU to EUR, unit g, amount 10)'. This clearly separates it from sibling read tools like get_exchange_rates or get_spot_prices, which return raw rates rather than a converted amount.

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

Usage Guidelines4/5

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

The examples implicitly define the use case: cross-asset conversion, unit conversion (grams to troy ounces), and historical conversion ('Live, or as of a past date'). It does not explicitly name an alternative or state when NOT to use it (e.g., 'use get_exchange_rates for a raw rate table'), so it stops short of full routing 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