Skip to main content
Glama

wariwari

Get an exchange rate

get_fx_rate
Read-only

Use this to convert from another currency into the group currency, optionally on 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": {
      "groupToken": "<groupToken>",
      "from": "<from>"
    },
    "name": "get_fx_rate"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNoDay the rate is for, usually the expense's date. Defaults to today. Today and later dates get the latest published rate.
fromYesSource currency (ISO-4217).
groupTokenYesThe group's token, from `listGroups` or `listSearchResults`.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / groupToken / description
      Added value: +"The group's token, from `listGroups` or `listSearchResults`."
  2. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare this is a safe, non-destructive, closed-world read, so the description is not required to carry the safety burden. It adds one genuinely useful behavioral fact beyond the annotations: the rate is directional, always targeting the group currency, which prevents misuse. It says nothing about the return shape (a single rate value vs. a pair of rates), nor about staleness or failure modes for unsupported currencies.

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?

A single sentence that front-loads the purpose and appends the one variable (past date) at the end. Every clause carries information; there is no filler or restatement of the tool name.

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?

For a simple three-parameter read tool with full schema coverage and clear annotations, the description covers purpose and direction adequately. However, with no output schema, the agent is left guessing whether the call returns a numeric multiplier, a rate object, or a converted amount, which is the one piece of information a caller of a rate tool most needs.

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 every parameter including the ISO-4217 `from`, the date field, and `groupToken` is already documented in the schema. The description echoes the date optionality ('optionally on a past date') without adding format or boundary detail beyond what the schema states about today versus future dates. Baseline 3 is appropriate.

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?

The description states a specific operation: fetching an exchange rate for converting an amount from another currency into the group currency, with an optional date. The directional constraint (only into the group currency) distinguishes it meaningfully from a generic rate lookup. It is slightly less crisp than a direct 'get the exchange rate between X and Y' because the conversion framing precedes the resource, but the purpose is unmistakable.

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

Usage Guidelines3/5

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

The phrase 'Use this to convert...' implies the usage context (when a foreign-currency amount must be expressed in the group currency) and 'optionally on a past date' signals the historical case. There is no explicit when-not guidance, no mention of what to do for cross-currency pairs not involving the group currency, and no named alternative among the sibling tools.

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