Skip to main content
Glama

SpainCompanyAPI: Spanish company data

Search Spanish companies by name

search_companies
Read-onlyIdempotent

Searches Spanish companies (sociedades) by name or part of the name and returns up to 10 candidates with their tax ID (CIF), province and registry status. Use it when you do not have the CIF of a company; then call get_company with the chosen CIF. Sole traders (autónomos) 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": {
      "query": "<query>"
    },
    "name": "search_companies"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of results (default 10)
queryYesCompany name or part of it

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / limit / description
      Previous value: -"Número máximo de resultados (por defecto 10)"New value: +"Maximum number of results (default 10)"
    • changedInput schema / properties / limit / maximum
      Previous value: -25New value: +10
    • changedInput schema / properties / query / description
      Previous value: -"Nombre o parte del nombre de la empresa"New value: +"Company name or part of it"
  2. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, open-world), and the description adds useful behavior: a hard cap of 10 candidates, the identity fields returned, and the exclusion of autónomos, which prevents false negatives. It does not mention auth requirements, rate limits, or pagination beyond the cap, so it falls short of a 5.

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?

Two sentences with zero filler: the capability and return shape come first, the routing guidance and exclusion second. Every clause carries information an agent needs.

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?

For a two-parameter read-only lookup with rich annotations but no output schema, the description supplies enough about return contents (CIF, province, registry status) and result limits for an agent to call it and interpret results correctly.

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% for both parameters, including the minLength on query and the 1-10 bound on limit, so the schema does the heavy lifting. The description's 'name or part of the name' and 'up to 10' essentially restate what the schema already declares, adding little new meaning; baseline 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 (searches) and resource (Spanish companies/sociedades), the matching mode (name or part of the name), and the return payload (CIF, province, registry status). It is clearly distinguishable from siblings such as get_company, which it explicitly names as the follow-up step.

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?

Gives an explicit trigger condition ('when you do not have the CIF of a company'), a concrete next action ('then call get_company with the chosen CIF'), and a clear exclusion ('Sole traders (autónomos) are not included'). Nothing about when to prefer this over get_company is left to inference.

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.