Skip to main content
Glama

consultar_nbs

Retrieve NBS service details from official open data by code, optionally specifying a date (YYYY-MM-DD) to get the applicable classification.

Instructions

Consulta uma NBS (serviços) 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": {
      "nbs": "<nbs>"
    },
    "name": "consultar_nbs"
  }
}

Input Schema

NameRequiredDescriptionDefault
nbsYes
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?

No annotations are supplied, so the description carries the full behavioral burden. It only says the data comes from open data; it does not disclose return shape, error behavior when an NBS is not found, whether the data parameter changes scope or versioning, or any rate/auth considerations. For a lookup tool with zero annotation coverage this is a significant 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 wasted words, and the core action is front-loaded before the format note. Brevity is appropriate here, though the second sentence is under-specified rather than merely concise.

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?

With no annotations, no output schema, and 0% parameter description coverage, the description leaves too much open for an agent to call it confidently — particularly the meaning of the required `nbs` argument and the effect of the optional `data`. It should do considerably more given how little structured metadata supports 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, and it only partly does: it specifies the YYYY-MM-DD format for `data`, which is genuinely useful beyond the schema. The required `nbs` parameter is left entirely unexplained — no indication of whether it is a code, a name fragment, or a numeric identifier, and no note on what happens when `data` is omitted.

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?

States a specific verb and resource ("Consulta uma NBS (serviços) nos dados abertos"), so an agent knows it retrieves an NBS entry from open data. However, it never defines what an NBS is, what a query returns, or how it differs from close siblings like consultar_ncm and consultar_classificacao_tributaria, leaving the purpose only partly pinned down.

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 guidance on when to use this tool rather than the other lookup or tax-calculation siblings. No prerequisites, no exclusions, and no conditions that select this tool are stated; the agent must infer usage from the name alone.

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