Skip to main content
Glama

Convert a list via NBG rates

nbg_convert_many
Read-onlyIdempotent

Convert a list of amounts independently at the official NBG rate for each item's date; handle batch invoice conversion with per-item errors and totals.

Instructions

Converts a list of amounts, each at the official NBG rate in force on its own date: one call for a list of invoices. Items are answered independently; a bad date or code fails only its item, with the error text in that item. total is present when every converted item has the same target currency and covers the converted items only; call it partial when skipped is not 0. Once NBG stops answering, the remaining dates fail with the same error without being asked. Show resultRounded as the amount; result is the unrounded value for further calculation. Dates are calendar days in Tbilisi; the default is today. NBG sets a rate on business days around 17:00 Tbilisi time, valid from the next calendar day until the next rate, so after 17:00 tomorrow can be requested by date. Sundays, Mondays and days after a public holiday have no rate of their own: the rate in force was set earlier and is returned with carriedOver true and effectiveDate set to the day it took effect. Quote effectiveDate when carriedOver is true. A date whose rate NBG has not published yet returns an error, never a guess.

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": {
      "items": "<items>"
    },
    "name": "nbg_convert_many"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemsYes1 to 100 conversions, each with the fields of nbg_convert; items are answered independently.

Output Schema

NameRequiredDescriptionDefault
itemsYesOne entry per input item, in input order: a conversion, or the item with an error
totalNoPresent only when at least one item converted, every converted item has the same target currency, and the sum is a finite number. It covers the converted items only: when skipped is not 0, say the total is partial and list the skipped items.
skippedYes
convertedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

Beyond readOnly/idempotent/openWorld annotations, it discloses the traits that actually change invocation strategy: items fail independently with error text in the item, an unreachable NBG short-circuits remaining dates with the same error, and unpublished dates error rather than guess. It also explains resultRounded vs result and the carriedOver/effectiveDate pair, which no annotation covers.

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?

The opening sentence front-loads the purpose and each subsequent clause carries distinct information; there is almost no filler. It is a single dense block, though, and the rate-timing rules would read faster as separated sentences or bullets.

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 batch conversion tool with one nested-array parameter and an existing output schema, everything an agent needs to call it correctly and interpret the response is present, including partial-total semantics and the carriedOver quoting rule.

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 real meaning the schema lacks: the 17:00 Tbilisi rate-setting cycle and how a requested date maps to the rate in force, including why Sundays, Mondays and post-holiday days return carriedOver. It does not add much on the items array itself, but the date semantics are substantial.

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?

"Converts a list of amounts, each at the official NBG rate in force on its own date" names a specific verb, resource and scope, and the phrase "one call for a list of invoices" makes the batch-vs-single distinction against nbg_convert obvious without the agent opening either schema.

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?

It gives a clear selection context (a list of invoices in one call) and explains per-item failure isolation so the agent knows this is safe to use on heterogeneous input. It never explicitly says when to prefer the singular nbg_convert instead, so an exclusion statement is the one missing piece.

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