Skip to main content
Glama

Find members of the European Parliament

euparl_search_meps
Read-onlyIdempotent

Find MEPs by name, person ID, country, political group, gender, parliamentary term, or mandate date. Omitting term and mandate_date selects members in office today; term selects that published term roster; mandate_date selects members seated on that date. Name matching requires every normalized token after case, diacritic, and punctuation normalization over the complete roster before paging. mep_ids names the person IDs other tools return (voter mep_id, participant person_ids, question creator person/ references) in one call; requested IDs absent from the roster come back in unmatched_mep_ids. Country and group are published for the selected roster, never inferred for another date; term rosters publish neither. Continue with page.next_offset and snapshot; restart at offset 0 without snapshot after snapshot_changed. Read identity and membership history with euparl_get_mep. Empty matches succeed with guidance.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "euparl_search_meps"
  }
}

Input Schema

NameRequiredDescriptionDefault
termNoParliamentary term 0–10, exclusive with mandate_date; omitting both selects members in office today.
limitNoWhole items requested; default 20. Whole-acquired local collections return the requested count or remaining rows, without an output-size cap. Values above the safe-integer range normalize to 9007199254740991; search windows and bounded modes may narrow further.
genderNoSupported gender code FEMALE, MALE, NAP, NKN, or NST, case-insensitive.
offsetNoZero-based collection offset; default 0.
countryNoSupported ISO alpha-2 country code, case-insensitive. United Kingdom members are published as GB (UK accepted), on historical rosters only. See euparl_list_reference topic mep_filters.
mep_idsNoPerson IDs to keep from the selected roster, as other tools return them: voter mep_id, participant person_ids, question creator person/ references. Canonicalized and deduplicated; an empty list counts as omitted; an org/ creator or other non-person entry is rejected. Narrows together with every other filter, with no extra upstream request. Pick the roster the IDs belong to: mandate_date (the vote or sitting date) for country and group as published that day, term for names only.
languageNoSupported EU ISO-639-1 language, case-insensitive; default en; source text is never translated.
snapshotNoReturned roster snapshot; required for offset above 0, optional at offset 0.
mandate_dateNoMembers holding a seat on this YYYY-MM-DD date, not after today (UTC); exclusive with term. Country and group are matched and returned as published on that date. A term's first sitting day can return an incomplete roster or an upstream error; use the following day.
name_containsNoAll-token name filter over the complete selected roster; case, diacritics, and punctuation are normalized, without fuzzy scoring. Must keep at least one letter or digit.
political_groupNoPublished political group code, current or historical (PPE, S-D, PPE-DE, ALDE, GUE-NGL…), or its published label (S&D, Verts/ALE, The Left, IND/DEM), case-insensitive; EPP, Greens/EFA and Patriots are accepted too. euparl_list_reference topic mep_filters lists every code with its label and periods. GUE/NGL selects GUE-NGL on terms 0–8 and dates through 2020-12-18, the last day the dated roster matches GUE-NGL, and THE-LEFT otherwise. With mandate_date, or on the current roster, it matches only the code in force that day. On a term roster it matches the term's members holding a membership in the code that had not ended when the term began, later memberships included, not who sat in the group during the term; use mandate_date for that. Query aliases never rewrite historical organization identities.

Output Schema

NameRequiredDescriptionDefault
capNoEffective whole-item page limit.
pageNoWhole-item page metadata.
errorNoPresent when the call failed. Absent on success.
itemsNoComplete member records on the selected local page.
shownNoWhole items shown on this partial page.
noticeNoPublication, language fallback, empty-result or continuation guidance.
availableNoWhether the selected source array was published, including a published empty array.
truncatedNoTrue when this page returns only part of the selected collection.
totalCountNoExact count only when published or computed over a complete collection.
appliedFiltersNoActual normalized retrieval scope and filters.
unmatched_mep_idsNoRequested mep_ids with no row in the selected roster after every filter, canonical, in first-seen order; the same on every page. Present only when mep_ids was supplied. A wrong term or date is the usual cause; euparl_get_mep reads any member by ID.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / mep_ids
      Added value: +{
      +  "description": "Person IDs to keep from the selected roster, as other tools return them: voter mep_id, participant person_ids, question creator person/ references. Canonicalized and deduplicated; an empty list counts as omitted; an org/ creator or other non-person entry is rejected. Narrows together with every other filter, with no extra upstream request. Pick the roster the IDs belong to: mandate_date (the vote or sitting date) for country and group as published that day, term for names only.",
      +  "items": {
      +    "description": "Person ID as euparl_get_mep accepts it: decimal (124867), person/124867, or https://data.europarl.europa.eu/person/124867.",
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • changedInput schema / properties / political_group / description
      Previous value: -"Supported political group code, case-insensitive; accepts EPP, S&D, Verts/ALE, Greens/EFA, The Left, GUE/NGL, Renew, PfE, and Patriots aliases. Query aliases never rewrite historical organization identities. With mandate_date it matches only the code in force on that date; for earlier groups omit it and read each member's published political_group. See euparl_list_reference topic mep_filters."New value: +"Published political group code, current or historical (PPE, S-D, PPE-DE, ALDE, GUE-NGL…), or its published label (S&D, Verts/ALE, The Left, IND/DEM), case-insensitive; EPP, Greens/EFA and Patriots are accepted too. euparl_list_reference topic mep_filters lists every code with its label and periods. GUE/NGL selects GUE-NGL on terms 0–8 and dates through 2020-12-18, the last day the dated roster matches GUE-NGL, and THE-LEFT otherwise. With mandate_date, or on the current roster, it matches only the code in force that day. On a term roster it matches the term's members holding a membership in the code that had not ended when the term began, later memberships included, not who sat in the group during the term; use mandate_date for that. Query aliases never rewrite historical organization identities."
    • changedOutput schema / properties / error / properties / data / properties / reason / description
      Previous value: -"Machine-readable failure mode. Declared by this tool: `invalid_filter`: A code, term, or language is unsupported; name_contains has no letter or digit; or mandate_date is not a real date or is after today (UTC). `invalid_mode_fields`: A nonzero local offset lacks a snapshot, or mandate_date is combined with term. `snapshot_changed`: The complete roster or normalized retrieval scope changed. `upstream_paging_stalled`: Complete roster acquisition repeats a page before exhaustion. `upstream_rejected`: Parliament rejects validated request parameters. `upstream_rate_limited`: Parliament rate limits persist after bounded retries. Other values are possible when a failure originates below the handler."New value: +"Machine-readable failure mode. Declared by this tool: `invalid_filter`: A code, term, or language is unsupported; a mep_ids entry is not a person ID; name_contains has no letter or digit; or mandate_date is not a real date or is after today (UTC). `invalid_mode_fields`: A nonzero local offset lacks a snapshot, or mandate_date is combined with term. `snapshot_changed`: The complete roster or normalized retrieval scope changed. `upstream_paging_stalled`: Complete roster acquisition repeats a page before exhaustion. `upstream_rejected`: Parliament rejects validated request parameters. `upstream_rate_limited`: Parliament rate limits persist after bounded retries. Other values are possible when a failure originates below the handler."
    • addedOutput schema / properties / unmatched_mep_ids
      Added value: +{
      +  "description": "Requested mep_ids with no row in the selected roster after every filter, canonical, in first-seen order; the same on every page. Present only when mep_ids was supplied. A wrong term or date is the usual cause; euparl_get_mep reads any member by ID.",
      +  "items": {
      +    "description": "Canonical decimal person ID.",
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
  2. Changed2 schema fields changed
    • changedInput schema / properties / limit / description
      Previous value: -"Whole items requested; default 20. Pages hold at most 300 MEPs; a larger limit returns that many with a notice."New value: +"Whole items requested; default 20. Whole-acquired local collections return the requested count or remaining rows, without an output-size cap. Values above the safe-integer range normalize to 9007199254740991; search windows and bounded modes may narrow further."
    • changedOutput schema / properties / page / properties / limit / description
      Previous value: -"Effective whole-item page size: the requested limit, clamped to the collection's page cap and, on a 10000-result search, to the results left in the window."New value: +"Effective whole-item page size after acquisition bounds, safe-integer normalization and any search-result window. Local collections retain all requested whole items or remaining rows."
  3. Changed11 schema fields changed
    • changedInput schema / properties / country / description
      Previous value: -"Supported ISO alpha-2 country code, case-insensitive; GB maps to historical UK and does not establish current membership. See euparl_list_reference topic mep_filters."New value: +"Supported ISO alpha-2 country code, case-insensitive. United Kingdom members are published as GB (UK accepted), on historical rosters only. See euparl_list_reference topic mep_filters."
    • changedInput schema / properties / limit / description
      Previous value: -"Whole items requested; default 20, effective maximum 100 with notice."New value: +"Whole items requested; default 20. Pages hold at most 300 MEPs; a larger limit returns that many with a notice."
    • removedInput schema / properties / limit / maximum
      Removed value: -1000
    • addedInput schema / properties / limit / multipleOf
      Added value: +1
    • changedInput schema / properties / limit / type
      Previous value: -"integer"New value: +"number"
    • addedInput schema / properties / mandate_date
      Added value: +{
      +  "description": "Members holding a seat on this YYYY-MM-DD date, not after today (UTC); exclusive with term. Country and group are matched and returned as published on that date. A term's first sitting day can return an incomplete roster or an upstream error; use the following day.",
      +  "type": "string"
      +}
    • changedInput schema / properties / name_contains / description
      Previous value: -"All-token name filter over the complete selected roster; case, diacritics, and punctuation are normalized, without fuzzy scoring."New value: +"All-token name filter over the complete selected roster; case, diacritics, and punctuation are normalized, without fuzzy scoring. Must keep at least one letter or digit."
    • changedInput schema / properties / political_group / description
      Previous value: -"Supported political group code, case-insensitive; accepts EPP, S&D, Verts/ALE, Greens/EFA, The Left, GUE/NGL, Renew, PfE, and Patriots aliases. Query aliases never rewrite historical organization identities. See euparl_list_reference topic mep_filters."New value: +"Supported political group code, case-insensitive; accepts EPP, S&D, Verts/ALE, Greens/EFA, The Left, GUE/NGL, Renew, PfE, and Patriots aliases. Query aliases never rewrite historical organization identities. With mandate_date it matches only the code in force on that date; for earlier groups omit it and read each member's published political_group. See euparl_list_reference topic mep_filters."
    • changedInput schema / properties / term / description
      Previous value: -"Parliamentary term 0–10; omitted selects members in office today."New value: +"Parliamentary term 0–10, exclusive with mandate_date; omitting both selects members in office today."
    • changedOutput schema / properties / error / properties / data / properties / reason / description
      Previous value: -"Machine-readable failure mode. Declared by this tool: `invalid_filter`: A code, term, or language is unsupported. `invalid_mode_fields`: A nonzero local offset lacks a snapshot. `snapshot_changed`: The complete roster or normalized retrieval scope changed. `upstream_paging_stalled`: Complete roster acquisition repeats a page before exhaustion. `upstream_rejected`: Parliament rejects validated request parameters. `upstream_rate_limited`: Parliament rate limits persist after bounded retries. Other values are possible when a failure originates below the handler."New value: +"Machine-readable failure mode. Declared by this tool: `invalid_filter`: A code, term, or language is unsupported; name_contains has no letter or digit; or mandate_date is not a real date or is after today (UTC). `invalid_mode_fields`: A nonzero local offset lacks a snapshot, or mandate_date is combined with term. `snapshot_changed`: The complete roster or normalized retrieval scope changed. `upstream_paging_stalled`: Complete roster acquisition repeats a page before exhaustion. `upstream_rejected`: Parliament rejects validated request parameters. `upstream_rate_limited`: Parliament rate limits persist after bounded retries. Other values are possible when a failure originates below the handler."
    • changedOutput schema / properties / page / properties / limit / description
      Previous value: -"Effective whole-item page size, at most 100."New value: +"Effective whole-item page size: the requested limit, clamped to the collection's page cap and, on a 10000-result search, to the results left in the window."
  4. First observed

TDQS

A4.4/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint, idempotentHint and openWorldHint, so the safety profile needs no restating. The description still adds real behavior beyond that: all-token name matching over the complete roster before paging, unmatched_mep_ids for IDs absent from the roster, the page.next_offset/snapshot continuation contract with a restart-at-offset-0 rule when snapshot_changed fires, and empty results succeeding with guidance. These are useful but pagination/snapshot mechanics are also partly visible in the output schema, so it sits at solid-but-not-distinctive.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core capability is front-loaded in sentence one and every later sentence carries information. However, the block is a single dense paragraph of semicolon-chained clauses covering filtering, normalization, roster semantics, paging, and error handling, with some overlap between the prose and the political_group/country parameter descriptions.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 11-parameter, zero-required search tool with an output schema, the description covers defaults, mutual exclusivity, normalization behavior, cross-tool ID provenance, historical-vs-current roster caveats, paging continuation, and empty-result behavior. Nothing an agent needs to call it correctly or recover from a snapshot change is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds meaning the schema does not: mep_ids are described as the person IDs other tools return (voter mep_id, participant person_ids, question creator person/ references), with deduplication, empty-list-as-omitted, and rejection of org/creator entries. The default/exclusivity semantics of term vs mandate_date are also restated in prose form, making the roster choice interpretable without parsing the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening sentence gives a specific verb (find) plus resource (MEPs) and enumerates the filter axes: name, person ID, country, political group, gender, term, mandate date. It also distinguishes itself from the sibling euparl_get_mep, which is named for identity/history lookups, so an agent can route without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit selection rules are supplied: omitting term and mandate_date yields members in office today, term yields that published roster, mandate_date yields members seated that day, and euparl_get_mep is named for identity/membership history. It even advises which roster to pick when resolving mep_ids (mandate_date for country/group, term for names only), which is genuine when-to-use guidance rather than inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.