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 filtered by year
const list = await handleGetCommitteeDocuments({ year: 2024, limit: 25 });
// Returns up to 25 committee documents from 2024
Handles the get_committee_documents MCP tool request.
Retrieves European Parliament committee documents, supporting single document lookup by docId or a paginated list optionally filtered by year.