Skip to main content
Glama

Get the PTAX exchange rate

get_ptax_rate
Read-only

Retrieves the official PTAX closing rate for a foreign currency in BRL; if the date has no quote, returns the previous available quote.

Instructions

Returns the official PTAX closing rate (BRL per unit of foreign currency) published by Banco Central do Brasil. If the date has no quote (weekend or holiday), returns the latest previous quote.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_ptax_rate"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNoReference date, YYYY-MM-DD. Defaults to today in Brasília time.
currencyNoUSD

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare this as a read-only, open-world operation. The description adds useful behavioral context beyond annotations by naming the authoritative source and disclosing that weekends or holidays return the latest previous quote instead of an error.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is two sentences long and front-loads the core behavior before the fallback rule. Every sentence adds useful information with no redundant wording.

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 simple read-only lookup with only two parameters, the description covers the main purpose, rate direction, data source, and holiday/weekend fallback. The remaining gap is that no output schema exists and the exact return shape is not described, but the essential calling context is present.

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?

The schema documents the date parameter but provides no description for the currency parameter beyond its enum and default. The description adds meaning by stating that the returned rate is BRL per unit of foreign currency, but it does not explain currency-specific behavior or date handling beyond what the schema already says.

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?

The description states a specific verb and resource: it returns the official PTAX closing rate published by Banco Central do Brasil. It also clarifies the rate direction as BRL per unit of foreign currency, so the agent knows exactly what value is being retrieved.

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?

The description explains the fallback behavior when the requested date has no quote, which is useful context. However, it does not explicitly state when to use this tool versus alternatives or mention any prerequisites, leaving usage guidance implied by the tool name and purpose.

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