Skip to main content
Glama

Sgs Series

sgs_series
Read-onlyIdempotent

Fetch any Banco Central do Brasil SGS time series by numeric code. Common codes: 432=Selic target, 11=Selic daily, 433=IPCA inflation, 1=USD/BRL PTAX sell, 21619=USD/BRL, 4389=CDI. Returns {series_code, series_name, country:"Brazil", statement, count, observations:[{data:"dd/MM/yyyy", valor:"..."}]}. Use "last" for the most recent N observations, or a date range.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
endNoEnd date dd/MM/yyyy, e.g. "31/12/2025". Optional.
codeYesSGS series code, e.g. 432 (Selic target).
lastNoReturn only the most recent N observations, e.g. 12. Omit for full/ranged series.
startNoStart date dd/MM/yyyy, e.g. "01/01/2025". Optional.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "code": 432,
      +    "last": 12
      +  },
      +  {
      +    "code": 433,
      +    "end": "31/12/2025",
      +    "start": "01/01/2025"
      +  }
      +]
  2. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is covered. The description adds genuinely useful context beyond that: the exact return shape ({series_code, series_name, count, observations:[{data, valor}]}) and the dd/MM/yyyy date convention. It stops short of mentioning rate limits, auth needs, or whether the full-series path is paginated.

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?

Three sentences, front-loaded with the purpose, then the code reference list, then the return shape and query modes. The inline JSON return snippet is slightly heavy but earns its place because no output schema exists.

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?

With no output schema, the description correctly compensates by describing the response payload and date format, and the four parameters are all accounted for. Missing only edge-case behaviour (invalid codes, series length limits, update cadence), which are minor for a read-only fetch.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds real domain value the schema cannot: a mapping of common series codes and the semantics of 'last' versus start/end. That extra meaning for the required 'code' parameter lifts it above baseline.

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 verb and resource ('Fetch any Banco Central do Brasil SGS time series by numeric code') and grounds it with concrete example codes (432=Selic target, 433=IPCA, etc.), making the tool's identity unambiguous. It does not explicitly route the agent away from near-neighbours like ptax_usd or indicator, which is the only thing keeping it from a 5.

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 line 'Use "last" for the most recent N observations, or a date range' gives parameter-level usage guidance, but there is no when-to-use-this-vs-an-alternative statement and no exclusions. The guidance is implied rather than explicit routing, which lands it at minimum viable.

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.