Skip to main content
Glama
paulieb89

UK Legal Research MCP Server

Search UK Parliament Petitions

parliament_search_petitions
Read-onlyIdempotent

Search UK Parliament petitions by keyword. Filter by state to retrieve titles, signature counts, and government response or debate dates.

Instructions

USE THIS TOOL WHEN searching UK Parliament petitions by keyword or topic.

Returns petition title, state, signature count, and dates for government response or parliamentary debate if applicable. Filter by state (open, closed, debated, etc.) to narrow to live or historical petitions.

This is the authoritative source for UK Parliament petitions (petition.parliament.uk).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
paramsYesPetitionSearchInput with query and optional state filter.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesThe term that was searched in petitions
stateYesPetition state filter applied to this query
offsetNoSkip applied to this page
limitNoPage size requested
totalYesNumber of petitions returned in this call
has_moreNoTrue if a full page was returned (more may exist)
petitionsNoMatching petitions (title, state, signature count, key dates, URL).
Behavior3/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false. The description adds return field detail and state filter examples, but includes 'debated' which is not in the schema enum, creating a potential contradiction that reduces clarity.

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 concise sentences front-load the purpose, list returns, and establish authority. No unnecessary words.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The description covers purpose, returns, and state filtering, but lacks pagination guidance and has a minor enum mismatch. Output schema existence partially fills gaps but pagination behavior is undocumented in description.

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 coverage is 100% with detailed parameter descriptions. The description adds minimal new meaning beyond the schema, only restating that search is by keyword/topic and filtering by state.

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 clearly states the tool is for searching UK Parliament petitions by keyword or topic, and specifies the resource and verb. It distinguishes itself from siblings as the only petitions tool.

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?

The description explicitly says 'USE THIS TOOL WHEN searching UK Parliament petitions', providing clear usage context. It does not explicitly compare to alternatives, but siblings contain no other petitions tool, making it uniquely appropriate.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/paulieb89/uk-legal-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server