Skip to main content
Glama
UK Parliament MCP Server

UK Parliament MCP Server

get_lords_next_prev_business_days

Find the previous and next House of Lords business days from a given date, so you can step between sitting days that have published business papers.

Instructions

Get the next and previous Lords days with business | next sitting day, previous sitting day, business papers | Use to step between Lords days that have published business | Returns the previous and next business dates. See also: get_lords_non_sitting_days, get_next_sitting_date.

    Args:
        initial_date: Date to search from (YYYY-MM-DD).

    Returns:
        PreviousBusinessDay and FutureBusinessDay.
    

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "initial_date": "<initial_date>"
    },
    "name": "get_lords_next_prev_business_days"
  }
}

Input Schema

NameRequiredDescriptionDefault
initial_dateYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.19.0

TDQS

A4.1/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral burden, and it does disclose that the tool returns previous and next business dates. It does not clarify edge cases such as whether the initial date must itself be a business day or what happens when no adjacent business day exists.

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 description is front-loaded with the core purpose and then supplies argument and return details without excessive length. There is some light redundancy between the opening summary and the Returns section, but it remains efficient.

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 low-complexity tool with one parameter and an output schema, the description covers purpose, usage context, parameter format, and return values. It still does not fully clarify how it differs from every adjacent date-related sibling, but it is largely complete.

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%, but the description compensates by documenting the sole required parameter as a search date with the YYYY-MM-DD format. This is clear enough for invocation, though it leaves minor ambiguity about inclusivity or time zones.

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 states a specific verb and resource: getting the next and previous Lords days that have published business. It distinguishes the result from generic sitting dates by emphasizing 'business' and names related siblings for contrast.

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?

It explicitly says to use this tool to step between Lords days that have published business, and it points to get_lords_non_sitting_days and get_next_sitting_date as related alternatives. However, it does not spell out the precise conditions under which each alternative should be chosen.

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