Skip to main content
Glama

bcb_series_populares

Access 150+ popular Brazilian economic time series including interest rates, inflation, exchange rates, GDP, employment, and credit indicators from the Central Bank of Brazil.

Instructions

Lista 150+ séries temporais do BCB com seus códigos. Inclui juros, inflação, câmbio, PIB, emprego, crédito e outros indicadores econômicos.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
categoriaNoFiltrar por categoria: Juros, Inflação, Câmbio, Atividade Econômica, Emprego, Fiscal, Setor Externo, Crédito, Agregados Monetários, Poupança, Índices de Mercado, Expectativas

Implementation Reference

  • The handleSeriesPopulares function processes the request to list popular series, optionally filtering them by category.
    export async function handleSeriesPopulares(
      args: { categoria?: string }
    ): Promise<ToolResult> {
      try {
        let series: SeriePopular[] = SERIES_POPULARES;
    
        if (args.categoria) {
          const categoriaNorm = normalizeString(args.categoria);
          series = series.filter(s => normalizeString(s.categoria).includes(categoriaNorm));
        }
    
        const porCategoria: Record<string, SeriePopular[]> = {};
        for (const serie of series) {
          if (!porCategoria[serie.categoria]) porCategoria[serie.categoria] = [];
          porCategoria[serie.categoria].push(serie);
        }
    
        const result = {
          totalSeries: series.length,
          categorias: Object.keys(porCategoria).length,
          series: args.categoria ? series : porCategoria,
          observacao: "Use bcb_serie_valores ou bcb_serie_ultimos com o código para consultar os dados"
        };
    
        return { content: [{ type: "text" as const, text: JSON.stringify(result, null, 2) }] };
      } catch (error) {
        return {
          content: [{ type: "text" as const, text: `Erro ao listar séries: ${error instanceof Error ? error.message : String(error)}` }],
          isError: true
        };
      }
    }
  • The definition of bcb_series_populares tool including its name, description, and input schema.
      name: "bcb_series_populares",
      description: "Lista 150+ séries temporais do BCB com seus códigos. Inclui juros, inflação, câmbio, PIB, emprego, crédito e outros indicadores econômicos.",
      inputSchema: {
        type: "object" as const,
        properties: {
          categoria: { type: "string" as const, description: "Filtrar por categoria: Juros, Inflação, Câmbio, Atividade Econômica, Emprego, Fiscal, Setor Externo, Crédito, Agregados Monetários, Poupança, Índices de Mercado, Expectativas" }
        }
      }
    },
  • src/tools.ts:855-856 (registration)
    The dispatcher switch case that maps the bcb_series_populares tool name to the handleSeriesPopulares function.
    case "bcb_series_populares":
      return handleSeriesPopulares(args as { categoria?: string });
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It states it lists series with codes and includes economic indicators, but does not mention if this is a read-only operation, any rate limits, authentication needs, or what the output format looks like (e.g., list structure, pagination). For a tool with no annotations, this leaves significant gaps in understanding its behavior.

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?

The description is concise and front-loaded, using two sentences to convey the core functionality and scope. It efficiently lists key economic indicators without unnecessary details. However, it could be slightly more structured by explicitly stating it's for browsing or filtering, but overall it avoids waste.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given no annotations and no output schema, the description is incomplete for a tool that lists data. It covers what the tool does and hints at categories, but lacks details on output format (e.g., how series are presented, if codes are linked), behavioral traits like safety or performance, and how it fits among siblings. For a tool with 1 parameter and economic data context, more completeness is needed.

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 input schema has 100% description coverage, with one optional parameter 'categoria' documented as filtering by category. The description adds context by listing example categories (e.g., 'juros, inflação, câmbio, PIB, emprego, crédito'), which aligns with the schema but does not provide additional semantics beyond what the schema already specifies. Since schema coverage is high, the baseline score of 3 is appropriate.

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 clearly states the tool's purpose: listing 150+ BCB time series with their codes, covering economic indicators like interest rates, inflation, exchange rates, GDP, employment, credit, etc. It specifies the verb ('Lista') and resource ('séries temporais do BCB'), but does not explicitly differentiate from sibling tools like 'bcb_buscar_serie' or 'bcb_serie_metadados', which might have overlapping functions.

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 provides no guidance on when to use this tool versus alternatives. It mentions categories like 'juros, inflação, câmbio, PIB, emprego, crédito' but does not specify if this is for browsing, filtering, or how it compares to siblings such as 'bcb_buscar_serie' (search) or 'bcb_serie_metadados' (metadata). No explicit when/when-not or alternative recommendations are given.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/SidneyBissoli/bcb-br-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server