Skip to main content
Glama

SLDX API

Indicador econômico (Selic, IPCA, IGP-M, CDI)

get_economic_indicator
Read-onlyIdempotent

Retorna o valor atual e o histórico mensal dos últimos 12 meses de um indicador macroeconômico brasileiro: selic (Taxa Selic meta), ipca (inflação IBGE), igpm (inflação FGV) ou cdi (CDI interbancário). Custa 1 crédito por chamada.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "indicator": "<indicator>"
    },
    "name": "get_economic_indicator"
  }
}

Input Schema

NameRequiredDescriptionDefault
indicatorYesIndicador desejado: selic, ipca, igpm ou cdi

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, and open-world behavior, and the description adds useful context beyond them: the returned payload is the current value plus 12 months of monthly history, and each call costs 1 credit. It does not mention update frequency, data latency, or what happens for an indicator with no recent observation, which keeps it out of the top band.

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?

Two sentences: the first front-loads what is returned and the valid indicators, the second carries the pricing note. Nothing is repeated from the title or schema and no filler remains.

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 a single enum-constrained parameter and no output schema, the description must carry the return shape, and it does so at a useful level (current value plus 12 monthly points). Cost and indicator identity are covered; only secondary details such as units, data freshness, and error behavior are left implicit.

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% and the enum already lists the four values, so the baseline is 3; the description earns an extra point by translating each enum value into its real meaning (Selic meta, IPCA/IBGE, IGP-M/FGV, CDI interbancário), which tells an agent which source and concept each choice maps to. No format or casing guidance is needed since the enum constrains input exactly.

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 current value plus the last 12 months of monthly history for a Brazilian macroeconomic indicator. It enumerates the four accepted indicators (selic, ipca, igpm, cdi) and glosses each one, which cleanly separates it from the currency, crypto, stock, and commodity siblings.

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?

The definition makes the applicable scope clear: Brazilian macro indicators only, with the four valid choices spelled out, plus a cost note of 1 credit per call that helps an agent judge when a call is warranted. It stops short of naming alternatives or stating exclusions (for example, that it is not a price-series or currency tool), so routing still relies on the indicator list.

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.