Skip to main content
Glama

Spain - Spanish Citizen (0.30 credits)

spain_api_identity_lookup
Read-onlyIdempotent

Look up a person's Spanish identity by DNI or NIE and retrieve their full name and document status using the document number and expiration date.

Instructions

Spain identity lookup by DNI or NIE. Returns the full name and document status. Inputs: documentType (NIE or DNIES), documentNumber, and expirationDate (DD/MM/YYYY). Use it for a person. Use spain_api_company_lookup for a NIF company. 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>",
      "expirationDate": "<expirationDate>",
      "documentNumber": "<documentNumber>"
    },
    "name": "spain_api_identity_lookup"
  }
}

Input Schema

NameRequiredDescriptionDefault
documentTypeYesSpanish document type: NIE or DNIES.
documentNumberYesNIE or DNIES number.
expirationDateYesDocument expiration date. Format: DD/MM/YYYY. Example: 01/01/2030.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.5

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so the safety profile is covered; the description adds the return shape and the pricing model ('0.30 credits per successful call'), which is not in any structured field. It stops short of stating what happens on a miss or whether failed lookups are billed.

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?

Four short sentences ordered by importance: purpose and return, inputs, disambiguation, cost. Nothing is padded and the deciding information is front-loaded.

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-lookup, three-parameter tool with full schema coverage and no output schema, the description covers purpose, expected return, inputs, alternative and cost. The remaining gap is failure/not-found behavior, which matters because billing is tied to successful calls.

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 description coverage is 100% and the schema already carries the enum, the DD/MM/YYYY pattern and an example, so the description's restatement of documentType, documentNumber and expirationDate adds no meaning beyond structured data. Baseline 3 applies; the 'DNI' mention even drifts from the enum's NIE/DNIES values.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('identity lookup by DNI or NIE') plus the return payload ('full name and document status'), and names the sibling it is not (spain_api_company_lookup). The only friction is that the prose says 'DNI or NIE' while the enum is 'NIE'/'DNIES', so the exact accepted document universe is slightly ambiguous.

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?

Explicitly scopes the tool to persons ('Use it for a person') and routes companies with a NIF to spain_api_company_lookup by name. This is a clear either/or decision rule an agent can apply without opening either schema.

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