Skip to main content
Glama

consultar_ncm

Retrieve NCM tax classification from official open data, optionally filtered by date, to support CBS, IBS, and Imposto Seletivo calculations.

Instructions

Consulta uma NCM nos dados abertos. data no formato AAAA-MM-DD.

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": {
      "ncm": "<ncm>"
    },
    "name": "consultar_ncm"
  }
}

Input Schema

NameRequiredDescriptionDefault
ncmYes
dataNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.4/5.0
Behavior2/5

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

With no annotations, the description carries the full burden. "dados abertos" hints at a read-only public data source, but the description does not say what is returned, whether the lookup covers a single code or a list, or how `data` changes the result (e.g., version valid on that date). For an unannotated tool this is a meaningful gap.

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 short sentences with no filler; the action is front-loaded and the format hint follows. The brevity is efficient, though it borders on under-specification rather than genuine conciseness.

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?

For a two-parameter tool with no annotations and no output schema, the description omits what the lookup yields, what `ncm` expects, and what `data` controls. An agent would have to guess at the essential behavior before calling it.

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

Parameters2/5

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

Schema description coverage is 0%, so the description must compensate, yet it only gives the format of `data` (YYYY-MM-DD) without explaining its meaning or effect, and never describes the required `ncm` parameter at all. The partial format hint is the only added value.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Consulta uma NCM nos dados abertos" gives a specific verb (query) and resource (NCM), so the basic action is identifiable. However, it never explains what an NCM lookup returns or how it differs from siblings like consultar_nbs or consultar_classificacao_tributaria, so an agent cannot reliably distinguish the scope of this tool from its neighbors.

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?

There is no when-to-use statement, no prerequisite, and no mention of alternatives such as consultar_nbs for the analogous NBS lookup. The only guidance offered is a date-format note, which is parameter formatting rather than usage context.

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