Skip to main content
Glama

SLDX API

Cotação de moedas e criptomoedas (versão legada)

get_currency_quote
Read-onlyIdempotent

Retorna cotações cruzadas de moedas fiduciárias e criptomoedas. Se nenhum código for informado, retorna todas as moedas fiat disponíveis. Aceita data histórica opcional. Custa 1 crédito por chamada.

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

Input Schema

NameRequiredDescriptionDefault
dateNoData histórica no formato YYYY-MM-DD (padrão: hoje)
codigoNoCódigos em maiúsculo separados por vírgula, ex: 'USD,BTC,EUR'. Omitir retorna todas as fiat.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already establish read-only, idempotent, open-world behavior, and the description adds genuinely new facts beyond them: the cost of 1 credit per call and the fallback that omitting codes returns all available fiat currencies. What it does not disclose is the legacy/migration status hinted at in the title, or any return-shape or rate-limit context.

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?

Four short sentences, front-loaded with purpose, then behavior, then cost — no filler and nothing buried. Slight redundancy with the schema on the date and fiat-fallback points keeps it from a 5.

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?

With only two optional parameters and no output schema, the definition is close to sufficient, but it omits what the 'crossed quotes' are quoted against and why an agent should choose this legacy tool over the live or historical siblings. Annotations carry the safety profile, so the remaining gaps are moderate rather than severe.

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%, and both the YYYY-MM-DD date format and the comma-separated uppercase code list with omit-returns-all-fiat behavior are already documented in the schema. The description restates these rather than adding syntax, ordering, or edge-case meaning, so the baseline 3 applies.

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 and resource: returns cross quotes for fiat currencies and cryptocurrencies. It is clear what the tool produces, but it never differentiates itself from the sibling tools get_currency_live and get_currency_historical, even though the title calls it the 'legacy' version — that distinction only appears in the title, not the description.

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?

The description gives no when-to-use guidance and names no alternatives, despite obvious overlap with get_currency_live and get_currency_historical in the sibling set. The only conditional behavior mentioned ('se nenhum código for informado, retorna todas as moedas fiat') is a parameter effect 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.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.