Skip to main content
Glama

Get Member Debates

parliament_member_debates
Read-onlyIdempotent

USE THIS TOOL WHEN you have a member_id and want contributions where THAT member used a specific topic phrase verbatim (text-body search).

CALL parliament_find_member(name) FIRST to obtain the integer member_id.

This is a name-based text-body search — it matches contributions whose TEXT contains the topic phrase. A member who spoke in a debate but didn't use your phrase verbatim is filtered out. For verbatim retrieval of every contribution by a member in a known debate (regardless of vocabulary), use parliament_get_debate_contributions(debate_ext_id, member_id=...) instead.

Each contribution's text field is capped at 3000 characters.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum contributions to return. Default 20.
topicNoOptional phrase to find in THIS member's contribution text bodies. Hansard searches the words the member actually said, NOT the topic or title of the debate. Pass tokens this member would have spoken — distinctive arguments ('disproportionate sanction'), statutory references ('section 21'), or motion numbers ('Motion C1') — not the bill's name (members rarely say e.g. 'Renters\' Rights Bill' verbatim in their speeches). If you want 'every contribution this member made in a specific debate' regardless of words used, find the debate_ext_id then use parliament_get_debate_contributions(debate_ext_id, member_id=...).
offsetNoNumber of contributions to skip before this page. Default 0. Re-call with offset=offset+returned while has_more is true.
member_idYesParliament Members API integer ID. Obtain from parliament_find_member.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoPage size requested
topicNoTopic phrase filter applied, if any
totalYesNumber of contributions returned in this call
offsetNoSkip applied to this page
has_moreNoTrue if a full page was returned (more may exist)
member_idYesParliament Members API member ID
contributionsNoHansard contributions for the member. Each `text` field is capped at 3000 characters.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Changed6 schema fields changed
    • addedInput schema / properties / limit
      Added value: +{
      +  "default": 20,
      +  "description": "Maximum contributions to return. Default 20.",
      +  "maximum": 100,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / member_id
      Added value: +{
      +  "description": "Parliament Members API integer ID. Obtain from parliament_find_member.",
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / offset
      Added value: +{
      +  "default": 0,
      +  "description": "Number of contributions to skip before this page. Default 0. Re-call with offset=offset+returned while has_more is true.",
      +  "maximum": 2000,
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • removedInput schema / properties / params
      Removed value: -{
      -  "additionalProperties": false,
      -  "description": "MemberDebatesInput with member_id and optional topic filter.",
      -  "properties": {
      -    "limit": {
      -      "default": 20,
      -      "description": "Maximum contributions to return. Default 20.",
      -      "maximum": 100,
      -      "minimum": 1,
      -      "type": "integer"
      -    },
      -    "member_id": {
      -      "description": "Parliament Members API integer ID. Obtain from parliament_find_member.",
      -      "minimum": 1,
      -      "type": "integer"
      -    },
      -    "offset": {
      -      "default": 0,
      -      "description": "Number of contributions to skip before this page. Default 0. Re-call with offset=offset+returned while has_more is true.",
      -      "maximum": 2000,
      -      "minimum": 0,
      -      "type": "integer"
      -    },
      -    "topic": {
      -      "anyOf": [
      -        {
      -          "type": "string"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "default": null,
      -      "description": "Optional phrase to find in THIS member's contribution text bodies. Hansard searches the words the member actually said, NOT the topic or title of the debate. Pass tokens this member would have spoken — distinctive arguments ('disproportionate sanction'), statutory references ('section 21'), or motion numbers ('Motion C1') — not the bill's name (members rarely say e.g. 'Renters' Rights Bill' verbatim in their speeches). If you want 'every contribution this member made in a specific debate' regardless of words used, find the debate_ext_id then use parliament_get_debate_contributions(debate_ext_id, member_id=...)."
      -    }
      -  },
      -  "required": [
      -    "member_id"
      -  ],
      -  "type": "object"
      -}
    • addedInput schema / properties / topic
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Optional phrase to find in THIS member's contribution text bodies. Hansard searches the words the member actually said, NOT the topic or title of the debate. Pass tokens this member would have spoken — distinctive arguments ('disproportionate sanction'), statutory references ('section 21'), or motion numbers ('Motion C1') — not the bill's name (members rarely say e.g. 'Renters\\' Rights Bill' verbatim in their speeches). If you want 'every contribution this member made in a specific debate' regardless of words used, find the debate_ext_id then use parliament_get_debate_contributions(debate_ext_id, member_id=...)."
      +}
    • changedInput schema / required
      Previous value: -[
      -  "params"
      -]New value: +[
      +  "member_id"
      +]
  2. Changed1 schema field changed
    • changedInput schema / properties / params / properties / topic / description
      Previous value: -"Optional phrase to filter this member's contributions by topic, e.g. 'housing benefit' or 'net zero'. Searched as an exact phrase."New value: +"Optional phrase to find in THIS member's contribution text bodies. Hansard searches the words the member actually said, NOT the topic or title of the debate. Pass tokens this member would have spoken — distinctive arguments ('disproportionate sanction'), statutory references ('section 21'), or motion numbers ('Motion C1') — not the bill's name (members rarely say e.g. 'Renters' Rights Bill' verbatim in their speeches). If you want 'every contribution this member made in a specific debate' regardless of words used, find the debate_ext_id then use parliament_get_debate_contributions(debate_ext_id, member_id=...)."
  3. Changed1 schema field changed
    • changedOutput schema / properties / contributions / items / properties / member_id / description
      Previous value: -"Members API integer ID. Use as `member_id` in parliament_member_debates / parliament_member_interests, or as {member_id} in hansard://member/{member_id}/biography for role history."New value: +"Members API integer ID. Use as {member_id} in hansard://member/{member_id}/biography for the member's role history."
  4. Changed20 schema fields changed
    • changedOutput schema / properties / contributions / items / description
      Previous value: -"A single Hansard debate contribution."New value: +"A single Hansard debate contribution with citation-grade metadata.\n\nField provenance maps to the upstream hansard-api.parliament.uk\n`Contributions[i]` payload, so callers can footnote a contribution\nwithout re-querying."
    • addedOutput schema / properties / contributions / items / properties / attributed_to
      Added value: +{
      +  "description": "Full citable attribution string, e.g. 'The Minister of State, DESNZ (Lord Whitehead) (Lab)'. Includes role-at-time of contribution for ministerial interventions.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / contributions / items / properties / chamber_section
      Added value: +{
      +  "description": "Hansard section bucket (Section): 'Commons Chamber', 'Lords Chamber', 'Westminster Hall', 'Written Answers', 'Written Statements'.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / contributions / items / properties / column_end
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "The last Hansard column number this contribution spans, e.g. when a long speech runs across columns 200–203. Equal to `column_start` for short contributions. Same population semantics as `column_start`."
      +}
    • addedOutput schema / properties / contributions / items / properties / column_ref
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Hansard internal page-marker code from HansardSection (e.g. 'BE-BG1', 'AA-AD'). NOT the citable column number that appears in an OSCOLA footnote — see `column_start` / `column_end` for those, which are only available when reading the contribution via hansard://debate/{debate_ext_id}/contribution/{contribution_ext_id}. From parliament_search_hansard, only this page-marker is exposed."
      +}
    • addedOutput schema / properties / contributions / items / properties / column_start
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "The citable Hansard column number where this contribution begins, e.g. 200, 1162. Extracted from `data-column-number` markers in the contribution HTML. Populated only when reading via the contribution resource — `parliament_search_hansard` returns this as None because Hansard's /search.json strips the column markers. To get the real column number for a search hit, read hansard://debate/{debate_ext_id}/contribution/{contribution_ext_id}."
      +}
    • addedOutput schema / properties / contributions / items / properties / contribution_ext_id
      Added value: +{
      +  "description": "ContributionExtId GUID — stable citation key. Use as {contribution_ext_id} in hansard://debate/{debate_ext_id}/contribution/{contribution_ext_id}.",
      +  "type": "string"
      +}
    • changedOutput schema / properties / contributions / items / properties / date / description
      Previous value: -"Date the contribution was made"New value: +"Date the contribution was made (SittingDate)"
    • addedOutput schema / properties / contributions / items / properties / debate_ext_id
      Added value: +{
      +  "description": "DebateSectionExtId GUID. Use as {debate_ext_id} in hansard://debate/{debate_ext_id}/header.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / contributions / items / properties / debate_id
      Added value: +{
      +  "description": "Integer DebateSectionId — internal Hansard identifier",
      +  "type": "integer"
      +}
    • changedOutput schema / properties / contributions / items / properties / debate_title / description
      Previous value: -"Title of the debate or question"New value: +"Title of the debate or question (DebateSection)"
    • addedOutput schema / properties / contributions / items / properties / house
      Added value: +{
      +  "description": "House of Parliament (House)",
      +  "enum": [
      +    "Commons",
      +    "Lords"
      +  ],
      +  "type": "string"
      +}
    • addedOutput schema / properties / contributions / items / properties / member_id
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Members API integer ID. Use as `member_id` in parliament_member_debates / parliament_member_interests, or as {member_id} in hansard://member/{member_id}/biography for role history."
      +}
    • changedOutput schema / properties / contributions / items / properties / member_name / description
      Previous value: -"Name of the contributing member"New value: +"Name of the contributing member (MemberName)"
    • changedOutput schema / properties / contributions / items / properties / party / description
      Previous value: -"Political party affiliation"New value: +"Political party affiliation parsed from the trailing '(Party)' suffix in AttributedTo"
    • addedOutput schema / properties / contributions / items / properties / rank
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Upstream relevance score (Rank). Higher = more relevant to the query."
      +}
    • removedOutput schema / properties / contributions / items / properties / section
      Removed value: -{
      -  "description": "Hansard section (e.g. 'Commons Chamber', 'Written Answers')",
      -  "type": "string"
      -}
    • changedOutput schema / properties / contributions / items / properties / text / description
      Previous value: -"Full text of the contribution (capped at 3000 characters)"New value: +"Contribution text (capped per max_text_chars on the input; default 3000). Source: ContributionTextFull when text_mode='full', ContributionText preview otherwise."
    • changedOutput schema / properties / contributions / items / properties / url / description
      Previous value: -"Direct Hansard URL to this contribution"New value: +"Public hansard.parliament.uk URL for this contribution (synthesised from House/Date/DebateSectionExtId/ContributionExtId)."
    • changedOutput schema / properties / contributions / items / required
      Previous value: -[
      -  "member_name",
      -  "date",
      -  "debate_title",
      -  "section",
      -  "text",
      -  "url"
      -]New value: +[
      +  "member_name",
      +  "attributed_to",
      +  "date",
      +  "debate_title",
      +  "debate_id",
      +  "debate_ext_id",
      +  "contribution_ext_id",
      +  "chamber_section",
      +  "house",
      +  "text",
      +  "url"
      +]
  5. Changed1 schema field changed
    • addedInput schema / properties / params / description
      Added value: +"MemberDebatesInput with member_id and optional topic filter."
  6. Changed5 schema fields changed
    • addedInput schema / properties / params / properties / limit
      Added value: +{
      +  "default": 20,
      +  "description": "Maximum contributions to return. Default 20.",
      +  "maximum": 100,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / params / properties / offset
      Added value: +{
      +  "default": 0,
      +  "description": "Number of contributions to skip before this page. Default 0. Re-call with offset=offset+returned while has_more is true.",
      +  "maximum": 2000,
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • addedOutput schema / properties / has_more
      Added value: +{
      +  "default": false,
      +  "description": "True if a full page was returned (more may exist)",
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / limit
      Added value: +{
      +  "default": 20,
      +  "description": "Page size requested",
      +  "type": "integer"
      +}
    • addedOutput schema / properties / offset
      Added value: +{
      +  "default": 0,
      +  "description": "Skip applied to this page",
      +  "type": "integer"
      +}
  7. Changed8 schema fields changed
    • changedOutput schema / description
      Previous value: -"Generic wrapper for non-object return types."New value: +"Result of a member-filtered Hansard search.\n\nWraps the contributions for one member (optionally filtered further\nby topic) with query metadata."
    • addedOutput schema / properties / contributions
      Added value: +{
      +  "description": "Hansard contributions for the member. Each `text` field is capped at 3000 characters.",
      +  "items": {
      +    "description": "A single Hansard debate contribution.",
      +    "properties": {
      +      "constituency": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Constituency (Commons only; None for Lords)"
      +      },
      +      "date": {
      +        "description": "Date the contribution was made",
      +        "format": "date",
      +        "type": "string"
      +      },
      +      "debate_title": {
      +        "description": "Title of the debate or question",
      +        "type": "string"
      +      },
      +      "member_name": {
      +        "description": "Name of the contributing member",
      +        "type": "string"
      +      },
      +      "party": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Political party affiliation"
      +      },
      +      "section": {
      +        "description": "Hansard section (e.g. 'Commons Chamber', 'Written Answers')",
      +        "type": "string"
      +      },
      +      "text": {
      +        "description": "Full text of the contribution (capped at 3000 characters)",
      +        "type": "string"
      +      },
      +      "url": {
      +        "description": "Direct Hansard URL to this contribution",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "member_name",
      +      "date",
      +      "debate_title",
      +      "section",
      +      "text",
      +      "url"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / member_id
      Added value: +{
      +  "description": "Parliament Members API member ID",
      +  "type": "integer"
      +}
    • removedOutput schema / properties / result
      Removed value: -{
      -  "type": "string"
      -}
    • addedOutput schema / properties / topic
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Topic phrase filter applied, if any"
      +}
    • addedOutput schema / properties / total
      Added value: +{
      +  "description": "Number of contributions returned in this call",
      +  "type": "integer"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "result"
      -]New value: +[
      +  "member_id",
      +  "total"
      +]
    • removedOutput schema / x-fastmcp-wrap-result
      Removed value: -true
  8. First observed

TDQS

A5/5.0
Behavior5/5

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

Annotations indicate read-only, idempotent, non-destructive behavior, but the description adds valuable context: text-body search semantics, filtering of members who didn't use the phrase, the 3000-character cap on contribution text, and the prerequisite of obtaining member_id. This goes beyond the annotations to explain real behavioral constraints.

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?

The description is front-loaded with a clear usage directive, followed by a prerequisite, then semantic clarification and an alternative. Each sentence serves a distinct purpose; the length is justified by the tool's complexity and the need to prevent misuse.

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?

For a read-only, well-annotated tool with a rich output schema, the description covers all necessary context: when to use, prerequisites, search semantics, limitations (3000-char cap), and the alternative for complete retrieval. No gaps are evident.

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

Parameters5/5

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

While schema coverage is 100%, the description adds significant meaning, especially for the 'topic' parameter: it clarifies that the search targets the member's actual spoken words, not debate titles, and gives examples of effective search tokens. It also explains offset pagination behavior, enriching the schema's basic parameter descriptions.

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 identifies the tool's purpose: retrieving contributions where a specific member used a specific topic phrase verbatim in a text-body search. It distinguishes from the sibling tool parliament_get_debate_contributions by clarifying this is a name-based text-body search, not a full debate retrieval.

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?

The description explicitly states when to use this tool ('USE THIS TOOL WHEN you have a member_id and want contributions where THAT member used a specific topic phrase verbatim'), requires calling parliament_find_member first, and names the alternative tool for retrieving all contributions regardless of vocabulary. This is explicit and actionable.

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.

TDQS

A4.4/5.0
Disambiguation5/5

Every tool has a clearly distinct purpose, with detailed descriptions that prevent ambiguity. Tools covering similar domains (e.g., multiple parliament search tools) are carefully differentiated by their search approach and input requirements.

Naming Consistency5/5

All tools follow a consistent snake_case verb_noun pattern (e.g., bills_get_bill, case_law_search, citations_resolve). Even generic tools adhere to this style. No mixing of conventions.

Tool Count4/5

With 35 tools, the count is on the higher side but appropriate for the wide-ranging domain of UK legal research. Each tool contributes to specific sub-domains (bills, case law, citations, committees, HMRC, legislation, parliament, votes) without unnecessary duplication.

Completeness5/5

The tool surface covers nearly all essential aspects of UK legal research: searching and retrieving bills, case law, and legislation; parsing and resolving citations; exploring committee evidence; accessing Hansard debates and member interests; and checking HMRC guidance and VAT rates. Gaps like full judgment text retrieval are mitigated by paragraph-level access and indexing.