Skip to main content
Glama

Banco Central do Brasil (BCB) — SGS Time Series MCP Server

Metadados da série

bcb_serie_metadados
Read-onlyIdempotent

Obtém a descrição de UMA série do BCB (nome, periodicidade, categoria, fonte e último valor), sem trazer a série histórica. Quando usar: para confirmar o que uma série representa e com que frequência é publicada antes de consultar os dados. Quando NÃO usar: para os valores em si use bcb_serie_valores ou bcb_serie_ultimos. Retorna: codigo, nome, periodicidade, categoria, fonte, ultimoValor e URLs diretas da API (urlConsulta, urlUltimos10). Limite da fonte: a API do SGS NÃO publica endpoint de metadados por série — não há unidade de medida disponível. Nome e categoria vêm do catálogo curado do servidor (135 séries verificadas contra a origem) e, fora dele, a periodicidade é inferida do espaçamento das observações, sinalizada por periodicidadeInferida. Comportamento: consome a API pública SGS do Banco Central do Brasil — sem autenticação, chave de API ou cadastro, e sem limite de requisições divulgado (uso é best-effort). Em falha transitória ou timeout a chamada é repetida automaticamente (até 3 tentativas, backoff exponencial); persistindo o erro, retorna isError: true com mensagem em português (HTTP 404 = série inexistente ou sem dados no período solicitado). O resultado vem como JSON tanto em texto quanto em structuredContent (conforme o outputSchema); datas no formato dd/MM/yyyy e valores numéricos (ponto decimal).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codigoYesCódigo da série no SGS/BCB

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
nomeYesNome da série
fonteYesFonte dos dados
codigoYesCódigo da série no SGS/BCB
categoriaNoCategoria econômica
observacaoNoObservação sobre a origem dos metadados
provenanceYesUm bloco por procedência que contribuiu com esta resposta (contrato v1.0; licenças nunca se fundem)
attributionYesURLs canônicas das fontes desta resposta (lista de atribuição)
ultimoValorNoÚltima observação disponível
urlConsultaNoURL da API do BCB para consulta completa
urlUltimos10NoURL da API do BCB para os últimos 10 valores
periodicidadeNoPeriodicidade da série
periodicidadeInferidaNoPresente e true quando a periodicidade foi inferida do espaçamento das observações

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Beyond annotations, the description discloses authentication-free access, best-effort rate behavior, automatic retries with exponential backoff, error response shape (isError), HTTP 404 meaning, date/number formatting, and the missing unit-of-measure limitation. It also explains inferred periodicity via periodicidadeInferida. No contradiction with annotations exists.

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 organized into labeled sections (Quando usar, NÃO usar, Retorna, Limite, Comportamento), front-loads the purpose, and contains no filler. Although lengthy, the detail earns its place because it conveys concrete operational behavior rather than repetition.

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?

For a single-parameter metadata tool with an output schema, the description is complete: it covers input semantics, return fields, API limits, error handling, authentication requirements, and data formatting. Nothing needed for correct invocation is left to inference.

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 already provides 100% coverage by describing codigo as 'Código da série no SGS/BCB'. The description adds the context of a single series but does not need to compensate for schema gaps, so the baseline score is appropriate.

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 action ('Obtém a descrição de UMA série do BCB') and precisely scopes the resource as metadata, explicitly excluding historical series. This distinguishes it clearly from siblings like bcb_serie_valores and bcb_serie_ultimos without requiring schema inspection.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It includes explicit 'Quando usar' and 'Quando NÃO usar' guidance, naming bcb_serie_valores and bcb_serie_ultimos as the alternatives for value lookups. It also frames the tool as a confirmation step before consulting data, leaving no ambiguity about when to choose it.

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.