Raw tool arguments, validated against GetCommitteeDocumentsSchema
MCP tool result containing either a single committee document or a paginated list of documents
args fails schema validation (e.g., missing required fields or invalid format)// Single document lookup
const result = await handleGetCommitteeDocuments({ docId: 'A9-0001/2024' });
// Returns the full record for the specified committee document
// List documents (no year filter available in the EP API)
const list = await handleGetCommitteeDocuments({ limit: 25 });
// Returns up to 25 committee documents
Handles the get_committee_documents MCP tool request.
Retrieves European Parliament committee documents, supporting single document lookup by docId or a paginated list.
Note: The EP API
/committee-documentsendpoint does not supportyearfiltering. Only pagination (limit/offset) is available.