Skip to main content
Glama
Spain Company Directory MCP Server

Spain Company Directory MCP Server

Look up and search Spanish companies

lookup_spain_companies
Read-onlyIdempotent

Look up Spanish companies by name, CIF, or infoempresa link, or search by sector, status, and legal form to retrieve registry details, financials, and officers.

Instructions

Look up Spanish companies by name, CIF, or infoempresa link, or search by name, sector, status, and legal form. Returns one row per company: CIF, status, legal form, registered address, website, phone, employees, CNAE and SIC activity, mercantile registry, last BORME date, revenue, net worth, net result, and officers.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "lookup_spain_companies"
  }
}

Input Schema

NameRequiredDescriptionDefault
dedupeNotrue (default): a company already returned in this run is skipped, free.
sectorNoSearch filter: one or more of infoempresa's 21 sectors by name or number, for example Construcción or Hostelería. With no search term, the filters alone list up to 1,000 companies.
statusNoSearch filter: any (default), activa, extinguida, or inactiva.
companiesNoCompany names, CIFs (for example A28015865), or infoempresa company links. Each is read from its company page (company-detail-row). A name must match the registered name, legal form aside, unless name_match is closest.
legal_formNoSearch filter: SA, SL, or SLL (or the full name). Empty means any.
name_matchNoexact (default): a company name must match the registered name, legal form aside; otherwise a free no_results row lists the closest names. closest: take the first search result.
search_termsNoWords to find in company names, for example construcciones. Each term lists up to about 100 companies (company-row). Combine with the filters below.
term_in_nameNotrue (default): search results whose name lacks a word of the search term are skipped, free.
max_charge_usdNoOptional. The run stops before a charge that would pass this amount. Summary rows are always returned.
company_detailsNotrue: each search result is read from its company page and charged as a company-detail-row. false (default): search list fields only.
include_officersNotrue (default): detail rows carry the officers the company page lists (up to 25).
max_results_per_searchNoUp to 1,000 for a filter-only search; a search term returns at most about 100. Default 100.
max_officers_per_companyNo1 to 25. Default 25.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, openWorld, idempotent, non-destructive), so the bar is lower. The description adds real behavioral context by disclosing the return format ('one row per company') and enumerating returned fields, which matters since no output schema exists. It does not mention the charge/metering model, but that is carried in the schema.

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?

Two front-loaded sentences: the first defines the lookup/search modes and the second lists return fields. The long field enumeration is justified by the absence of an output schema, though it is dense and could be trimmed.

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 13-parameter tool with no output schema, the description covers purpose, dual modes, and return contents well, while the schema handles parameter detail. The main gap is the cost/charge model and the interplay between lookup and search, which are left to the schema.

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%, so every parameter is already documented in the schema. The description echoes the filter categories (name, sector, status, legal form) but adds no syntax or interaction detail beyond what the schema provides. Baseline 3 is appropriate.

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 states a specific verb and resource (look up / search Spanish companies) and distinguishes two operating modes: direct lookup by name, CIF, or infoempresa link, versus filtered search by name, sector, status, and legal form. The return shape is also stated. An agent can immediately tell what the tool does.

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 two modes (identifier lookup vs filtered search) are named, which implies when each is appropriate, but there is no explicit 'use this when' or 'do not use' guidance and no alternatives are referenced. Usage is implied rather than stated.

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