Skip to main content
Glama

suggest_nbs

Read-onlyIdempotent

List the NBS codes NFS-e Anexo VIII pairs with a service code.

Suggestions, not a decision: show them to the user and put an nbs on the item only after they pick one. Each carries the cIndOp and cClassTrib Anexo VIII lists for it, which belong in the item's ibs_cbs group only when the user also confirms them. Empty when the annex lists none.

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": {
      "service_code": "<service_code>"
    },
    "name": "suggest_nbs"
  }
}

Input Schema

NameRequiredDescriptionDefault
service_codeYesThe LC 116 item.subitem as items[].service_code takes it: 1.07, 01.07.00 or 010700.

Output Schema

NameRequiredDescriptionDefault
sourceNo
suggestionsNo
service_codeYes
confirmation_requiredNoAlways true: confirm the nbs with the user.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • addedOutput schema / $defs / NbsCandidate / properties / classification_cst
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "CST for the item's ibs_cbs."
      +}
    • addedOutput schema / $defs / NbsCandidate / properties / incidence
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Where Anexo VIII says the IBS is due."
      +}
    • addedOutput schema / $defs / NbsCandidate / properties / legal_reference
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "LC 214/2025 article behind the cClassTrib."
      +}
    • addedOutput schema / $defs / NbsCandidate / properties / operation_variants
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": {
      +        "type": "string"
      +      },
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "cIndOp when not onerous or the acquirer is abroad: onerous_domestic, onerous_abroad, free_domestic, free_abroad."
      +}
    • addedOutput schema / $defs / NbsCandidate / properties / reduction_cbs
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "number"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "pRedCBS, %."
      +}
    • addedOutput schema / $defs / NbsCandidate / properties / reduction_ibs
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "number"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "pRedIBS, %."
      +}
  2. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, closed-world safety, so the description wisely spends its words on behavior beyond them: the results are advisory, not authoritative, and the returned cIndOp/cClassTrib values must be user-confirmed before being written. It also discloses the empty-result edge case ('Empty when the annex lists none'), which prevents misreading an empty array as an error.

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, front-loaded with the purpose, followed by the advisory constraint and the result-contents caveat. Slightly repetitive in restating 'suggestions, not a decision' across two sentences, but no filler.

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-only lookup with an output schema, the description covers purpose, the advisory nature, what the returned fields mean, and the empty case. Return shape is left to the output schema, which is appropriate; an agent has everything needed to call it and act on results correctly.

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?

The single parameter is fully documented in the schema, including accepted formats (1.07, 01.07.00, 010700) and a max length. The description restates the input concept but adds no format, normalization, or matching behavior beyond what the schema already says; baseline 3 applies at 100% coverage.

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 ('List'), a specific resource ('NBS codes'), and a precise source of truth ('NFS-e Anexo VIII pairs with a service code'). Nothing else in the sibling list does annex-based code pairing, so an agent can distinguish it 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?

Gives explicit downstream workflow guidance: show suggestions to the user, only apply an nbs after they pick one, and only populate ibs_cbs fields after they confirm cIndOp/cClassTrib. It does not name alternative tools or state when-not-to-call (e.g., versus calculate_ibs_cbs), 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.