Skip to main content
Glama

switzerland-parliament-mcp-server

Chparl Search Members

chparl_search_members
Read-onlyIdempotent

Find current or former Swiss Parliament affiliation records by name, council, canton, party, or parliamentary group; list a committee’s members with committeeId, its current composition or with asOf its composition on a past day; or find the members who declare an interest with interest. membership defaults to current; former selects inactive records and all omits the activity filter. committeeId returns one row per published membership with its committee function and takes membership current only; with asOf, rows carry the names, council, canton, party, and group recorded for that membership, plus its committee dates. interest returns one row per matching declaration: the declarant’s member record, filtered by the other inputs, plus the declaration. query matches a substring of a published first, last, or official name. Use each record’s personNumber with chparl_get_member for identity, full council terms, committees, and declared interests. Follow nextOffset with the same filters.

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": "chparl_search_members"
  }
}

Input Schema

NameRequiredDescriptionDefault
asOfNoOptional day, YYYY-MM-DD, or a date-time as this server returns one (2014-03-03T00:00:00.000), read as its day; requires committeeId. Lists the memberships open on that day in the published committee history, a membership’s last day included, so a person holds two rows on a day their function changed. council, cantonId, partyId, and groupId filter the affiliation recorded for each membership. History starts per committee, 1995-12-04 for standing committees; a day after today in Switzerland is rejected.
limitNoRequested page size, default 20, effective maximum 100 with notice.
queryNoOptional name substring, trimmed without changing internal punctuation or diacritics.
offsetNoStarting row offset: MemberCouncil records, committee memberships with committeeId, or declarations with interest; continue with returned nextOffset.
councilNoN or S; exact German, French, and Italian council names are accepted. Resolve codes with chparl_list_reference topic councils.
groupIdNoOptional ParlGroupNumber from chparl_list_reference topic groups.
partyIdNoOptional Party identifier from chparl_list_reference topic parties.
cantonIdNoOptional Canton identifier from chparl_list_reference topic cantons.
interestNoOptional substring of a declared interest name, such as an organisation. Returns one row per matching declaration: the declarant’s member record plus the declaration. The match ignores case and accents but is otherwise literal, on a name declared once and never translated (Groupe de réflexion Groupe Mutuel, Gruppo di riflessione Groupe Mutuel), so search the name as declared in each language; an empty result does not establish that no member has a tie. A newly sworn-in member’s declarations can be missing until the member record is published. Cannot be combined with committeeId or asOf.
languageNoMetadata language: de (default), fr, or it; uppercase is accepted.de
membershipNocurrent (default), former, or all MemberCouncil records; with interest, the declarant’s record. Current records include the Federal Council (councilId 99) and the Federal Chancellor (councilId 98) beside the parliamentarians. With committeeId, only current is accepted.current
committeeIdNoOptional CommitteeNumber from chparl_list_reference topic committees. Lists that committee’s members, one row per membership: its current roster, or its roster on asOf. A sub-committee has its own number and roster. Other filters narrow the roster.

Output Schema

NameRequiredDescriptionDefault
errorNoPresent when the call failed. Absent on success.
noticeNoCombined clamping, empty-result, empty-roster, or past-end guidance.
hasMoreNoWhether further matching rows remain.
membersNoRows delivered on this page: MemberCouncil affiliation records; one committee membership per row on committee searches, as recorded on that day with asOf; or one declaration per row with interest.
guidanceNoHow to discover a valid committeeId when the committee was not found.
nextOffsetNoStarting offset plus delivered rows; absent when exhausted.
provenanceNoAttribution, publication status, and source download dates.
totalCountNoExact whole-query row count when supplied upstream, in the unit of returnedCount.
returnedCountNoNumber of rows delivered: MemberCouncil records, committee memberships on committee searches, or declarations on interest searches.
committeeFoundNoCommittee searches only: whether the committee exists, independently of published members.
effectiveLimitNoEffective requested page size after clamping.
effectiveFiltersNoNormalized search filters and resolved defaults.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed22 schema fields changed
    • addedInput schema / properties / asOf
      Added value: +{
      +  "description": "Optional day, YYYY-MM-DD, or a date-time as this server returns one (2014-03-03T00:00:00.000), read as its day; requires committeeId. Lists the memberships open on that day in the published committee history, a membership’s last day included, so a person holds two rows on a day their function changed. council, cantonId, partyId, and groupId filter the affiliation recorded for each membership. History starts per committee, 1995-12-04 for standing committees; a day after today in Switzerland is rejected.",
      +  "maxLength": 29,
      +  "pattern": "^\\d{4}-\\d{2}-\\d{2}(?:T(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d{1,3})?(?:[+-](?:[01]\\d|2[0-3]):[0-5]\\d)?)?$",
      +  "type": "string"
      +}
    • changedInput schema / properties / committeeId / description
      Previous value: -"Optional CommitteeNumber from chparl_list_reference topic committees. Lists that committee’s current members, one row per membership; a sub-committee has its own number and roster. Other filters narrow the roster."New value: +"Optional CommitteeNumber from chparl_list_reference topic committees. Lists that committee’s members, one row per membership: its current roster, or its roster on asOf. A sub-committee has its own number and roster. Other filters narrow the roster."
    • addedInput schema / properties / interest
      Added value: +{
      +  "description": "Optional substring of a declared interest name, such as an organisation. Returns one row per matching declaration: the declarant’s member record plus the declaration. The match ignores case and accents but is otherwise literal, on a name declared once and never translated (Groupe de réflexion Groupe Mutuel, Gruppo di riflessione Groupe Mutuel), so search the name as declared in each language; an empty result does not establish that no member has a tie. A newly sworn-in member’s declarations can be missing until the member record is published. Cannot be combined with committeeId or asOf.",
      +  "type": "string"
      +}
    • changedInput schema / properties / limit / description
      Previous value: -"Requested page size, default 20, effective maximum 100 with notice. Whole records may be fitted to the response byte budget."New value: +"Requested page size, default 20, effective maximum 100 with notice."
    • changedInput schema / properties / membership / description
      Previous value: -"current (default), former, or all MemberCouncil records. With committeeId, only current is accepted."New value: +"current (default), former, or all MemberCouncil records; with interest, the declarant’s record. Current records include the Federal Council (councilId 99) and the Federal Chancellor (councilId 98) beside the parliamentarians. With committeeId, only current is accepted."
    • changedInput schema / properties / offset / description
      Previous value: -"Starting MemberCouncil record offset, or committee membership offset with committeeId; continue with returned nextOffset."New value: +"Starting row offset: MemberCouncil records, committee memberships with committeeId, or declarations with interest; continue with returned nextOffset."
    • addedOutput schema / properties / effectiveFilters / properties / asOf
      Added value: +{
      +  "description": "Effective roster day, YYYY-MM-DD; absent for the current roster.",
      +  "format": "date",
      +  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
      +  "type": "string"
      +}
    • changedOutput schema / properties / effectiveFilters / properties / committeeId / description
      Previous value: -"Effective CommitteeNumber whose current roster is listed."New value: +"Effective CommitteeNumber whose roster is listed."
    • addedOutput schema / properties / effectiveFilters / properties / interest
      Added value: +{
      +  "description": "Effective trimmed substring of a declared interest name.",
      +  "type": "string"
      +}
    • changedOutput schema / properties / effectiveFilters / properties / membership / description
      Previous value: -"current filters Active true; former false; all omits Active. Committee rosters are the published current composition and send no Active filter."New value: +"current filters Active true; former false; all omits Active, except on interest searches, where it requires a published declarant record with either value. Committee rosters send no Active filter."
    • changedOutput schema / properties / error / properties / data / properties / reason / description
      Previous value: -"Machine-readable failure mode. Declared by this tool: `incompatible_fields`: committeeId is combined with membership former or all. `upstream_rate_limited`: Parliament returned HTTP 429. `request_too_long`: The text filters make the URL-encoded Parliament request longer than its 2048-byte query-string limit. Other values are possible when a failure originates below the handler."New value: +"Machine-readable failure mode. Declared by this tool: `incompatible_fields`: committeeId is combined with membership former or all, asOf is supplied without committeeId, or interest is combined with committeeId or asOf. `as_of_in_future`: asOf is after today’s date in Switzerland. `upstream_rate_limited`: Parliament returned HTTP 429. `request_too_long`: The text filters, query or interest, make the URL-encoded Parliament request longer than its 2048-byte query-string limit. Other values are possible when a failure originates below the handler."
    • changedOutput schema / properties / error / properties / data / properties / reason / examples
      Previous value: -[
      -  "incompatible_fields",
      -  "upstream_rate_limited",
      -  "request_too_long"
      -]New value: +[
      +  "incompatible_fields",
      +  "as_of_in_future",
      +  "upstream_rate_limited",
      +  "request_too_long"
      +]
    • changedOutput schema / properties / hasMore / description
      Previous value: -"Whether further matching affiliation records remain."New value: +"Whether further matching rows remain."
    • changedOutput schema / properties / members / description
      Previous value: -"Complete MemberCouncil affiliation records delivered on this page; one per committee membership on committee searches."New value: +"Rows delivered on this page: MemberCouncil affiliation records; one committee membership per row on committee searches, as recorded on that day with asOf; or one declaration per row with interest."
    • changedOutput schema / properties / members / items / description
      Previous value: -"One published MemberCouncil affiliation record; on committee searches, one committee membership."New value: +"One published MemberCouncil affiliation record; on committee searches, one committee membership; on interest searches, one declaration with its declarant’s record. On asOf rosters, sourceUrl cites the MemberCommitteeHistory record, names, council, canton, party, and group are those recorded for that membership, officialName and memberCouncilId come from the current MemberCouncil record, and active, joinedDate, and leftDate are omitted."
    • addedOutput schema / properties / members / items / properties / committeeJoinedDate
      Added value: +{
      +  "description": "asOf rosters only: the day this committee membership began, without an inferred timezone.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / members / items / properties / committeeLeftDate
      Added value: +{
      +  "description": "asOf rosters only: the last day of this committee membership, when published; it can lie in the future.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / members / items / properties / interest
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "interest searches only: the declaration this row reports, as chparl_get_member section interests returns it, with its own id and sourceUrl.",
      +  "properties": {
      +    "agency": {
      +      "description": "Original published Agency code.",
      +      "type": "string"
      +    },
      +    "dateFrom": {
      +      "description": "Published start date (DateFrom) of this declaration, without an inferred timezone.",
      +      "type": "string"
      +    },
      +    "functionInAgency": {
      +      "description": "Published function-in-agency code.",
      +      "maximum": 9007199254740991,
      +      "minimum": -9007199254740991,
      +      "type": "integer"
      +    },
      +    "functionInAgencyText": {
      +      "description": "Published function-in-agency text.",
      +      "type": "string"
      +    },
      +    "id": {
      +      "description": "PersonInterest record GUID.",
      +      "type": "string"
      +    },
      +    "interestName": {
      +      "description": "Original published interest name.",
      +      "type": "string"
      +    },
      +    "interestType": {
      +      "description": "Published interest type code.",
      +      "maximum": 9007199254740991,
      +      "minimum": -9007199254740991,
      +      "type": "integer"
      +    },
      +    "interestTypeText": {
      +      "description": "Published interest type text.",
      +      "type": "string"
      +    },
      +    "modifiedAt": {
      +      "description": "Published modification timestamp without an inferred timezone.",
      +      "type": "string"
      +    },
      +    "organizationType": {
      +      "description": "Published organization type code.",
      +      "maximum": 9007199254740991,
      +      "minimum": -9007199254740991,
      +      "type": "integer"
      +    },
      +    "organizationTypeText": {
      +      "description": "Published organization type text.",
      +      "type": "string"
      +    },
      +    "paid": {
      +      "description": "Published paid flag; absent means unknown.",
      +      "type": "boolean"
      +    },
      +    "sortOrder": {
      +      "description": "Published source sort order.",
      +      "maximum": 9007199254740991,
      +      "minimum": -9007199254740991,
      +      "type": "integer"
      +    },
      +    "sourceUrl": {
      +      "description": "HTTPS OData URL for this interest record.",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "id",
      +    "sourceUrl"
      +  ],
      +  "type": "object"
      +}
    • changedOutput schema / properties / nextOffset / description
      Previous value: -"Starting offset plus delivered records; absent when exhausted."New value: +"Starting offset plus delivered rows; absent when exhausted."
    • changedOutput schema / properties / notice / description
      Previous value: -"Combined clamping, byte fitting, empty-result, empty-roster, or past-end guidance."New value: +"Combined clamping, empty-result, empty-roster, or past-end guidance."
    • changedOutput schema / properties / returnedCount / description
      Previous value: -"Number of complete MemberCouncil records delivered; committee memberships on committee searches."New value: +"Number of rows delivered: MemberCouncil records, committee memberships on committee searches, or declarations on interest searches."
    • changedOutput schema / properties / totalCount / description
      Previous value: -"Exact whole-query MemberCouncil record count when supplied upstream; committee memberships on committee searches."New value: +"Exact whole-query row count when supplied upstream, in the unit of returnedCount."
  2. Changed16 schema fields changed
    • addedInput schema / properties / committeeId
      Added value: +{
      +  "description": "Optional CommitteeNumber from chparl_list_reference topic committees. Lists that committee’s current members, one row per membership; a sub-committee has its own number and roster. Other filters narrow the roster.",
      +  "pattern": "^[1-9]\\d*$",
      +  "type": "string"
      +}
    • changedInput schema / properties / membership / description
      Previous value: -"current (default), former, or all MemberCouncil records."New value: +"current (default), former, or all MemberCouncil records. With committeeId, only current is accepted."
    • changedInput schema / properties / offset / description
      Previous value: -"Starting MemberCouncil record offset; continue with returned nextOffset."New value: +"Starting MemberCouncil record offset, or committee membership offset with committeeId; continue with returned nextOffset."
    • addedOutput schema / properties / committeeFound
      Added value: +{
      +  "description": "Committee searches only: whether the committee exists, independently of published members.",
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / effectiveFilters / properties / committeeId
      Added value: +{
      +  "description": "Effective CommitteeNumber whose current roster is listed.",
      +  "pattern": "^[1-9]\\d*$",
      +  "type": "string"
      +}
    • changedOutput schema / properties / effectiveFilters / properties / membership / description
      Previous value: -"current filters Active true; former false; all omits Active."New value: +"current filters Active true; former false; all omits Active. Committee rosters are the published current composition and send no Active filter."
    • changedOutput schema / properties / error / properties / data / properties / reason / description
      Previous value: -"Machine-readable failure mode. Declared by this tool: `upstream_rate_limited`: Parliament returned HTTP 429. Other values are possible when a failure originates below the handler."New value: +"Machine-readable failure mode. Declared by this tool: `incompatible_fields`: committeeId is combined with membership former or all. `upstream_rate_limited`: Parliament returned HTTP 429. `request_too_long`: The text filters make the URL-encoded Parliament request longer than its 2048-byte query-string limit. Other values are possible when a failure originates below the handler."
    • changedOutput schema / properties / error / properties / data / properties / reason / examples
      Previous value: -[
      -  "upstream_rate_limited"
      -]New value: +[
      +  "incompatible_fields",
      +  "upstream_rate_limited",
      +  "request_too_long"
      +]
    • addedOutput schema / properties / guidance
      Added value: +{
      +  "description": "How to discover a valid committeeId when the committee was not found.",
      +  "type": "string"
      +}
    • changedOutput schema / properties / members / description
      Previous value: -"Complete MemberCouncil affiliation records delivered on this page."New value: +"Complete MemberCouncil affiliation records delivered on this page; one per committee membership on committee searches."
    • changedOutput schema / properties / members / items / description
      Previous value: -"One published MemberCouncil affiliation record."New value: +"One published MemberCouncil affiliation record; on committee searches, one committee membership."
    • addedOutput schema / properties / members / items / properties / committeeFunctionId
      Added value: +{
      +  "description": "Committee searches only: published CommitteeFunction code, such as 1 Mitglied, 2 Präsident/in, or 6 Vizepräsident/in.",
      +  "maximum": 9007199254740991,
      +  "minimum": -9007199254740991,
      +  "type": "integer"
      +}
    • addedOutput schema / properties / members / items / properties / committeeFunctionName
      Added value: +{
      +  "description": "Committee searches only: published CommitteeFunctionName.",
      +  "type": "string"
      +}
    • changedOutput schema / properties / notice / description
      Previous value: -"Combined clamping, byte fitting, empty-result, or past-end guidance."New value: +"Combined clamping, byte fitting, empty-result, empty-roster, or past-end guidance."
    • changedOutput schema / properties / returnedCount / description
      Previous value: -"Number of complete MemberCouncil records delivered."New value: +"Number of complete MemberCouncil records delivered; committee memberships on committee searches."
    • changedOutput schema / properties / totalCount / description
      Previous value: -"Exact whole-query MemberCouncil record count when supplied upstream."New value: +"Exact whole-query MemberCouncil record count when supplied upstream; committee memberships on committee searches."
  3. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare readOnlyHint, openWorldHint, and idempotentHint, but the description adds substantial behavioral context: committee history start dates, rejection of future asOf dates, one-row-per-membership semantics, declaration matching limits, missing newly sworn-in declarations, and pagination via nextOffset.

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

Conciseness3/5

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

The purpose and key modes are front-loaded, but the description is a single dense, semicolon-heavy paragraph that is hard to scan. It also repeats details already present in the schema, so it is complete but not efficiently structured.

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 the tool's 12 parameters, multiple modes, and complex committee/interest behavior, the description covers the necessary constraints, pagination, caveats, and sibling follow-up. An output schema exists, so return-value explanation is not required.

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

Parameters3/5

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

Schema description coverage is 100%, so the schema already documents most parameter meanings. The description adds some cross-parameter context and notes that query matches published first, last, or official name substrings, but much of its parameter detail restates what is already structured.

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 states specific verbs and resources: finding Swiss Parliament affiliation records, listing committee members, and finding declaration-based member records. It distinguishes the tool from chparl_get_member by directing identity and full-history lookups to that sibling.

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 gives explicit mode-selection guidance: membership defaults to current, former selects inactive records, committeeId takes current only, interest cannot be combined with committeeId or asOf, and personNumber should be followed up with chparl_get_member. These are concrete when-to-use and when-not-to-use constraints.

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.