Skip to main content
Glama

leer_boletin

Retrieve the full text and metadata of an official bulletin PDF from the Melilla gazette, reading it in paginated segments to handle long documents.

Instructions

Texto completo de un boletín entero (su PDF) con los metadatos del boletín.

Un boletín ordinario tiene ~35 páginas; lee por tramos. El PDF se descarga una vez y se guarda en caché. Los boletines de 2014-2016 no tienen PDF (fuente="ninguna"): lee sus artículos con leer_articulo. Paginación: devuelve páginas enteras hasta max_caracteres (1000-100000, por defecto 20000), siempre al menos una; una página más larga que max_caracteres se corta ahí (cortada=true). Si 'siguiente' no es null, vuelve a llamar con desde_pagina y desde_caracter de 'siguiente'; null significa que no queda más.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cveYes
desde_paginaNo
desde_caracterNo
max_caracteresNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.4

TDQS

A4.8/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and covers caching of the PDF, pagination cut behavior (cortada=true), and the sentinel semantics of 'siguiente'. It also flags the no-PDF edge case for 2014-2016 bulletins.

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?

The description is dense but each sentence adds a distinct fact: scope, length/chunking, cache, old-bulletin exception, and pagination contract. It is front-loaded with the core purpose.

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?

It explains the pagination loop, cache behavior, old-bulletin alternative, and response signals (cortada, siguiente) despite no output schema. It could be more complete by defining cve and the metadata fields returned, but the operational guidance is solid.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The description defines max_caracteres with range/default and explains desde_pagina/desde_caracter through the 'siguiente' continuation contract. However, the required cve parameter is not described, so an agent must infer its meaning from sibling tools or context.

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?

The opening sentence names a specific action (leer) and resource (boletín entero/PDF) and notes it returns metadata, distinguishing it from article-level tools like leer_articulo. The later mention of 2014-2016 bulletins reinforces the boundary.

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?

It explicitly says ordinary bulletins are ~35 pages and should be read in chunks, and instructs that 2014-2016 bulletins without PDF should be handled with leer_articulo. It also gives a concrete pagination protocol for calling again when 'siguiente' is not null.

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