Skip to main content
Glama

Get FX rate

get_fx_rate
Read-only

Convert between two currencies at the published reference rate, including the change from the previous session. Returns the rate and, if an amount is given, the converted total.

Instructions

Convert between two currencies at the latest published reference rate, with the change since the prior session. Returns both the rate and, when amount is given, the converted total. Major currencies come from the European Central Bank (published once per business day, so the rate is a daily fix rather than a live tick); pairs outside the ECB's ~30 currencies fall back to Yahoo. Use get_crypto_price for crypto — BTC and ETH are not currencies here. These are indicative mid-market rates, not dealable quotes, so they will not match what a bank charges.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toYesQuote currency code, e.g. INR
fromYesBase currency code, e.g. USD
amountNoAmount of the base currency to convert
Behavior5/5

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

Annotations already declare readOnlyHint and destructiveHint, but the description adds valuable behavioral context: the ECB publishes once per business day (daily fix), non-ECB pairs fall back to Yahoo, and rates are indicative mid-market not dealable quotes. This goes beyond the annotations to explain data freshness and reliability.

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 description is a single dense paragraph but every sentence earns its place. The core function is front-loaded in the first sentence, followed by data-source caveats, a crypto exclusion, and a realistic usage warning. There is no fluff or repetition of schema data.

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?

For a tool without an output schema, the description explains the key return values: the rate, change since prior session, and converted total when amount is given. It also covers data provenance, fallback behavior, and the indicative-vs-dealable caveat, making it comprehensive for an FX converter.

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. The description adds meaning by explaining that 'amount' is 'Amount of the base currency' and that when given, the converted total is returned. It reinforces the schema's parameter descriptions and clarifies the conversion direction.

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?

The description opens with 'Convert between two currencies at the latest published reference rate', which is a specific verb and resource. It clearly distinguishes itself from siblings by stating 'Use get_crypto_price for crypto — BTC and ETH are not currencies here', and clarifies the scope to fiat/ECB/Yahoo currencies.

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

Usage Guidelines5/5

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

The description gives explicit when-not guidance: 'Use get_crypto_price for crypto' and excludes BTC/ETH. It also sets expectations about the rate being a daily fix rather than a live tick, helping the agent decide if real-time data is needed. This is more than just a list of alternatives—it provides contextual exclusions.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/adididitagain/finance-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server