Skip to main content
Glama
UK Parliament MCP Server

UK Parliament MCP Server

search_lords_written_questions

Search House of Lords written questions by date range, member, status, or UIN to retrieve tabled, answered, or withdrawn questions and their details.

Instructions

Search House of Lords written questions | Lords questions, HL questions, peers' questions, tabled, answered, withdrawn | Use for Lords written questions as published in the Lords business system; always give a date range as unfiltered requests are slow | Returns questions with text, dates, status, member and answering body. See also: search_written_questions, get_lords_written_question.

    Args:
        member_id: Filter by the asking Lord's member id.
        uin: Filter by question UIN (e.g. '4578').
        status: Tabled, Answered or Withdrawn.
        tabled_start_date: Tabled on or after (YYYY-MM-DD).
        tabled_end_date: Tabled on or before (YYYY-MM-DD).
        order_by: DateTabledAsc or DateTabledDesc.
        skip: Number of results to skip.
        take: Number of results to return.

    Returns:
        Paged list of Lords written questions.
    

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "search_lords_written_questions"
  }
}

Input Schema

NameRequiredDescriptionDefault
uinNo
skipNo
takeNo
statusNo
order_byNo
member_idNo
tabled_end_dateNo
tabled_start_dateNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.19.0

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose the highest-value trait: unfiltered queries are slow, so a date range is effectively required. It also describes the result shape (text, dates, status, member, answering body) and that results are paged. It does not discuss auth, rate limits, or what an empty result set means, but the performance caveat is the behavior most likely to cause a bad call.

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 first paragraph is tightly front-loaded with purpose, synonyms, usage caveat and sibling pointers before any parameter detail. The boilerplate Args/Returns docstring format is slightly repetitive — the Returns line ('Paged list') restates what an existing output schema already covers — but nothing is genuinely wasted given 8 otherwise-undocumented parameters.

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 an 8-parameter search tool with no annotations and zero schema description coverage, the description supplies everything needed to call it correctly: purpose, disambiguation from siblings, the date-range performance constraint, every parameter's meaning and valid values, and a pointer to the single-record sibling. Return values are covered by an existing output schema, so the brief mention is sufficient.

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?

Schema description coverage is 0%, so the description must compensate entirely — and it does: it documents all 8 parameters with the semantics the schema omits, including the enumerated status values (Tabled, Answered, Withdrawn), the order_by values (DateTabledAsc/DateTabledDesc), date formatting (YYYY-MM-DD) and the inclusive bounds ('on or after' / 'on or before'), plus a UIN example and the skip/take paging contract.

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?

States a specific verb+resource ('Search House of Lords written questions') and immediately disambiguates with a keyword band ('Lords questions, HL questions, peers' questions, tabled, answered, withdrawn') and a scope clause limiting it to the Lords business system. The 'See also' line names the exact siblings (search_written_questions, get_lords_written_question) so an agent can tell the three apart without opening schemas.

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?

Gives a concrete operational rule — 'always give a date range as unfiltered requests are slow' — which is exactly the kind of guidance an agent needs before calling. It scopes usage to 'Lords written questions as published in the Lords business system'. However, it never states the inverse case explicitly (Commons questions belong to search_written_questions; fetching one question by id belongs to get_lords_written_question), leaving the alternative routing implied by the 'See also' list rather than declared.

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