Raw tool arguments, validated against GetPlenaryDocumentsSchema
MCP tool result containing either a single plenary document (when docId is
provided) or a paginated list of documents, optionally filtered by year
args fails schema validation (e.g., limit out of range 1–100)// List documents for a specific year
const result = await handleGetPlenaryDocuments({ year: 2024, limit: 25 });
// Returns up to 25 plenary documents from 2024
// Fetch a single document by ID
const single = await handleGetPlenaryDocuments({ docId: 'DOC-2024-001' });
// Returns the full plenary document record
Handles the get_plenary_documents MCP tool request.
Retrieves European Parliament plenary documents including legislative texts, reports, and amendments. Supports both single-document lookup by document ID and list retrieval with optional year filtering. Central to policy analysis and legislative tracking workflows.