Skip to main content
Glama

¿Cómo va España?

Contratos públicos y subvenciones

contratos_y_subvenciones
Read-onlyIdempotent

A quién contrata y a quién subvenciona el sector público: las licitaciones más recientes de la Plataforma de Contratación (objeto, órgano, importe y adjudicatario), las empresas que más se adjudican, las convocatorias de subvenciones por año, las mayores concesiones recientes y los mayores beneficiarios de cada año. Úsalo para «contratos de limpieza», «¿quién recibe más subvenciones?» o «últimas convocatorias de ayudas».

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

Input Schema

NameRequiredDescriptionDefault
anoNoEn `beneficiarios`: el año (por defecto, el último).
verNo`resumen` (por defecto sin `consulta`), `licitaciones` (por defecto con `consulta`), `adjudicatarios`, `convocatorias` de subvenciones, mayores `concesiones` recientes o mayores `beneficiarios` de un año.
limiteNoCuántos resultados como mucho (12 por defecto).
consultaNoPalabras para buscar en el objeto, el órgano o el nombre: «limpieza», «Ayuntamiento de Madrid», «hidrógeno».
adjudicadasNoEn `licitaciones`: solo las ya adjudicadas.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedInput schema / $schema
      Removed value: -"https://json-schema.org/draft/2020-12/schema"
  2. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile needs no restatement. The description adds the data source (Plataforma de Contratación) and some mode defaults, but says nothing about freshness, result volume beyond the limite cap, or whether the lists are exhaustive or samples.

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 sentences: a dense but well-ordered enumeration of views followed by example queries. Content is front-loaded with the subject, and nothing is repetitive. The view enumeration is long but each clause corresponds to a real mode, so it earns its place.

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?

With no output schema, the description does the useful work of naming the fields a tender returns (objeto, órgano, importe, adjudicatario), which is what an agent needs to judge relevance. Combined with 100% schema coverage and full annotations, little is missing for a five-parameter read-only query tool.

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%, including enum value definitions and defaults, so the baseline is 3. The description's only real contribution is mapping its prose («los mayores beneficiarios de cada año») onto the beneficiarios view and the ano parameter; it adds no format or interaction detail beyond the schema.

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 subject (who the public sector contracts and subsidises) and enumerates the concrete datasets: recent tenders with objeto, órgano, importe and adjudicatario, top awardees, subsidy calls by year, largest concessions, largest beneficiaries. The scope is unambiguous and disjoint from the legislative/polling siblings, but it never names or situates itself against an alternative tool.

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

Usage Guidelines4/5

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

Three concrete trigger queries («contratos de limpieza», «¿quién recibe más subvenciones?», «últimas convocatorias de ayudas») give an agent clear signals for when this tool applies. There is no exclusion guidance or statement of what the tool should not be used for, which keeps it below a 5.

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