Skip to main content
Glama

canada-parliament-mcp-server

Canparl Search Bills

canparl_search_bills
Read-onlyIdempotent

Find House and Senate bills in one session by title, number, type, chamber, status, or indexed MP sponsor. Sponsor results are the OpenParliament-indexed subset; fetch a bill for its sponsor, stages, divisions, and statute citation. Omitted session means the verified current official session. Follow nextOffset with identical filters.

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum rows, default 25, effective cap 100; values through 10000 are accepted and clamp with a notice. Whole records may end the page early at the 24000-byte response budget; follow nextOffset.
offsetNoZero-based offset in the selected ordering.
statusNoOfficial bill status from canparl_list_reference topic bill_statuses.
sessionNoParliamentary session; omitted means current.
sponsorNoMP OpenParliament slug or politician path/HTTPS URL (member.slug from canparl_get_member, or an includeFormer canparl_search_members row), or a current MP's official personId; Senators are not indexed. A digit-only value equal to a current personId, or its /politicians/<digits>/ path or profile URL, is read as that personId.
billCodeNoExact bill code, including a split-bill suffix letter such as C-15A; accepts bill s321, S321, S 321, or S-321.
billTypeNoOfficial bill type from canparl_list_reference topic bill_types.
titleContainsNoLiteral case-insensitive substring of any English or French long or short title.
originatingChamberNoHouse, House of Commons, or Senate; case-insensitive.

Output Schema

NameRequiredDescriptionDefault
capNoEffective page limit after the per-call cap.
billsNoMatching official bills ordered by chamber prefix, number, then split-bill suffix letter.
errorNoPresent when the call failed. Absent on success.
shownNoNumber of bills in this page.
totalNoExact matching count after all filters and before pagination.
noticeNoLimit clamp, coverage, empty-result, past-end, or response-budget guidance.
sessionNoVerified official parliament-session token.
truncatedNoWhether more matching bills remain after this page.
paginationNoLocal continuation in the filtered ordering, including a response-budget stop.
provenanceNoOriginal retrieval metadata from all source requests.
totalCountNoExact matching count before slicing.
appliedFiltersNoNormalized filters applied together with AND.
sponsorCoverageNoWhether the result is restricted to the third-party sponsor index.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/openWorld, so the bar is lower; the description still adds real behavior: sponsor results are only the OpenParliament-indexed subset, an omitted session resolves to the 'verified current official session', and pagination must reuse identical filters. It does not discuss the response-size/byte-budget truncation behavior, though that is covered by the schema.

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

Conciseness5/5

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

Four tight sentences, front-loaded with the primary capability, followed by scope caveat, default, and pagination rule. No sentence is redundant or restates the title.

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?

With an output schema present, annotations covering the safety profile, and full param documentation in the schema, the description supplies exactly the missing connective guidance: sibling routing, sponsor-coverage limitation, session default, and pagination continuation. Nothing needed to invoke it correctly appears absent.

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 description coverage is 100%, so the baseline is 3; the description earns a point by summarizing which fields act as combinable filters and by flagging the sponsor-indexing caveat and session defaulting in agent-facing terms. It adds no syntax detail beyond the schema (slug formats, billCode variants, status reference topics are schema-only).

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?

States a specific verb ('Find') plus the resource ('House and Senate bills') and enumerates the filterable dimensions (title, number, type, chamber, status, indexed MP sponsor). It also explicitly distinguishes itself from the sibling read tool by saying a bill must be fetched for sponsor, stages, divisions, and statute citation.

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 names the alternative path — 'fetch a bill for its sponsor, stages, divisions, and statute citation' — which routes the agent to canparl_get_bill when detail is needed rather than search. It also states the default when session is omitted and the pagination contract ('follow nextOffset with identical filters'), leaving little to 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.