Skip to main content
Glama
Forever Works MCP servers

Forever Works MCP servers

Convert to or from RON

convert
Read-onlyIdempotent

Calculates exact amounts to or from RON using BNR reference rates, choosing the rate in force or last published before a date and returning the rate, multiplier, and publication date.

Instructions

An amount converted to or from RON at BNR's reference rate, computed exactly and rounded once: to RON is amount x rate / multiplier, from RON amount x multiplier / rate. rate_rule picks the fixing: in_force (the day's, or the last banking day's before it, as rate answers) or last_before (the last one strictly before the day, the rule for an invoice in a foreign currency). Answers the result with the rate, its multiplier and the date BNR published it, so the conversion can be stated. One side must be RON; for two other currencies, convert twice.

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": "<from>",
      "to": "<to>"
    },
    "name": "convert"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesThe currency wanted: RON, or the currency to convert RON to. ISO 4217; case ignored.
dateNoThe day of the conversion, YYYY-MM-DD in Bucharest (an invoice's date, a payment's); default today.
fromYesThe amount's currency: RON, or the currency to convert to RON. ISO 4217; case ignored.
amountYesThe amount, as a decimal string: "1250.50", "-75". Never a number.
placesNoDigits after the point in the result.
roundingNoHow the result is rounded, once: half-up (halves away from zero, as invoices round) or half-even (banker's).half-up
rate_ruleNoin_force: the rate in force on the day; last_before: the last rate published before the day.in_force

Output Schema

NameRequiredDescriptionDefault
okYes
toYes
dateYes
fromYes
noteNo
rateYesBNR's exact text, RON per `multiplier` units
amountYesThe amount converted, as given
placesYes
resultYesThe converted amount, computed exactly and rounded once
sourceYes
meaningYes
roundingYes
rate_ruleYes
multiplierYes
published_onYesThe date of the fixing the conversion used

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and open-world behavior, so the safety profile is covered. Beyond that, the description discloses the exact computation order ('computed exactly and rounded once'), the default half-up rounding rationale for invoices, and that the response includes the rate, multiplier and publication date — real behavioral value added.

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 computation and scoping constraint are front-loaded, and every sentence carries substantive information. The prose is dense and somewhat run-on, with formula fragments embedded mid-sentence, which costs a little readability but not correctness.

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?

The tool has 7 parameters, an output schema, and clear annotations; the description covers the conversion semantics, the RON constraint, the rate-rule choice, and rounding defaults. Since an output schema exists, it needn't explain return values in detail, and nothing essential for a correct call appears missing.

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 description coverage is 100%, so a baseline of 3 is warranted, but the description adds meaning beyond the schema: it explains why last_before exists (invoice rule) and how 'in_force' falls back to the prior banking day. The formula mapping of amount/rate/multiplier clarifies how the parameters combine arithmetically.

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 opens with a specific verb and resource: converting an amount to or from RON at BNR's reference rate, including the exact formulas used. It is immediately distinguishable from a plain rate lookup, though it does not explicitly name the sibling 'rate' tool as the alternative for non-conversion needs.

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 concrete conditional guidance: rate_rule 'in_force' for the day's rate versus 'last_before' for an invoice in foreign currency, and states the hard constraint that one side must be RON with the 'convert twice' workaround. It stops short of explicit when-not-to-use guidance or naming sibling tools.

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

Deploy Server

Other Tools