Skip to main content
Glama

Read a member and membership history

euparl_get_mep
Read-onlyIdempotent

Read an MEP identity or membership history including published committee, delegation, and political-group records. Default section overview returns identity, membership_count and membership_classifications (count per classification code); section memberships pages full membership records, latest start_date first, filtered by classification and active_on before paging. Missing end dates do not establish current membership. Continue memberships with page.next_offset and snapshot; restart at offset 0 without snapshot after snapshot_changed. Missing detail succeeds with found false; discover IDs with euparl_search_meps.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "mep_id": "<mep_id>"
    },
    "name": "euparl_get_mep"
  }
}

Input Schema

NameRequiredDescriptionDefault
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.
mep_idYesDecimal person ID, person/ prefix, or exact https://data.europarl.europa.eu/person/ URI.
offsetNoZero-based collection offset; default 0.
sectionNoDefault overview returns identity and membership count; memberships returns the selected history page.overview
languageNoSupported EU ISO-639-1 language, case-insensitive; default en; source text is never translated.
snapshotNoReturned membership snapshot; required for membership offset above 0, optional at offset 0.
active_onNoSection memberships only: keep memberships whose published interval includes this YYYY-MM-DD date, not after today (UTC): start_date on or before it and end_date on or after it, an absent end counting as open. Reports the published interval only; a missing end date does not establish current membership.
classificationNoSection memberships only: keep memberships with this membershipClassification code, bare (COMMITTEE_PARLIAMENTARY_STANDING) or as published (def/ep-entities/COMMITTEE_PARLIAMENTARY_STANDING), case-insensitive, matched on the last path segment. The overview lists the codes this history carries in membership_classifications; memberships without a classification never match.

Output Schema

NameRequiredDescriptionDefault
capNoEffective whole-item page limit.
nameNoPublished full name.
pageNoMembership continuation metadata; absent on overview or missing detail.
errorNoPresent when the call failed. Absent on success.
foundNoWhether Parliament published member detail.
shownNoWhole items shown on this partial page.
mep_idNoNormalized decimal person identifier.
noticeNoPublication, language fallback, empty-result or continuation guidance.
sectionNoIdentity overview or separately paged membership history.
availableNoWhether the selected source array was published, including a published empty array.
truncatedNoTrue when this page returns only part of the selected collection.
given_nameNoPublished given name.
source_urlNoPublic member source URL.
totalCountNoExact count only when published or computed over a complete collection.
citizenshipNoPublished citizenship; distinct from country of representation.
family_nameNoPublished family name.
membershipsNoSelected membership history page, latest start_date first, then by id, undated last; present only on a found memberships response.
appliedFiltersNoActual normalized retrieval scope and filters.
place_of_birthNoPublished place of birth, never inferred from citizenship.
membership_countNoParsed membership count on a found overview; absent relations do not prove no membership history.
membership_classificationsNoFound overview only: classified memberships counted by code, sorted by code; values classification accepts. Unclassified memberships are left out, so the counts can sum below membership_count.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • addedInput schema / properties / active_on
      Added value: +{
      +  "description": "Section memberships only: keep memberships whose published interval includes this YYYY-MM-DD date, not after today (UTC): start_date on or before it and end_date on or after it, an absent end counting as open. Reports the published interval only; a missing end date does not establish current membership.",
      +  "type": "string"
      +}
    • addedInput schema / properties / classification
      Added value: +{
      +  "description": "Section memberships only: keep memberships with this membershipClassification code, bare (COMMITTEE_PARLIAMENTARY_STANDING) or as published (def/ep-entities/COMMITTEE_PARLIAMENTARY_STANDING), case-insensitive, matched on the last path segment. The overview lists the codes this history carries in membership_classifications; memberships without a classification never match.",
      +  "type": "string"
      +}
    • changedOutput schema / properties / error / properties / data / properties / reason / description
      Previous value: -"Machine-readable failure mode. Declared by this tool: `invalid_filter`: Person identifier or language is unsupported. `invalid_mode_fields`: Overview has nonzero offset or membership continuation lacks a snapshot. `snapshot_changed`: The complete membership collection or normalized scope changed. `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`: Person identifier or language is unsupported, classification is not a code, or active_on is not a real date or is after today (UTC). `invalid_mode_fields`: Overview has nonzero offset, classification or active_on, or membership continuation lacks a snapshot. `snapshot_changed`: The complete membership collection or normalized scope changed. `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 / membership_classifications
      Added value: +{
      +  "description": "Found overview only: classified memberships counted by code, sorted by code; values classification accepts. Unclassified memberships are left out, so the counts can sum below membership_count.",
      +  "items": {
      +    "additionalProperties": false,
      +    "description": "One classification code this history carries.",
      +    "properties": {
      +      "classification": {
      +        "description": "Classification code, the last path segment of the published value.",
      +        "type": "string"
      +      },
      +      "count": {
      +        "description": "Memberships with this classification.",
      +        "exclusiveMinimum": 0,
      +        "maximum": 9007199254740991,
      +        "type": "integer"
      +      }
      +    },
      +    "required": [
      +      "classification",
      +      "count"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • changedOutput schema / properties / memberships / description
      Previous value: -"Selected membership history page; present only on a found memberships response."New value: +"Selected membership history page, latest start_date first, then by id, undated last; present only on a found memberships response."
  2. Changed2 schema fields changed
    • changedInput schema / properties / limit / description
      Previous value: -"Whole items requested; default 20. Pages hold at most 225 memberships; 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. Changed1 schema field changed
    • changedOutput schema / properties / memberships / items / properties / organization_id / description
      Previous value: -"Published organization identity; resolve supported decimal organization IDs with euparl_list_reference topic organizations and organization_ids."New value: +"Published organization identity, decimal (org/5154) or term code (org/ep-9); resolve either with euparl_list_reference topic organizations and organization_ids."
  4. Changed5 schema fields changed
    • 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 225 memberships; 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"
    • 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."
  5. First observed

TDQS

A4.8/5.0
Behavior5/5

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

The annotations already establish readOnly/idempotent/openWorld, and the description adds behavior those annotations cannot convey: a missing MEP succeeds with found=false rather than erroring, ordering is latest start_date first, pagination requires a snapshot beyond offset 0 and must be reset after snapshot_changed, and 'Missing end dates do not establish current membership' guards against a wrong semantic inference. That is substantive disclosure beyond the structured fields.

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?

Content is front-loaded with the purpose first and operational rules after, and every clause carries information. It is nonetheless a single dense paragraph with several imperative fragments ('Continue memberships with…', 'Missing detail succeeds with found false'), which makes it harder to scan than it needs to be.

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?

Given a rich 8-parameter schema at full coverage, an output schema, and annotations, the description covers the remaining gaps an agent would hit: section selection, paging lifecycle, empty/missing results, and the interval-interpretation caveat. Nothing material is left unstated.

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 parameters are already documented; the description still adds cross-parameter meaning, notably that classification/active_on apply only when section=memberships and that snapshot is the paging token pair with next_offset. It stops short of restating the mep_id pattern, which is fine because the schema covers it, but the snapshot_changed reset rule is stated without saying where that signal appears.

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 description names the tool's action and the resource ('Read an MEP identity or membership history') and immediately lists the concrete record types returned (committee, delegation, political-group). It also clearly distinguishes the two sections ('overview', 'memberships'), so an agent can tell whether it is fetching identity data or paged history.

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?

It says explicitly which section to use and what each returns ('Default section overview returns identity… section memberships pages full membership records'), states that echo pages are filtered by classification and active_on, and sends the agent to euparl_search_meps to discover IDs. It also gives concrete continuation rules ('Continue memberships with page.next_offset and snapshot; restart at offset 0 without snapshot after snapshot_changed'), which is exactly the operational guidance an agent needs.

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.