Skip to main content
Glama

canada-parliament-mcp-server

Canparl Search Members

canparl_search_members
Read-onlyIdempotent

Find current House MPs by name, riding, province, or caucus. Set includeFormer for OpenParliament's historical name index; historical rows may contain only a name and slug. Follow nextOffset with identical filters and use detailLookup with canparl_get_member.

Input Schema

NameRequiredDescriptionDefault
nameNoCurrent: literal name substring. Historical: one token is surname lookup; multiple tokens are full recorded name lookup, not substring search.
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.
partyNoOfficial caucus name; Bloc and Green aliases accepted; current roster only.
offsetNoZero-based offset in the selected ordering.
ridingNoLiteral riding substring; current roster only.
provinceNoProvince postal code or full English name; current roster only.
includeFormerNoUse the sparse historical name index instead of the complete current official roster.

Output Schema

NameRequiredDescriptionDefault
capNoEffective page limit after the per-call cap.
errorNoPresent when the call failed. Absent on success.
shownNoReturned row count.
totalNoExact filtered current count; null for historical index.
noticeNoLimit clamp, empty page, historical coverage, or response-budget guidance.
membersNoReturned member identities.
truncatedNoMore queried rows remain.
paginationNoContinuation in the selected source ordering.
provenanceNoOriginal source retrieval metadata.
totalCountNoExact filtered current roster count; absent for historical searches.
appliedFiltersNoNormalized AND filters and name semantics.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already establish read-only, idempotent, open-world behavior. The description adds non-obvious operational behavior: historical rows may contain only a name and slug, and pagination requires repeating the same filters via nextOffset. It also clarifies that includeFormer switches to a sparse historical index rather than the complete current roster.

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?

The definition is three sentences, front-loaded with core purpose, then historical caveat, then pagination and detail-routing instructions. Every sentence carries useful information with no wasted framing.

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?

An output schema is present, so the description need not explain return structure. It still covers scope, historical sparsity, pagination continuation, and the route to canparl_get_member for detail, which is sufficient for this read-only search tool with complete schema coverage.

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 all seven parameters, including name lookup modes, limit clamping, and province formats. The description adds little parameter-specific syntax beyond explaining the effect of includeFormer and the sparsity of historical rows, so a baseline 3 is appropriate.

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 opens with a specific verb ('Find'), resource ('current House MPs'), and filter axes (name, riding, province, caucus). It also distinguishes the historical mode via includeFormer and points detailed lookups to canparl_get_member, so an agent can separate it from siblings.

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 states that the default is current MPs, instructs the agent to set includeFormer for the historical name index, tells it to follow nextOffset with identical filters, and directs detail lookups to canparl_get_member. This provides clear when-to-use guidance and an explicit sibling alternative.

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.