Skip to main content
Glama
plopez053

ayudas-es-mcp

by plopez053

Leer el documento de una convocatoria

ayuda_texto
Read-onlyIdempotent

Extracts literal PDF text from Spanish grant call bases by BDNS code, returning amounts, deadlines, beneficiaries, requirements, or documentation with page numbers when structured data lacks details.

Instructions

Lee el PDF de las bases o de la convocatoria (el texto completo que la BDNS no resume) y devuelve el texto LITERAL de sus apartados (cuantía, plazo, beneficiarios, requisitos, documentación, gastos, criterios…) con el número de página, o de las palabras o páginas que se pidan. Úsala cuando haga falta la cuantía por beneficiario, los requisitos o la documentación, que no constan en los datos estructurados. Los apartados se localizan por sus títulos con reglas, no con IA: comprueba siempre la página citada.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
temasNoApartados a localizar. Por defecto: cuantia, plazo, beneficiarios, requisitos, documentacion. cuantia = Cuantía, importe y financiación; plazo = Plazo de solicitud; beneficiarios = Beneficiarios; requisitos = Requisitos y condiciones; documentacion = Documentación a presentar; gastos = Gastos o actuaciones subvencionables; criterios = Criterios de valoración; presentacion = Lugar y forma de presentación; justificacion = Justificación y pago; objeto = Objeto y finalidad
buscarNoPalabras que deben aparecer todas en una página; devuelve el pasaje y su página.
codigoYesCódigo BDNS de la convocatoria
paginasNoPáginas a leer completas, p. ej. '3' o '3-5' (máximo 4 páginas).
documentoNoId del documento (de la lista que devuelve esta herramienta). Por defecto, el texto de la convocatoria.
max_caracteresNoPor defecto 9000

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.7.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive/openWorld, so the safety profile is covered. The description adds genuinely non-obvious behavior beyond them: sections are located by rule-based title matching, NOT AI, and the user is told to 'comprueba siempre la página citada' — a caveat about extraction reliability that structured fields cannot convey.

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?

Three sentences, front-loaded with purpose then usage condition then a reliability caveat. Dense but each sentence carries distinct information; slightly long with the enumerated apartados list duplicating what the schema already enumerates.

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?

No output schema exists, so the description must describe the return shape — it does ('texto LITERAL de sus apartados... con el número de página') and notes that documento ids come from this same tool's output. Combined with the schema covering the 4-page and 30000-char limits, an agent has enough to call it correctly; only the exact return format details are left implicit.

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 (temas, buscar, codigo, paginas, documento, max_caracteres) is already documented in the schema. The description only echoes the default sections and the words/pages mode in prose, adding little beyond the schema's own descriptions. 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 (lee/devuelve) on a specific resource (el PDF de las bases o convocatoria) and specifies the scope: el texto LITERAL de sus apartados con el número de página. It explicitly carves out the niche versus structured data ('el texto completo que la BDNS no resume'), so an agent can distinguish it from ayuda_detalle without opening either schema.

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?

Gives an explicit trigger condition ('Úsala cuando haga falta la cuantía por beneficiario, los requisitos o la documentación, que no constan en los datos estructurados'), clearly signaling when this tool beats the structured-data siblings. It does not name the specific alternative tool (e.g. ayuda_detalle), so routing is clear but not fully enumerated.

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