Skip to main content
Glama

Get fx rate

get_fx_rate
Read-onlyIdempotent

Daily ECB reference rate for converting one currency into another on a given date, cached locally. book_invoice applies this automatically for a foreign-currency invoice, so you normally only need this to check a figure. The ECB publishes on business days, so a weekend date resolves to the previous publication and rate_date says which was used.

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": {
      "date": "<date>",
      "from_currency": "<from_currency>"
    },
    "name": "get_fx_rate"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateYesDate to price, YYYY-MM-DD (normally the invoice date)
to_currencyNoBooking currency, default 'EUR'
from_currencyYesInvoice currency, e.g. 'USD'

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, closed-world and non-destructive, so the safety profile is covered. The description adds behavior beyond that: rates are cached locally, ECB only publishes on business days, a weekend date resolves to the previous publication, and rate_date reports which date was actually used — meaningful disclosure for interpreting results.

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?

Three sentences, front-loaded with what the tool returns and from which source, then the practical usage note, then the weekend/caching caveat. Every sentence carries information an agent would otherwise have to guess.

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 simple 3-parameter read tool with no output schema, the description covers source, caching, non-business-day resolution and the rate_date return field. The remaining gap is that other return fields (e.g. the actual rate value or currency pair echo) are not described, but the essential context for calling it correctly is present.

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 date, from_currency and the defaulted to_currency are already documented in the schema. The description reinforces that the rate is for a specific date and currency pair but adds no format, validation or default details beyond what the schema states, so the baseline of 3 applies.

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+resource (fetch the daily ECB reference rate) plus the scope (converting one currency into another on a given date, cached locally). It also clarifies the relationship to book_invoice, which applies the rate automatically, so an agent can tell when this tool is the right one rather than a booking sibling.

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?

Explicitly says the rate is applied automatically by book_invoice and that this tool is normally only needed 'to check a figure', which is a real when-to-use / when-not-to-use signal. It stops short of naming any other lookup alternative or prerequisites, but the guidance given is concrete.

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