Skip to main content
Glama

Anuário

Validate a tax number

validate_tax_number
Read-onlyIdempotent

Check whether a Portuguese tax number (NIF/NIPC) is well-formed by its check digit, and say what kind of taxpayer its first digit indicates. Does not say whether the number is assigned.

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": {
      "tax_number": "<tax_number>"
    },
    "name": "validate_tax_number"
  }
}

Input Schema

NameRequiredDescriptionDefault
tax_numberYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already cover the safety profile (read-only, idempotent, non-destructive, closed-world), so the bar is lower. The description still adds real value by disclosing the negative capability (no assignment status) and by clarifying what the first digit contributes, both of which prevent misuse.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two tight sentences: the positive capability first, then the boundary. Every clause carries information — verb, domain, mechanism, output, and limitation — with 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 single-parameter pure validator with no output schema, the description covers input domain, algorithm, output semantics, and a key limitation. Remaining gap is the exact accepted input format and error/return shape, which is minor at this complexity level.

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?

Schema coverage is 0% for the single string parameter, so the schema only says 'a string'. The description compensates partly by identifying it as a Portuguese NIF/NIPC, but does not say whether punctuation, country prefixes, or whitespace are accepted or rejected — the main practical ambiguity for a validator.

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 (check), resource (Portuguese tax number, NIF/NIPC) and the exact mechanism (check digit) plus the secondary output (taxpayer kind from first digit). An agent can distinguish this from sibling tools like get_company or identify_company without opening any 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?

Clear context for when this applies — validating well-formedness of a Portuguese NIF/NIPC — and explicitly bounds it with 'Does not say whether the number is assigned,' which steers the agent away from treating it as a lookup. No alternative sibling is named for the assigned-number case, so it stops short of full routing guidance.

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