Skip to main content
Glama

consultar_empresas_lote

Batch-check multiple CNPJs in a single call to receive compliance summaries and supplier risk scores for each, with per-CNPJ errors returned for failed entries.

Instructions

Consulta em lote múltiplos CNPJs e devolve, em uma única chamada, o resumo de compliance + score de risco de fornecedor para cada empresa. Útil para triagem rápida de carteira de fornecedores, com erros por CNPJ retornados se algum dado falhar.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cnpjsYesLista de CNPJs (max 50), com ou sem formatacao.
criterios_estritosNoSe True, usa pesos rigorosos no score de risco.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.5.1

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It discloses per-CNPJ error handling ('com erros por CNPJ retornados se algum dado falhar') and the single-call batching behavior. It does not explicitly state read-only nature or authentication needs, but as a query tool this is acceptable. The error behavior adds significant transparency.

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 a single, well-structured sentence that front-loads the primary action and outcome. It includes the use case and error behavior without any redundant phrasing. Every clause earns its place.

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?

Given that an output schema exists and the input schema fully documents parameters, the description covers the essential aspects: purpose, use case, and error handling. It does not explain the 'criterios_estritos' parameter, but that is documented in the schema. The description is sufficiently complete for an agent to decide when to use the tool and understand its behavior.

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?

Schema description coverage is 100% for both parameters (cnpjs and criterios_estritos), each with clear descriptions. The tool description does not add any additional meaning beyond the schema – it mentions 'múltiplos CNPJs' which aligns with the schema but adds no new detail. Baseline 3 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 clearly states a specific action ('Consulta em lote' – batch query), the resource ('múltiplos CNPJs'), and the outcome ('resumo de compliance + score de risco de fornecedor para cada empresa'). The 'em lote' aspect distinguishes it from single-CNPJ siblings like consultar_cnpj, making the tool's purpose unmistakable.

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?

It provides a concrete use case: 'Útil para triagem rápida de carteira de fornecedores' (useful for quick screening of supplier portfolios). However, it does not explicitly name alternatives or state when not to use the tool, though the batch nature is implicit. The guidance is clear but not exhaustive.

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

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/AgileConecta/RTC-MCP_FISCAL'

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