Skip to main content
Glama

Buscar na lista de serviços (LC 116, NBS e IBS/CBS)

buscar_servicos
Read-onlyIdempotent

NÃO PRECISA DE LOGIN. Consulta a lista de serviços da LC 116 com os códigos NBS e a classificação do IBS/CBS (CST, cClassTrib e indicador de operação) do Anexo VIII oficial da NFS-e. busca acha o item por texto (ex.: "publicidade", "desenvolvimento de sistemas"); item traz um item inteiro (ex.: "17.06"). É correlação oficial, não lista de atividades permitidas: o código do serviço de uma nota é escolha do emitente com o contador.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "buscar_servicos"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemNoItem da lista de serviços, ex.: "17.06" (aceita "1706" e o código nacional "17.06.01").
buscaNoTexto a procurar no nome do item e nos NBS dele. Acento e maiúscula não importam.
limiteNoQuantos itens devolver na busca por texto (1 a 20, padrão 8).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world, so the safety profile is covered. The description still adds real context beyond them: no login/authentication is needed, and the data source is the official Anexo VIII of NFS-e rather than an inferred mapping. It does not state result ordering or what an empty search returns, so it is not fully exhaustive.

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?

Four short sentences, each carrying distinct information: access requirement, data scope, mode selection, and interpretation caveat. Leading with "NÃO PRECISA DE LOGIN" is unusual placement but is a deliberate, useful signal. Nothing is redundant, though the density of domain acronyms makes it slightly heavy.

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 read-only lookup with three fully documented optional parameters and no output schema, the definition covers what an agent needs: no auth, data provenance, both access modes with example inputs, and how to interpret results. The only gap is return-shape detail (field list, ordering) that the absent output schema leaves to the description.

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%, so the baseline would be 3. The description goes past the schema by explaining what each mode returns — `busca` resolves an item by text across item names and their NBS codes, `item` returns a whole item — which matters because no output schema exists. The `limite` parameter's effect on result size is left to the schema.

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?

States a specific verb (consulta/busca) and a precisely scoped resource: the LC 116 service list with NBS codes and the IBS/CBS classification (CST, cClassTrib, operation indicator) from the official NFS-e Anexo VIII. No sibling tool touches this data, and the description makes the scope unmistakable without opening the schema.

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?

Explicitly routes between the two modes: `busca` for free-text lookup (with example queries) and `item` for fetching one full item (with example code). It also adds an interpretive guardrail — this is an official correlation, not a list of permitted activities, and the code choice belongs to the emitter and their accountant. No named alternative tool or explicit when-not-to-use, which keeps it below a 5.

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