Skip to main content
Glama

SpainCompanyAPI: Spanish company data

Check if a Spanish tax ID is revoked

check_tax_id_revocation
Read-onlyIdempotent

Checks whether the Spanish Tax Agency (AEAT) has revoked or reinstated the tax ID (NIF) of a company, as published in the official gazette (BOE). Returns status REVOKED or REHABILITATED with the date and the BOE link, or null if nothing has been published for that tax ID. A company with a revoked tax ID cannot operate with the Tax Agency and banks cannot process its payments. Works even when the company has no record in search_companies.

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": {
      "cif": "<cif>"
    },
    "name": "check_tax_id_revocation"
  }
}

Input Schema

NameRequiredDescriptionDefault
cifYesSpanish company tax ID (CIF/NIF), e.g. A46103834. Spaces and hyphens are accepted.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

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 (readOnly, idempotent, non-destructive, open-world), and the description goes beyond them by documenting the return shape (REVOKED/REHABILITATED plus date and BOE link) and the important null case when nothing is published. It also flags the real-world consequence of revocation and that no prior company record is needed. Minor gaps remain around latency/caching, but the behavioral picture is strong.

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?

Front-loads what the tool checks, then the return values, then the edge case and business consequence. Four sentences all carry information, though the banking-consequence sentence is motivational rather than operational and could be trimmed without loss of call correctness.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

A one-parameter read tool with no output schema, so the description must carry the return contract itself — which it does, including the null outcome for unpublished tax IDs and the two possible status values. Nothing an agent needs to call this correctly or interpret the result is missing.

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 a single parameter at 100% schema description coverage, the schema already explains the CIF/NIF format, length bounds, and tolerance for spaces and hyphens. The description reinforces the NIF terminology but adds no syntax or format detail beyond the schema, so the baseline 3 applies.

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 and resource ('Checks whether the Spanish Tax Agency (AEAT) has revoked or reinstated the tax ID (NIF) of a company'), names the data source (BOE), and explicitly separates itself from search_companies by noting it works even without a company record. An agent can distinguish it from get_company or search_companies 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?

Provides clear usage context: this is the tool to reach for when verifying a CIF's status against the gazette, and it explicitly does not require a prior company lookup. It stops short of an explicit 'use this instead of X when...' routing statement against get_company, but the intended situation is unambiguous.

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.