Skip to main content
Glama

SLDX API

Dados detalhados de um fundo de investimento por CNPJ

get_investment_fund_by_cnpj
Read-onlyIdempotent

Retorna dados cadastrais completos e rentabilidade em múltiplos períodos (1m, 6m, 12m, YTD) de um fundo de investimento CVM, dado o CNPJ. O CNPJ pode ser enviado com ou sem formatação. 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": {
      "cnpj": "<cnpj>"
    },
    "name": "get_investment_fund_by_cnpj"
  }
}

Input Schema

NameRequiredDescriptionDefault
cnpjYesCNPJ do fundo, com ou sem pontuação, ex: 11.858.015/0001-29 ou 11858015000129

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, openWorldHint and idempotentHint, so the safety profile is covered. The description adds genuinely useful context beyond the annotations: the credit cost (1 credit per call) and the accepted CNPJ formats. It does not describe error behavior for invalid/unknown CNPJs, which would have raised this score.

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?

Two sentences, front-loaded with the return payload and followed by input format and cost; nothing is wasted. Slight density in the first sentence but still clear.

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

Completeness3/5

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

For a single-parameter read-only tool with full schema coverage, the definition covers what is returned, input format and cost. Missing only the failure mode for invalid CNPJs and the exact response shape (no output schema exists), which leaves a small gap.

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 schema already documents the CNPJ format with examples, so baseline is 3. The description adds meaning by allowing formatted or unformatted CNPJ, which reinforces flexibility but largely mirrors the schema rather than adding new constraints.

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 ('Retorna dados cadastrais completos e rentabilidade... de um fundo de investimento CVM'), specifies the key (CNPJ) and the data returned (registration data plus returns over 1m/6m/12m/YTD). This clearly distinguishes it from the sibling search_investment_funds_by_name, which searches by name rather than fetching by CNPJ.

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?

Usage is implied by the requirement of a CNPJ: use it when you already have the fund's CNPJ, otherwise search by name. However, the description never explicitly names that alternative or states exclusions, so the agent must infer the routing from sibling names.

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.