Skip to main content
Glama
LicitaPilot MCP

LicitaPilot MCP

by jmcodero

Buscar licitaciones públicas

buscar_licitaciones
Read-onlyIdempotent

Search Spanish public tenders by keyword, province, CPV sector, contracting body, status, and budget. Returns totals, paginated results, and breakdowns by status and sector.

Instructions

Busca licitaciones públicas de España por texto, provincia, sector CPV, organismo, estado e importe.

Devuelve el total, una página de resultados (id, título, organismo, presupuesto, plazo) y el reparto por estado y sector. Usa ver_licitacion con el id para el detalle.

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

Input Schema

NameRequiredDescriptionDefault
cpvNoCódigo o prefijo CPV, p. ej. '45' (obras) o '90910000'.
ordenNo'cierre' = las que cierran antes.recientes
textoNoPalabras clave del objeto del contrato, p. ej. 'limpieza colegios'.
estadoNoEstado de la licitación.abierta
paginaNo
organismoNoSlug del organismo (de buscar_organismo_o_empresa).
provinciaNoProvincia, p. ej. 'Zaragoza' o 'Santa Cruz de Tenerife'.
por_paginaNo
importe_maxNoPresupuesto máximo en euros.
importe_minNoPresupuesto mínimo en euros.
publicada_desdeNoFecha mínima de publicación AAAA-MM-DD.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent and open-world, so the safety profile is covered; the description adds real value by describing the response envelope (total, one page of id/título/organismo/presupuesto/plazo, plus a breakdown by estado and sector). It omits pagination limits (página max 20, por_pagina max 25) and whether results are exhaustive, but the output shape disclosure is the useful part.

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?

Three short sentences: purpose and filters first, then return shape, then the follow-up tool. No filler, no repetition of the title, and the most decision-relevant information is front-loaded.

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 an 11-parameter discovery tool with no output schema, the description covers what matters: what can be filtered, what comes back, and where to go next. Only pagination behaviour and result-size expectations are left implicit, which is minor given the schema constraints.

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 82%, so the schema already documents most parameters well (CPV prefixes, orden semantics, organismo slug source, date format). The description's filter list mirrors the schema fields without adding format or interaction semantics, and it says nothing about the unconstrained-in-description pagination parameters.

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 and resource ('Busca licitaciones públicas de España') and enumerates the filterable dimensions (texto, provincia, CPV, organismo, estado, importe). It also names the sibling `ver_licitacion` for detail retrieval, so an agent can tell this is the search entry point rather than the detail view.

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?

Explicitly routes the agent: use `ver_licitacion` with the returned id to get details, which is a clear when-to-use-next rule. It gives no guidance on when to prefer this over other discovery tools (e.g. desiertas, planificadas) or on combining filters, so it stops short of full alternative coverage.

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