Skip to main content
Glama

Buscar NCM

search_ncm
Read-onlyIdempotent

Busca na tabela NCM (Nomenclatura Comum do Mercosul, a classificação fiscal da mercadoria na nota fiscal) por palavra da descrição ou pelo começo do código. Devolve até 50 linhas, com o código, a descrição e a vigência. A descrição de um item costuma completar a do grupo acima dele (um código mais curto).

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": {
      "query": "<query>"
    },
    "name": "search_ncm"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYesUma palavra ("café", "parafuso") ou o começo do código ("0901", "8471.30").

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/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 safety is covered. The description adds real behavioral detail beyond that: it returns at most 50 rows, each with code, description and vigência (validity), and it explains that an item's description often completes the description of its shorter parent code — a domain trait that helps interpret results. It does not say what happens when more than 50 rows match.

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?

Three short sentences, front-loaded with what is searched, then what is returned, then an interpretation hint. The definition of NCM in the parenthetical earns its place for a domain-specific resource; the hierarchy note is slightly tangential but still useful for reading results.

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 single-parameter, read-only search with no output schema, the description covers the searched fields, the match modes, the result columns and the 50-row cap, which is close to complete. The remaining gap is truncation behaviour when matches exceed 50 and how to narrow the query in that case.

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?

With one parameter and 100% schema description coverage, the schema already documents the query with example values ('café', '0901', '8471.30'). The description restates the same semantics (word or code prefix) without adding format rules such as accent or case sensitivity, so it matches the baseline rather than exceeding it.

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 concrete verb and resource ('Busca na tabela NCM') and defines what NCM is ('a classificação fiscal da mercadoria na nota fiscal'), then specifies the two match modes: word in the description or prefix of the code. An agent can distinguish this partial/prefix search from an exact-code lookup without extra context, though no sibling is named explicitly.

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 match modes: use it when you have a keyword or the beginning of a code. There is no explicit 'use X instead when you have the full code' statement and no note about what to do when zero rows come back, so the agent must infer the boundaries with sibling tools such as lookup_ncm.

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