Skip to main content
Glama

Set closing rate

set_closing_rate

Keep the rate a foreign currency's balances are valued at on a day, as the owner or their accountant gives it: in base currency per ONE foreign unit. It replaces any rate on that day and is used by every revaluation at that day. Never quote a rate from memory.

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>",
      "currency": "<currency>",
      "rate": "<rate>"
    },
    "name": "set_closing_rate"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateYesThe day, yyyy-MM-dd: usually a month end.
rateYesBase currency per ONE unit of the foreign currency, e.g. 19.1534 rand per euro.
currencyYesThe foreign currency, e.g. EUR.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

The annotations only say readOnlyHint=false and destructiveHint=false. The description adds two facts they do not cover: the call replaces any existing rate on that day (an overwrite that loses prior data), and the stored rate is consumed by every revaluation at that day, so a mistake propagates. It omits permission requirements and whether the overwritten value can be recovered, which is why it does not earn a 5.

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?

It is two sentences: the main definition first, then a short safety instruction, so the important content is front-loaded. The opening clause ('as the owner or their accountant gives it') is slightly convoluted and interrupts the core statement, but nothing is wasted overall.

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 three-required-parameter mutation tool with no output schema and thin annotations, the description covers overwrite behavior, downstream impact on revaluations, the currency direction convention, and the source of authority for the number. What is missing is the return value or confirmation and permission requirements, both minor given that the schema is fully documented.

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, rate and currency are each documented, including the unit convention and an example. The description's 'in base currency per ONE foreign unit' restates the schema's own wording on the rate parameter rather than adding new meaning. Baseline 3 applies when the schema already carries the parameter semantics.

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 names a specific verb and resource: setting the rate at which a foreign currency's balances are valued on a given day, expressed in base currency per one foreign unit. That is unambiguous about what the tool does. It does not name or distinguish itself from the sibling list_closing_rates, which is the only obvious alternative, so it falls short of a 5.

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?

It gives implied usage context: the rate comes from the owner or their accountant, applies to a day (usually month end per the schema), and feeds every revaluation on that day. The warning 'Never quote a rate from memory' is a useful guardrail against fabricated values. However, it never states when to use this versus list_closing_rates, nor any prerequisite or exclusion, so guidance stays implicit.

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