Skip to main content
Glama

uk-parliament-mcp-server

Ukparl Get Bill

ukparl_get_bill
Read-onlyIdempotent

Retrieve a Westminster bill overview or select stages, stage, publications, amendments, amendment, motions or motion. Stage/amendment/motion selections require the bill-specific billStageId from section=stages; singular amendment/motion also require itemId from their parent collection. Use amendmentId for amendment retrieval and motion.id for motions. Filter only the amendments collection by amendmentNumber, decision or sponsoring memberId. Collection selectors paginate whole records. Overview leaves publications unchecked; select publications to discover actual supplied legislation.gov.uk statute links. Follow contentCursor with the original selection to reconstruct oversized records.

Input Schema

NameRequiredDescriptionDefault
limitNoCollection records; positive safe integer, default 20, effective cap 50; collections only.
billIdYesParent bill identifier from ukparl_search_bills.
cursorNoCollection continuation; collections only.
itemIdNoAmendment amendmentId or ping-pong motion.id; singular selections only.
sectionNoSelected bill section; overview by default.overview
decisionNoOfficial amendment decision filter; amendments collection only.
memberIdNoSponsoring member ID; amendments collection only.
billStageIdNoBill-specific stage occurrence ID, required for stage/amendment/motion selections.
contentCursorNoLossless same-selection content continuation.
amendmentNumberNoPublished amendment number, retaining letter suffixes; amendments collection only.

Output Schema

NameRequiredDescriptionDefault
capNoEffective per-call collection limit.
pageNoActual emitted collection continuation.
errorNoPresent when the call failed. Absent on success.
foundNoWhether the selected entity exists.
itemsNoWhole selected collection records.
shownNoActual whole records emitted or selected for lossless reconstruction.
billIdNoParent bill ID.
noticeNoLicence, workload and selected empty-collection notices.
recordNoComplete selected record.
sourceNoSelected request provenance.
appliedNoNormalized selection and actual source.
sectionNoSelected bill section.
deliveryNoFull selected payload, child outline, or JSON fragment.
guidanceNoSame-server recovery for an entity miss.
identityNoStable selected-record identifiers retained during content retrieval.
retrievalNoSame-tool retrieval instruction.
truncatedNoFurther source records remain after this selected page.
provenanceNoSelected response provenance retained during content retrieval; source notices remain in the reconstructed payload.
totalCountNoKnown selected collection total.
contentPageNoLossless recursive content continuation.
detailLevelNoSelected source completeness.
collectionPageNoCollection continuation; reconstruct the outlined selected payload before following it.
requestedLimitNoCaller limit before clamping.
legislationHandoffNoAuthoritative statute handoff.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and openWorldHint, lowering the disclosure burden. The description adds useful behavior beyond those annotations: collection selectors paginate whole records, overview omits publications, publications reveal supplied legislation.gov.uk statute links, and contentCursor reconstructs oversized records.

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?

The description is front-loaded with the core retrieval purpose and every clause carries a selection, dependency, or pagination rule. It is dense and semicolon-heavy, which makes it harder to scan, but there is little obvious 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?

This is a complex 10-parameter tool with an output schema and annotations. The description supplies the critical cross-parameter dependencies, collection filtering limits, publication nuance, and oversized-record recovery needed to invoke it correctly.

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 cross-parameter meaning beyond the schema. It links billStageId to section=stages, itemId to the parent collection for singular amendment/motion retrieval, and restricts amendment filters to the amendments collection.

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 a specific verb and resource: retrieve a Westminster bill overview or selected sections including stages, publications, amendments, and motions. It enumerates the selectable sections, so an agent can understand the tool's scope without opening the schema, and it is not a tautology of the title.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives clear conditional guidance for selecting sections, including that stage/amendment/motion selections require billStageId and singular selections also require itemId. It also explains filtering and pagination rules, though it does not explicitly route the agent from ukparl_search_bills to this retrieval tool beyond the schema's billId note.

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.