Skip to main content
Glama

Spain - Spanish Business Verification (0.30 credits)

spain_api_company_lookup
Read-onlyIdempotent

Look up a Spanish company by NIF to return its legal name and registration status for company validation.

Instructions

Spain company lookup by NIF. Returns the legal name and registration status. Inputs: documentType NIF and documentNumber. Use it for a company. Use spain_api_identity_lookup for a DNI or NIE. Costs 0.30 credits per successful call.

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": {
      "documentType": "<documentType>",
      "documentNumber": "<documentNumber>"
    },
    "name": "spain_api_company_lookup"
  }
}

Input Schema

NameRequiredDescriptionDefault
documentTypeYesGovernment-issued document type code for this country.
documentNumberYesDocument number. Dots, dashes, and spaces are accepted and ignored for length checks.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.5

TDQS

A4.3/5.0
Behavior4/5

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

The annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false. The description adds information the annotations do not carry: the two return fields and the price ('0.30 credits per successful call'), which matters for a metered lookup. It stops short of explaining what values 'registration status' can take or whether failures are still billed.

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 purpose and return fields, then routing, then cost. The 'Inputs:' sentence largely duplicates the schema and is the one piece that does not fully earn its place.

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 two-parameter lookup with rich annotations and no output schema, the essentials are covered: what it returns, which document type, when to use a sibling, and the cost. Only the shape of the returned status values is undefined.

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 100%, and the description only restates that the inputs are documentType NIF and documentNumber. That is the baseline of 3; it adds no format, validation or normalization detail beyond the schema's own notes on accepted separators.

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?

The first sentence names a specific verb and resource ('Spain company lookup by NIF') and states what comes back ('legal name and registration status'). It separates itself from the sibling identity tool by naming the document families that route to each.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives an explicit use condition ('Use it for a company') and names the alternative ('spain_api_identity_lookup') together with the condition that selects it ('for a DNI or NIE'). No inference is required to pick between the two.

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

Deploy Server

Other Tools