Skip to main content
Glama

switzerland-parliament-mcp-server

Chparl Search Transcripts

chparl_search_transcripts
Read-onlyIdempotent

Find Amtliches Bulletin passages by business, debate subject, speaker, session, council, passage type, or inclusive meeting dates. Supply at least a business, subject, speaker, session, or date bound. A text substring query additionally requires sessionId or a closed date range of at most 31 calendar days. Searches return metadata by default; includeText returns whole original passages, and an exact transcriptId defaults to full text. Metadata language never translates the speaker text; missing LanguageOfText remains unknown. Business searches cover every associated subject up to 20; a business with more is searched when council, sessionId, or date bounds leave at most 20 of its subjects, and otherwise requires selecting subjectId through chparl_get_business section subjects. subjectBusinesses lists the businesses published for each delivered subjectId; pass a subjectBusinesses[].businesses[].businessId to chparl_get_business or chparl_get_votes. Searches run in debate order, oldest first: meeting day, sitting, debate subject, then speaking order (sortOrder) within the subject. Follow nextOffset with unchanged 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_transcripts"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeNoPassage type code: 1 speech, 2 vote announcement, 3 heading or procedural note. Narrows a search; like council, it does not satisfy the scope requirement. Types 2 and 3 carry no speaker, so with personNumber they match nothing.
limitNoSearch page request: metadata default 20/max 100, full text default 3/max 10; clamped with notice. Incompatible with transcriptId.
queryNoOne original-text substring; requires sessionId or both dates spanning at most 31 inclusive calendar days.
dateToNoInclusive meeting-day upper bound, YYYY-MM-DD.
offsetNoSearch starting row offset, default zero; use returned nextOffset. Incompatible with transcriptId.
councilNoN or S; exact German, French, and Italian council names are also accepted.
dateFromNoInclusive meeting-day lower bound, YYYY-MM-DD.
languageNoMetadata language: de (default), fr, or it; original passage text stays in its published language.de
sessionIdNoExact positive decimal session identifier from chparl_list_reference topic sessions.
subjectIdNoPositive Int64 debate IdSubject string; incompatible with businessId and transcriptId.
businessIdNoCanonical eight-digit businessId from chparl_search_business or published short number; incompatible with subjectId and transcriptId.
includeTextNoReturn whole original text and references; defaults true for transcriptId and false for searches. Explicit false always wins.
personNumberNoExact speaker PersonNumber from chparl_search_members.
transcriptIdNoExact positive Int64 transcriptId from a previous chparl_search_transcripts result; only language and includeText may accompany it.

Output Schema

NameRequiredDescriptionDefault
errorNoPresent when the call failed. Absent on success.
foundNoExact-ID mode only: whether the selected passage exists.
noticeNoCombined clamp, empty-result, past-end, unavailable-lookup, or oversized exact-passage guidance.
hasMoreNoWhether passages remain after the delivered search page; absent in exact-ID mode.
guidanceNoHow to discover a valid exact passage or missing business identifier.
nextOffsetNoOriginal offset plus actually delivered passages, when more remain.
provenanceNoAttribution, publication status, and source download dates.
scopeFoundNoBusiness searches only: whether the business exists, independently of published subjects or passages.
totalCountNoExact whole-scope passage count when supplied; absent when a business does not exist.
transcriptsNoWhole matching passages or zero-or-one exact-ID result, without shortening original fields.
returnedCountNoPassages actually delivered on a search page; absent in exact-ID mode.
effectiveLimitNoSearch page size after metadata or full-text clamping.
effectiveFiltersNoEffective passage filters, disclosure mode, and applicable paging defaults.
subjectBusinessesNoOne entry per distinct subjectId among the delivered passages, in first-appearance order; join passages on subjectId. Absent when no delivered passage has a subject, or when the lookup was unavailable, which a notice reports.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / type
      Added value: +{
      +  "description": "Passage type code: 1 speech, 2 vote announcement, 3 heading or procedural note. Narrows a search; like council, it does not satisfy the scope requirement. Types 2 and 3 carry no speaker, so with personNumber they match nothing.",
      +  "maximum": 32767,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedOutput schema / properties / effectiveFilters / properties / type
      Added value: +{
      +  "description": "Exact passage type code: 1 speech, 2 vote announcement, 3 heading or procedural note.",
      +  "maximum": 9007199254740991,
      +  "minimum": -9007199254740991,
      +  "type": "integer"
      +}
    • changedOutput schema / properties / error / properties / data / properties / reason / description
      Previous value: -"Machine-readable failure mode. Declared by this tool: `search_scope_required`: No business, subject, speaker, session, date bound, or exact passage identifies the search. `text_scope_required`: A text query lacks a session or a valid closed date range of at most 31 days. `business_scope_too_broad`: A business has more than 20 associated debate subjects, and council, sessionId, dateFrom, and dateTo, when supplied, leave more than 20 of them. `incompatible_fields`: Business and subject are combined, an exact passage ID is combined with search filters or paging, or dateFrom is after dateTo. `ambiguous_business_number`: A short business number resolves to multiple canonical businesses. `request_too_long`: The text filters make the URL-encoded Parliament request longer than its 2048-byte query-string limit. `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: `search_scope_required`: No business, subject, speaker, session, date bound, or exact passage identifies the search. `text_scope_required`: A text query lacks a session or a valid closed date range of at most 31 days. `business_scope_too_broad`: A business has more than 20 associated debate subjects, and council, sessionId, dateFrom, and dateTo, when supplied, leave more than 20 of them. `incompatible_fields`: Business and subject are combined, an exact passage ID is combined with a search filter such as type, or with paging, or dateFrom is after dateTo. `ambiguous_business_number`: A short business number resolves to multiple canonical businesses. `request_too_long`: The text filters make the URL-encoded Parliament request longer than its 2048-byte query-string limit. `upstream_rate_limited`: Parliament returned HTTP 429. Other values are possible when a failure originates below the handler."
    • changedOutput schema / properties / transcripts / items / properties / type / description
      Previous value: -"Published open Bulletin passage type code."New value: +"Published open Bulletin passage type code: 1 speech, 2 vote announcement, 3 heading or procedural note."
  2. Changed5 schema fields changed
    • changedInput schema / properties / personNumber / description
      Previous value: -"Exact speaker PersonNumber from chparl_search_members, distinct from Person.ID."New value: +"Exact speaker PersonNumber from chparl_search_members."
    • changedOutput schema / properties / error / properties / data / properties / reason / description
      Previous value: -"Machine-readable failure mode. Declared by this tool: `search_scope_required`: No business, subject, speaker, session, date bound, or exact passage identifies the search. `text_scope_required`: A text query lacks a session or a valid closed date range of at most 31 days. `business_scope_too_broad`: A business has more than 20 associated debate subjects. `incompatible_fields`: Business and subject are combined, an exact passage ID is combined with search filters or paging, or dateFrom is after dateTo. `ambiguous_business_number`: A short business number resolves to multiple canonical businesses. `request_too_long`: The text filters make the URL-encoded Parliament request longer than its 2048-byte query-string limit. `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: `search_scope_required`: No business, subject, speaker, session, date bound, or exact passage identifies the search. `text_scope_required`: A text query lacks a session or a valid closed date range of at most 31 days. `business_scope_too_broad`: A business has more than 20 associated debate subjects, and council, sessionId, dateFrom, and dateTo, when supplied, leave more than 20 of them. `incompatible_fields`: Business and subject are combined, an exact passage ID is combined with search filters or paging, or dateFrom is after dateTo. `ambiguous_business_number`: A short business number resolves to multiple canonical businesses. `request_too_long`: The text filters make the URL-encoded Parliament request longer than its 2048-byte query-string limit. `upstream_rate_limited`: Parliament returned HTTP 429. Other values are possible when a failure originates below the handler."
    • changedOutput schema / properties / notice / description
      Previous value: -"Combined clamp, whole-item fitting, empty-result, or indivisible-record guidance."New value: +"Combined clamp, empty-result, past-end, unavailable-lookup, or oversized exact-passage guidance."
    • changedOutput schema / properties / transcripts / items / properties / personNumber / description
      Previous value: -"Published speaker PersonNumber, distinct from Person.ID."New value: +"Published speaker PersonNumber, the key chparl_get_member takes."
    • changedOutput schema / properties / transcripts / items / properties / sortOrder / description
      Previous value: -"Published passage sort order."New value: +"Published SortOrder: speaking order within the passage's debate subject, from 1."
  3. Changed5 schema fields changed
    • changedOutput schema / properties / error / properties / data / properties / reason / description
      Previous value: -"Machine-readable failure mode. Declared by this tool: `search_scope_required`: No business, subject, speaker, session, date bound, or exact passage identifies the search. `text_scope_required`: A text query lacks a session or a valid closed date range of at most 31 days. `business_scope_too_broad`: A business has more than 20 associated debate subjects. `incompatible_fields`: Business and subject are combined, an exact passage ID is combined with search filters or paging, or dateFrom is after dateTo. `ambiguous_business_number`: A short business number resolves to multiple canonical businesses. `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: `search_scope_required`: No business, subject, speaker, session, date bound, or exact passage identifies the search. `text_scope_required`: A text query lacks a session or a valid closed date range of at most 31 days. `business_scope_too_broad`: A business has more than 20 associated debate subjects. `incompatible_fields`: Business and subject are combined, an exact passage ID is combined with search filters or paging, or dateFrom is after dateTo. `ambiguous_business_number`: A short business number resolves to multiple canonical businesses. `request_too_long`: The text filters make the URL-encoded Parliament request longer than its 2048-byte query-string limit. `upstream_rate_limited`: Parliament returned HTTP 429. Other values are possible when a failure originates below the handler."
    • changedOutput schema / properties / error / properties / data / properties / reason / examples
      Previous value: -[
      -  "search_scope_required",
      -  "text_scope_required",
      -  "business_scope_too_broad",
      -  "incompatible_fields",
      -  "ambiguous_business_number",
      -  "upstream_rate_limited"
      -]New value: +[
      +  "search_scope_required",
      +  "text_scope_required",
      +  "business_scope_too_broad",
      +  "incompatible_fields",
      +  "ambiguous_business_number",
      +  "request_too_long",
      +  "upstream_rate_limited"
      +]
    • addedOutput schema / properties / subjectBusinesses
      Added value: +{
      +  "description": "One entry per distinct subjectId among the delivered passages, in first-appearance order; join passages on subjectId. Absent when no delivered passage has a subject, or when the lookup was unavailable, which a notice reports.",
      +  "items": {
      +    "additionalProperties": false,
      +    "description": "One delivered debate subject with its published businesses.",
      +    "properties": {
      +      "businesses": {
      +        "description": "Published SubjectBusiness rows in SortOrder order; empty when there are none.",
      +        "items": {
      +          "additionalProperties": false,
      +          "description": "One business published for a debate subject.",
      +          "properties": {
      +            "businessId": {
      +              "description": "Canonical eight-digit BusinessNumber; pass it to chparl_get_business or chparl_get_votes.",
      +              "type": "string"
      +            },
      +            "shortNumber": {
      +              "description": "Published BusinessShortNumber, unchanged.",
      +              "type": "string"
      +            },
      +            "title": {
      +              "description": "Published business title in the metadata language.",
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "businessId"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "subjectId": {
      +        "description": "Debate IdSubject carried by at least one delivered passage.",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "subjectId",
      +      "businesses"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • changedOutput schema / properties / transcripts / items / properties / businessId / description
      Previous value: -"Published VoteBusinessNumber; not an exhaustive passage-to-business relationship."New value: +"Published VoteBusinessNumber of a vote announcement; the debate's businesses are in subjectBusinesses, joined on subjectId."
    • changedOutput schema / properties / transcripts / items / properties / voteId / description
      Previous value: -"Original VoteId string when the passage announces a vote."New value: +"Original VoteId string when the passage announces a vote; it equals the roll call registrationNumber in chparl_get_votes votes mode, not its voteId."
  4. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only cover read-only/idempotent/open-world, while the description discloses default metadata-only returns, includeText semantics, the transcriptId full-text default, that metadata language never translates speaker text, and that missing LanguageOfText stays unknown. It also documents ordering (meeting day, sitting, debate subject, sortOrder) and pagination via nextOffset with unchanged filters.

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?

Front-loaded with purpose and scope constraints before the finer rules, and every sentence carries substantive information with no filler. Some sentences are densely packed with multiple clauses, which slightly increases parsing cost.

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 a 14-parameter, zero-required search tool with an output schema, the description covers scope rules, defaults, ordering, paging, and the cross-tool handoffs an agent needs. Return-value detail is rightly left to the output schema, with only the non-obvious subjectBusinesses field explained.

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 real meaning beyond the schema: the 20-subject ceiling on business searches and the workaround, the role of subjectBusinesses output in feeding chparl_get_business or chparl_get_votes, and the nextOffset paging contract. It stops short of clarifying some parameter interactions (e.g. includeText with subjectBusinesses) that a caller may wonder about.

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?

Opens with a specific verb and resource ('Find Amtliches Bulletin passages') and enumerates the full set of filterable dimensions. It is clearly a search tool, distinguishable from siblings like chparl_get_business and chparl_get_votes which it explicitly routes to.

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?

States the minimum scope requirement ('at least a business, subject, speaker, session, or date bound') and the extra constraint for text queries (sessionId or a closed range of at most 31 days). It also names alternatives with the exact conditions that select them, e.g. selecting subjectId via chparl_get_business when a business exceeds 20 subjects.

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.