Skip to main content
Glama

NCM pelo código

lookup_ncm
Read-onlyIdempotent

Uma linha da tabela NCM pelo código (de 2 a 8 dígitos, com ou sem pontos): a descrição, a vigência e o ato que a criou.

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": {
      "code": "<code>"
    },
    "name": "lookup_ncm"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYesO código NCM: "0901.11.10" ou "09011110".

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds real context beyond that: it discloses the response contents (description, validity period, creating act) in the absence of an output schema, plus the accepted code widths. It does not say what happens when a code is not found.

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?

A single sentence with no filler, and the resource/verb is front-loaded before the parenthetical constraint. The mid-sentence parenthetical and colon list make it slightly denser than ideal, but every clause carries information.

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?

For a one-parameter read tool with full annotations, the definition covers input format, accepted range, and returned fields without needing an output schema. The only unaddressed case is a nonexistent code, which an agent would need to know to handle failures correctly.

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 gives two example formats, so the baseline is 3. The description earns a bump by stating the accepted length range 'de 2 a 8 dígitos', which the schema never specifies and which tells the agent that truncated prefix codes are legal input.

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?

States a specific verb+resource: it fetches 'uma linha da tabela NCM pelo código' and enumerates the returned fields (descrição, vigência, ato). The singular-row-by-exact-code framing implicitly contrasts with the sibling search_ncm, but that sibling is never named, so the differentiation is only partial.

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 'pelo código': use it when you already have an NCM code. There is no explicit statement about when to prefer search_ncm (e.g., partial names or exploratory queries) and no exclusions or prerequisites are given.

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.

Resources