Raw tool arguments, validated against GetAdoptedTextsSchema
MCP tool result containing either a single adopted text or a paginated list of adopted texts
args fails schema validation (e.g., missing required fields or invalid format)// Single adopted text lookup
const result = await handleGetAdoptedTexts({ docId: 'P9-TA(2024)0001' });
// Returns the full record for the specified adopted text
// List adopted texts from 2024
const list = await handleGetAdoptedTexts({ year: 2024, limit: 50 });
// Returns up to 50 adopted texts from 2024
Handles the get_adopted_texts MCP tool request.
Retrieves European Parliament adopted texts, including legislative resolutions, first-reading positions, and non-legislative resolutions. Supports single document lookup by docId or a paginated list optionally filtered by year.