Skip to main content
Glama

Exchange-rate stress test

fx_stress
Read-only

Use this when the user pays, or plans to pay, an employee in local currency and asks about exchange-rate risk or a USD budget (e.g. "what if the real moves 10%", "risque de change sur un salaire en pesos"). Returns the USD cost (gross salary plus statutory employer charges, before any Employer of Record fee) at the official exchange rate of the data snapshot, with its date and source, and if the local currency moves by 5, 10 or 20 percent either way; with a USD budget, the headroom in each case and the move at which the budget is reached. Do not use for currency conversion alone. Data snapshot 2026-11-06. Cost comparison, not legal or tax advice.

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": {
      "country": "<country>",
      "salary_local": "<salary_local>"
    },
    "name": "fx_stress"
  }
}

Input Schema

NameRequiredDescriptionDefault
countryYesISO 3166-1 alpha-2 code ("DE") or country name ("Germany")
budget_usdNoAnnual budget in USD for salary plus employer charges, if the user has one
assumptionsNoOverride an adjustable assumption the country declares, e.g. {"basic_share_of_gross": 0.6}. See `assumptions` in an employer_cost answer.
salary_localYesGross salary in the local currency of the country, a year unless salary_period is "month"
salary_periodNoWhether the salary is a year (default) or a month. Pass a monthly salary as the user gives it, with "month": the statutory number of monthly payments of the country (13th, 14th month) is applied, see salary_basis in the answer.year
payments_per_yearNoWith salary_period "month" only: the total number of monthly salaries the contract pays in a year, statutory ones included (e.g. 14). Omit to use the statutory number of the country.

Output Schema

NameRequiredDescriptionDefault
metaYes
budgetNo
countryYes
readingYes
summaryYes
scenariosYes
salary_basisNo
employer_costYes
exchange_rateYes
total_annual_localYes
salary_annual_localYes
total_at_official_rateYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already cover safety (readOnly, non-destructive, closed-world), and the description adds substantive context beyond them: the cost basis is gross salary plus statutory employer charges before any Employer of Record fee, the rate is the snapshot's official rate with a stated snapshot date of 2026-11-06, and results are explicitly a cost comparison, not legal or tax advice.

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 usage trigger, then the output semantics, then the exclusion and caveats — a logical order. It is dense but every clause carries information; the parenthetical bilingual examples are the only mildly expendable element, and the run-on second sentence is long.

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 six-parameter tool with a full output schema, the description supplies everything an agent needs to decide and call correctly: the trigger scenario, the exclusion, the cost basis, the rate source and snapshot date, optional budget behavior, and a scope disclaimer. Return-value detail is rightly left to the output schema.

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 the baseline is 3, but the description adds genuine meaning about what budget_usd unlocks (headroom per scenario and the precise currency move at which the budget is exhausted), which the schema's one-line parameter description does not convey. It says nothing about the assumptions override or payments_per_year beyond the schema, so it is not a 5.

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 and resource: returns the USD cost of a local-currency salary at the snapshot's official rate plus the impact of 5/10/20% moves, and optionally the headroom against a USD budget. This is clearly distinguishable from siblings like employer_cost or max_salary_for_budget because the FX-scenario framing is spelled out.

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?

Gives an explicit trigger (user pays or plans to pay someone locally and asks about FX risk or a USD budget) with two concrete quoted user phrasings, plus an explicit exclusion: "Do not use for currency conversion alone." It stops short of naming which sibling to use instead when there's no FX angle (e.g. employer_cost for a plain cost breakdown), so it is clear but not fully routing.

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.