Skip to main content
Glama

SpainCompanyAPI: Spanish company data

Get a Spanish company by tax ID

get_company
Read-onlyIdempotent

Returns the basic public record of ONE Spanish company from its tax ID (CIF/NIF): legal name, status (active, dissolved, extinguished, in insolvency...), legal form with ISO 20275 code, LEI code, activity code (CNAE), province and incorporation date, plus tax_id_revocation if the Tax Agency has revoked or reinstated its tax ID. The status is derived from Mercantile Registry gazette (BORME) filings; it is not an official certificate. The street address and the directors are not included.

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": "get_company"
  }
}

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. Changed2 schema fields changed
    • changedInput schema / properties / cif / description
      Previous value: -"CIF/NIF de la sociedad española, p. ej. A46103834 (se aceptan espacios y guiones)"New value: +"Spanish company tax ID (CIF/NIF), e.g. A46103834. Spaces and hyphens are accepted."
    • removedInput schema / properties / include_directors
      Removed value: -{
      -  "description": "true para incluir administradores y cargos vigentes (Pro y Business)",
      -  "type": "boolean"
      -}
  2. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), and the description adds substantive context beyond them: the data's provenance (derived from BORME gazette filings), an explicit disclaimer that it is not an official certificate, the enumeration of possible status values, and the meaning of tax_id_revocation. This is exactly the kind of trust and interpretation context an agent needs for a regulatory data lookup.

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?

Three sentences, front-loaded with the operation and input, then the returned fields, then the provenance caveat and exclusions. The field enumeration is long but earns its place because there is no output schema; only minor tightening is possible.

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?

With no output schema, the description carries the full burden of describing the return payload, and it does so field by field while also flagging what is absent (address, directors) and the reliability limits of the status field. An agent can decide whether to call it and how to interpret the result without further information.

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 coverage, the schema already documents the CIF format, length bounds, example, and tolerance for spaces and hyphens. The description restates the tax-ID input but adds no syntax or validation detail beyond the schema, so the baseline of 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 ('Returns the basic public record of ONE Spanish company') and scopes it by input ('from its tax ID (CIF/NIF)'), which cleanly separates it from search_companies. It then enumerates the exact fields returned, so an agent knows precisely what this call yields.

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?

The 'ONE company' framing plus the explicit note that street address and directors are not included gives the agent clear boundaries on when this tool applies and where it stops. It does not, however, name an alternative route for resolving a company name to a CIF (search_companies) or for a revocation-only check (check_tax_id_revocation), so the when-not guidance is implicit rather than explicit.

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.