Skip to main content
Glama

uk-parliament-mcp-server

Ukparl Search Members

ukparl_search_members
Read-onlyIdempotent

Find MPs and peers by name, location or constituency, party, House, and current or historical membership. currentOnly=false includes current and former members. asOf selects historical membership and accepts name only, without House, party or location filters. Search results preserve latest profile fields; retrieve sections with ukparl_get_member. Follow opaque cursors with unchanged filters and use contentCursor for oversized records.

Input Schema

NameRequiredDescriptionDefault
asOfNoHistorical membership on YYYY-MM-DD; only name and pagination may accompany it.
nameNoName substring; omission searches all names.
houseNoFilter most recent House; unavailable with asOf.
limitNoRequested whole members; default 10, cap 20; safe over-cap integers are clamped.
cursorNoOpaque collection cursor for the same filters.
partyIdNoParty ID; active reference parties do not exhaust historical IDs.
currentOnlyNoTrue restricts to current members; false includes former and current.
constituencyNoSource location or constituency text, not exact equality.
contentCursorNoSame-selection lossless content continuation.

Output Schema

NameRequiredDescriptionDefault
capNoEffective member workload cap.
modeNoModern or dated historical search.
pageNoCollection continuation by actually emitted records.
errorNoPresent when the call failed. Absent on success.
itemsNoWhole summary member records.
queryNoComplete normalized filters and membership-date semantics.
shownNoActual whole members emitted.
noticeNoLicence, historical scope and workload notices.
sourceNoActual official search request.
appliedNoEffective source and workload; full filters stay in /query.
deliveryNoFull selected payload, child outline, or JSON fragment.
guidanceNoEmpty-result recovery guidance.
identityNoStable selected-record identifiers retained during content retrieval.
retrievalNoSame-tool retrieval instruction.
truncatedNoFurther whole member results remain.
provenanceNoSelected response provenance retained during content retrieval; source notices remain in the reconstructed payload.
totalCountNoSource total before paging.
contentPageNoLossless recursive content continuation.
collectionPageNoCollection continuation; reconstruct the outlined selected payload before following it.
requestedLimitNoOriginal request when capped.

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 readOnly, idempotent, and openWorld behavior, so the description's job is to add call-specific behavior. It does so by noting that results preserve latest profile fields, that cursor continuation requires unchanged filters, and that contentCursor handles oversized records. Those are valuable operational details beyond the annotations, though it could say more about result ordering or partial-match behavior.

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?

Three dense sentences, front-loaded with the core purpose and immediately followed by the two most consequential parameter behaviors and the retrieval alternative. No sentence is filler.

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?

Annotations cover safety and an output schema exists, so the description need not explain return values. It still covers the operational edges an agent needs: historical queries, cursor stability, oversized records, and the handoff to ukparl_get_member.

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?

With schema description coverage at 100%, the baseline is 3. The description restates the asOf restriction and cursor invariants that the schema already documents for those parameters, adding little new semantic detail beyond consolidation.

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 and resource ('Find MPs and peers') and enumerates the searchable dimensions. It also explicitly names the retrieval sibling ukparl_get_member, so an agent can distinguish search from fetch without inspecting schemas.

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 when to use this tool versus ukparl_get_member ('retrieve sections with ukparl_get_member') and gives explicit behavioral rules for currentOnly, asOf, and cursor reuse. The asOf exclusion ('accepts name only, without House, party or location filters') tells the agent exactly how to avoid an invalid combination.

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.