Skip to main content
Glama

tesouro_direto_taxas

Read-onlyIdempotent

Queries Brazilian Treasury bond (Tesouro Direto) secondary-market rates and prices, listing quotes by type and date or returning historical data for a specific maturity.

Instructions

Taxas e preços dos títulos do Tesouro Direto (mercado secundário).

Sem vencimento, lista as cotações de todos os títulos numa data (padrão: a mais recente). Com vencimento, devolve o histórico de um título. Taxas em % ao ano; preços (PU) em R$. Taxa de compra é a do investidor que compra (menor que a de venda). Dados desde 2004; o arquivo oficial é grande e fica em cache.

Args: tipo: parte do nome: "selic", "prefixado", "ipca+", "renda+", "educa+". Vazio = todos. vencimento: ano, mês ou dia (ex.: "2035-05"). Para histórico, precisa identificar um título. data: dia da cotação (AAAA-MM-DD); sem pregão, usa o anterior. inicio, fim: período do histórico. ultimos: cotações recentes do histórico (padrão 30; máximo 1000).

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": "tesouro_direto_taxas"
  }
}

Input Schema

NameRequiredDescriptionDefault
fimNo
dataNo
tipoNo
inicioNo
ultimosNo
vencimentoNo

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?

Annotations already declare readOnly/idempotent/openWorld, and the description adds real context beyond them: units (% a.a. for rates, R$ for PU), the buy-vs-sell rate convention, data coverage since 2004, and the operational note that the official file is large and cached. That caching note is exactly the kind of latency/behavior hint an agent needs before calling.

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?

Front-loaded with the resource and the two-mode rule, then units, then a compact Args block. No sentence is redundant; the parenthetical clarifications (menor que a de venda, padrão: a mais recente) are load-bearing rather than filler.

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?

With no output schema, the description still tells the agent what comes back (rates in % a.a., PU in R$, history series) and how the two modes differ, plus data coverage and caching behavior. For a six-parameter read-only query tool, nothing needed to call it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description carries the full burden and does: `tipo` enumerates the accepted substrings, `vencimento` gives accepted granularities with an example ('2035-05'), `data` gives the AAAA-MM-DD format plus the no-session fallback, and `ultimos` documents both default (30) and maximum (1000). Every one of the six parameters gains meaning not present in the bare schema.

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 names a specific resource and scope: 'Taxas e preços dos títulos do Tesouro Direto (mercado secundário)', and immediately splits behavior into two modes (list all quotes for a date vs. history for one bond). It is unambiguous what the tool returns, though it never names or contrasts a sibling such as resultado_tesouro, so an agent must infer the boundary.

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?

Mode selection is explicit: without `vencimento` it lists all bonds for a date (default most recent), with `vencimento` it returns history. It also states the fallback when there is no trading session ('sem pregão, usa o anterior') and that history requires identifying a single bond. No alternative tools are mentioned, which keeps it at 4 rather than 5.

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