Skip to main content
Glama
ChrisBrooksbank

UK Parliament MCP Server

get_publication_document

Retrieve metadata for a specific UK Parliament publication document, such as a bill document, including filename, content type, and size.

Instructions

Get information about a specific publication document. Use when you need metadata about bill documents including filename, content type, and size.

    Args:
        publication_id: Publication ID.
        document_id: Document ID to get details for.

    Returns:
        Metadata about the publication document.
    

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
document_idYes
publication_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. It discloses the shape of the return (metadata fields) and the read-only nature implied by 'Get', but says nothing about permissions, error behavior, or how it relates to the parent publication resource.

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?

Front-loaded with the purpose and usage sentence before the Args/Returns boilerplate. The structure is clean, though the Args section adds little value and slightly pads the text.

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?

For a simple two-ID read tool with an output schema available, the description covers purpose, trigger, and return category adequately; missing pieces (sibling disambiguation, param meaning) are the ones noted above rather than a wholesale gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% for both parameters, so the description must compensate, and it does not: 'publication_id: Publication ID.' and 'document_id: Document ID to get details for.' merely restate the parameter names. No format, range, or relationship between the two IDs is clarified.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Get information about a specific publication document') and enumerates the returned metadata (filename, content type, size), which distinguishes it from sibling list tools like get_publications or get_bill_publications. It does not, however, explicitly differentiate itself from the very similar get_publication_by_id.

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

Usage Guidelines3/5

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

The phrase 'Use when you need metadata about bill documents' gives implied context for invocation, but no explicit when-not conditions and no named alternatives (e.g. get_publication_by_id vs get_bill_publications) are given despite many near-neighbours in the sibling list.

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

Deploy Server

Other Tools