Skip to main content
Glama

MaCalculatriceEnLigne

Calculate Currency Exchange

calculate_currency_exchange
Read-onlyIdempotent

Calculate currency exchange with bank margin and show fees lost. Returns: {amount_source, from_rate_vs_usd, to_rate_vs_usd, mid_market_amount, amount_after_margin, fees_lost, ...}. See list_bundles for related 'voyage' calculators.

Input Schema

NameRequiredDescriptionDefault
amountYesAmount to exchange in source currency
to_rateYesTarget currency rate vs USD (e.g. JPY=150)
from_rateYesSource currency rate vs USD (e.g. EUR=1.08)
bank_margin_pctNoBank/exchange margin percentage (default 2.5%)

Output Schema

NameRequiredDescriptionDefault
resultNoComputed result. Object whose fields depend on the tool (e.g. {tax, marginal_rate, brackets} for tax tools, {volume_l, gallons} for volume tools).
sourceNoAuthoritative source for the rule or formula (e.g. "Article 197 CGI", "NF DTU 21").
formulaNoHuman-readable formula or method used (e.g. "I=P·r·t", "Magnus formula").
reference_urlNoLink to a calcul2 page documenting the calculation in detail.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so the safety profile is covered. The description adds value by naming the margin concept and some output fields (mid_market_amount, amount_after_margin, fees_lost), but it repeats return-value content that a dedicated output schema already carries and says nothing about defaults, rounding, or rate-source expectations.

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?

Two compact sentences, front-loaded with the purpose before the return-value enumeration and the bundle pointer. The '{...}' return preview is slightly noisy given an output schema exists, but nothing is padded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Parameters are fully documented in schema and return values are covered by the output schema, so the description is minimally sufficient. The missing piece is routing context among dozens of near-identical currency/finance calculators, which an agent would need to pick this tool correctly.

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 all four parameters including the bank_margin_pct default of 2.5% are already documented in the schema. The description adds no syntax, unit, or constraint detail beyond that baseline.

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+resource (calculate currency exchange) and adds the distinguishing scope of bank margin and fees lost. However, it never differentiates itself from the many sibling currency tools (calculate_currency_cross_rate, calculate_exchange_margin, calculate_exchange_rate_margin), leaving the agent to infer the boundary.

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

Usage Guidelines2/5

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

The only guidance is a pointer to list_bundles for 'voyage' calculators, which is a directory hint rather than a when-to-use/when-not-to-use rule. No alternative currency tool is named as a fallback or contrast case.

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.