Skip to main content
Glama
ChrisBrooksbank

UK Parliament MCP Server

get_top_level_debate_id

Retrieve the top-level debate ID for a debate section, letting you navigate from a sub-section to its parent debate.

Instructions

Get the top-level debate ID for a debate section | Hansard, debate navigation, parent debate | Use to navigate to the parent debate from a sub-section. Returns the top-level debate ID.

    Args:
        debate_section_id: External ID of debate section.

    Returns:
        Top-level debate ID.
    

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
debate_section_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full disclosure burden. 'Get' implies a safe read, but nothing states idempotency, permission needs, or whether the section ID must already exist; an unsupported/unknown section ID behavior is left implicit. It does at least state the return, though the output schema already covers that.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The definition is front-loaded with the core purpose, but padding creeps in: the pipe-delimited keyword line, a 'Returns the top-level debate ID' sentence, and then an Args/Returns block that repeats the same return value — on top of an output schema that already documents it. A third of the text is restatement.

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 single-parameter lookup with an output schema, the description supplies purpose, usage context, the parameter meaning, and the return, which is close to sufficient. The main residual gap is behavior for invalid/unknown debate section IDs, which neither annotations nor description address.

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 description coverage is 0%, so the description must compensate, and it does document the sole parameter as the 'External ID of debate section' — the word 'External' meaningfully distinguishes it from internal IDs used elsewhere in the API. It omits any format example or where such IDs come from, so it is good but not complete.

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?

The description names a specific verb+resource ('Get the top-level debate ID') and scopes it to a debate section, so the agent knows exactly what is fetched. It does not, however, differentiate itself from nearby lookups such as get_debate_by_id or get_debate_by_external_id, which an agent in this crowded Hansard namespace could easily confuse it with.

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?

'Use to navigate to the parent debate from a sub-section' gives a clear triggering context and makes the parent/child relationship explicit. There is no statement of when-not to use it and no named alternative, so it stops short of the top score.

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