Skip to main content
Glama

Buscar empresas

search_companies
Read-onlyIdempotent

Search companies (contractors/empresas) that win Spanish public contracts. Returns key aggregates per company.

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": "search_companies"
  }
}

Input Schema

NameRequiredDescriptionDefault
cpvNoCPV code (2-8 digits) — companies whose top activity matches this code
sortNoRanking: 'wins' = most contracts won (default), 'awarded' = highest total awarded €wins
limitNo
queryNoCompany name or keyword
min_winsNoMinimum number of contract wins
comunidadNoComunidad autónoma by name, e.g. 'Andalucía' or 'Madrid'. Region names only (no provinces).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world, so the safety profile is covered. The description adds only that it 'Returns key aggregates per company', without saying what the aggregates are, whether results are paged, or how the default limit of 10 behaves — modest added value beyond structured fields.

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 tight sentences with the resource and scope front-loaded and no filler. It is appropriately sized, though the second sentence ('Returns key aggregates') is vague enough that it earns slightly less than full marks.

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?

For a 6-parameter, zero-required search tool with no output schema, the description covers the basic purpose but omits the return shape ('key aggregates' is unspecified) and gives no hint about combining filters or the ranking default. Adequate, but an agent would need to inspect the schema to use it well.

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 83%, so the schema already documents cpv, sort, query, min_wins and comunidad with useful examples. The description contributes nothing about filtering or ranking semantics, so the baseline 3 applies rather than higher.

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?

The description states a specific verb and resource ('Search companies ... that win Spanish public contracts') and clarifies the domain with the Spanish term 'empresas'. It does not explicitly distinguish itself from the sibling search_organizations, so it stops short of a 5.

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

Usage Guidelines2/5

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

There is no guidance on when to choose this over search_organizations or search_tenders, nor any exclusions or prerequisites. The only implicit signal is 'companies that win contracts', which the agent must interpret on its own.

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.

Resources