Skip to main content
Glama

regdata_spain_company_directory

Retrieve comprehensive company information from Spain's official business registry. Obtain NIF, officers, CNAE codes, legal form, address, and status.

Instructions

Spain Company Directory Scraper - Registro Mercantil. Scrape company data from Spain's official OpenData Registradores directory. Get NIF, officers, CNAE codes, legal form, address, and status from the Registro Mercantil - no API exists for this data. Advanced fields beyond this schema are also accepted (regdata_describe lists them).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cnaeCodeNoFilter results by CNAE economic activity code. Example: '6201' (computer programming), '4711' (retail sale in non-specialized stores)
maxItemsNoOptional cap on billed dataset items returned.
provinceNoFilter results by Spanish province. Matching is case- and accent-insensitive and understands the registry's dual-language names (searching 'Alava' matches 'ARABA/ALAVA'). Companies outside the province are discarded before extraction, so you are never charged for them. Example: 'Madrid', 'Barcelona', 'Valencia', 'Sevilla'
maxResultsNoMaximum number of company records to return. Default: 100. Set higher for broader searches.
nifNumbersNoList of NIF/CIF tax identification numbers to look up. Each NIF is looked up individually for exact-match results.
irusNumbersNoList of IRUS numbers for direct company lookup. Skips search and goes straight to detail pages. Find IRUS in company URLs like /directorio/-/sociedad/{irus}/{company-name}. Example: '1000239977797'
searchQueryNoSearch by company name (partial match). Example: 'Telefonica', 'Inditex', 'Banco Santander'
Behavior2/5

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

With no annotations provided, the description must disclose behavioral traits. It indicates the tool is a scraper but does not mention read-only status, rate limits, data freshness, or potential side effects. The description is too minimal for a scraping tool.

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?

The description is concise (3 sentences) with no superfluous content. It front-loads the tool name and purpose, followed by acceptable parameters and a reference to another tool. Every sentence adds value.

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

Completeness3/5

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

The description lists data fields returned but lacks details on the output format or pagination behavior. Given no output schema and 7 parameters, more detail on how results are structured would improve completeness, though the reference to regdata_describe partially compensates.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Input schema coverage is 100% with each parameter described. The description adds value by noting that advanced fields beyond the schema are accepted and directing users to regdata_describe for details, which enhances understanding beyond the schema.

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 description clearly specifies the tool's purpose: scraping Spain's official company directory (Registro Mercantil) and listing the specific data fields (NIF, officers, CNAE codes, etc.). It differentiates from siblings by targeting Spain and referencing regdata_describe for advanced fields.

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

Usage Guidelines3/5

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

The description mentions that no API exists for this data, implying this tool is the only means, but it does not explicitly state when to use this tool over alternatives like regdata_spain_concursal or other country-specific tools. No exclusion criteria or alternatives are given.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Nolpak14/getregdata'

If you have feedback or need assistance with the MCP directory API, please join our Discord server