Skip to main content
Glama
ledgerlens

ledgerlens

by vovaddk

convert_currency

Read-only

Convert amounts between UAH, USD, and EUR using stored monthly reference rates; omit the month to use the latest available rate.

Instructions

Convert between UAH, USD and EUR with the stored monthly reference rate (latest month when omitted).

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": {
      "amount": "<amount>",
      "from_currency": "<from_currency>",
      "to_currency": "<to_currency>"
    },
    "name": "convert_currency"
  }
}

Input Schema

NameRequiredDescriptionDefault
monthNoCalendar month, YYYY-MM.
amountYesAmount to convert.
to_currencyYesUAH, USD or EUR.
from_currencyYesUAH, USD or EUR.

Output Schema

NameRequiredDescriptionDefault
noteYes
monthYes
amountYes
convertedYes
to_currencyYes
uah_per_unitYes
from_currencyYes
rate_month_usedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety and locality are covered. The description adds real value by disclosing that conversion uses a stored reference rate and defaults to the latest month when omitted, but it says nothing about behavior when no rate exists for the requested month or how cross-rates are derived.

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?

A single well-formed sentence with the default behavior tucked into a parenthetical at the end. No waste, though the default-month rule is arguably important enough to be front-loaded.

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?

With an output schema present, return values need no explanation, and the description covers the rate source and month defaulting. The main remaining gap is what happens when the requested month has no stored rate, which matters for an agent deciding whether to call it.

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, but the description genuinely adds meaning the schema lacks: it explains that omitting month selects the latest available month, whereas the schema only shows default null. It also confirms the currency domain for both from/to parameters.

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 (convert currency) and names the exact supported currency set (UAH, USD, EUR) plus the rate source ('stored monthly reference rate'). This implicitly separates it from set_fx_rate (which presumably writes rates), though no sibling is named explicitly.

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?

No explicit when-to-use or when-not guidance, and no mention of the alternative set_fx_rate for managing the underlying rates. The only steering is the parenthetical about omitting month, which is behavioral rather than usage guidance.

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