Skip to main content
Glama
bcb-brazil-ptax-fx-mcp

bcb-brazil-ptax-fx-mcp

Convert currency using BCB PTAX

convert_brl_ptax
Read-onlyIdempotent

Convert amounts between BRL, USD, and other BCB PTAX currencies using official buy, sell, or midpoint closing rates.

Instructions

Convert an amount between BRL and USD or any BCB PTAX currency using official buy, sell, or midpoint closing rates.

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_brl_ptax"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesTarget 3-letter currency code (e.g. "BRL", "USD", "EUR").
fromYesSource 3-letter currency code (e.g. "USD", "BRL", "EUR").
amountYesAmount to convert.
rate_typeNoPTAX rate side: "buy", "sell", or "midpoint" (default).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so safety is covered. The description adds that rates are official closing rates and lets the caller pick buy/sell/midpoint, but omits which closing date is used, staleness, and behavior for unsupported currency pairs.

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 operation and rate basis front-loaded; nothing is wasted, though there is no follow-up sentence carrying the guidance that is missing elsewhere.

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 four-parameter, read-only conversion tool with a fully documented schema, the essentials are present. Missing are the rate-date/staleness semantics and failure behavior for currencies without a PTAX quote, which matter for correct invocation.

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 coverage is 100%, so the schema already documents amount, from, to and the rate_type enum with its default. The description's phrase about buy, sell, or midpoint merely restates the enum without adding format or constraint detail, making baseline 3 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?

States a specific verb (convert) and resource (amount between BRL and PTAX currencies) with the rate basis named. It is clearly distinguishable from the get_* siblings, which retrieve rates rather than convert, though it never names them.

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 when-to-use or when-not-to-use guidance; it never says whether to call this versus get_bcb_usd_ptax or get_bcb_currency_ptax first, nor what to do when a pair has no PTAX quote. Usage is only implied by the word 'convert'.

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