Raw tool arguments, validated against GetParliamentaryQuestionsSchema
MCP tool result containing either a single question record or a paginated list of parliamentary questions
args fails schema validation (e.g., missing required fields or invalid format)// List answered written questions on climate policy
const result = await handleGetParliamentaryQuestions({
type: 'WRITTEN',
status: 'ANSWERED',
topic: 'climate policy',
limit: 20
});
// Returns up to 20 answered written questions matching the topic
// Single question lookup
const single = await handleGetParliamentaryQuestions({ docId: 'E-000001/2024' });
// Returns the full record for the specified question
Handles the get_parliamentary_questions MCP tool request.
Retrieves European Parliament questions (written and oral) submitted by MEPs, with optional single-question lookup by docId or list filtering by type, author, topic, status, and date range.