Skip to main content
Glama
UK Business Tools - Ledgerhall

UK Business Tools - Ledgerhall

Search Committee Evidence

law_committees_search_evidence
Read-onlyIdempotent

Retrieve UK parliamentary committee oral and written evidence by committee or inquiry ID, with date filters and pagination for targeted research.

Instructions

USE THIS TOOL WHEN retrieving committee evidence, especially for an identified inquiry.

Returns ONE PAGE of evidence (default 20) plus total, the source's count of matching items. evidence_type='both' lists all oral evidence first, then all written evidence, each newest-published first as the source orders it. Free-text titles are capped per max_title_chars; witness lists are capped at 10 per item. An organisation witness (no named individual) is rendered as ' ()'; a null entry means the source gave no name for that witness at all. For committees with many submissions, re-call with offset=offset+returned while has_more is true. For inquiry-specific research, first call committees_search_businesses and pass its exact committee_business_id; this filters at the authoritative source before pagination.

Source: UK Parliament Committees API oral and written evidence endpoints.

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": {
      "committee_id": "<committee_id>"
    },
    "name": "law_committees_search_evidence"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum evidence items to return. Default 20. For evidence_type='both' a page may hold only oral, only written, or the last oral items followed by the first written items.
offsetNoNumber of evidence items to skip before this page. Default 0. Re-call with offset=offset+returned while has_more is true. For evidence_type='both' this is a position in the combined sequence (all oral evidence, then all written evidence).
committee_idYesCommittee ID from committees_search_committees results.
published_toNoOptional inclusive source publication-date upper bound (YYYY-MM-DD). Applied upstream before pagination.
evidence_typeNoType of evidence to search.both
published_fromNoOptional inclusive source publication-date lower bound (YYYY-MM-DD). Applied upstream before pagination.
max_title_charsNoPer-item cap on the free-text title field. Default 300 prevents context blow-up from verbose inquiry titles. Raise to 1000+ only when you need the full title text.
committee_business_idNoExact official inquiry/business ID from committees_search_businesses. Applies the source filter before pagination; do not infer this from a title.

Output Schema

NameRequiredDescriptionDefault
limitYesMax evidence items requested for this page
totalYesEvidence items matching this query, from committees-api's totalResults (for evidence_type='both', the oral count plus the written count)
offsetYesNumber of evidence items skipped before this page
evidenceNoEvidence items in this page. Titles are capped per max_title_chars; witness lists are capped at 10 per item.
has_moreYesTrue if evidence exists beyond this page (offset + returned < total). Re-call with offset=offset+returned to fetch the next page.
returnedYesNumber of evidence items actually returned in this call
committee_idYesCommittee ID this page belongs to
evidence_typeYesEvidence type filter applied to this query

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed13 schema fields changedv0.3.0
    • addedInput schema / properties / committee_business_id
      Added value: +{
      +  "anyOf": [
      +    {
      +      "minimum": 1,
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Exact official inquiry/business ID from committees_search_businesses. Applies the source filter before pagination; do not infer this from a title."
      +}
    • addedInput schema / properties / published_from
      Added value: +{
      +  "anyOf": [
      +    {
      +      "format": "date",
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Optional inclusive source publication-date lower bound (YYYY-MM-DD). Applied upstream before pagination."
      +}
    • addedInput schema / properties / published_to
      Added value: +{
      +  "anyOf": [
      +    {
      +      "format": "date",
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Optional inclusive source publication-date upper bound (YYYY-MM-DD). Applied upstream before pagination."
      +}
    • addedOutput schema / properties / evidence / items / properties / committee_businesses
      Added value: +{
      +  "description": "Source inquiry/business identities associated with this evidence item",
      +  "items": {
      +    "description": "Source-supplied parliamentary committee business or inquiry identity.",
      +    "properties": {
      +      "close_date": {
      +        "anyOf": [
      +          {
      +            "format": "date",
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Source-supplied business closing date"
      +      },
      +      "id": {
      +        "description": "Official CommitteeBusiness ID; use as committee_business_id for exact evidence filtering",
      +        "type": "integer"
      +      },
      +      "is_inquiry": {
      +        "anyOf": [
      +          {
      +            "type": "boolean"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Source-supplied type flag; null when absent"
      +      },
      +      "latest_report": {
      +        "anyOf": [
      +          {
      +            "additionalProperties": true,
      +            "type": "object"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Source-supplied latest-report metadata, unmodified when present"
      +      },
      +      "open_date": {
      +        "anyOf": [
      +          {
      +            "format": "date",
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Source-supplied business opening date"
      +      },
      +      "status": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Source-supplied business status where present"
      +      },
      +      "title": {
      +        "description": "Source-supplied inquiry or business title",
      +        "type": "string"
      +      },
      +      "type": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Source-supplied business type name, e.g. Inquiry"
      +      }
      +    },
      +    "required": [
      +      "id",
      +      "title"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • changedOutput schema / properties / evidence / items / properties / date / description
      Previous value: -"Date the evidence was given or submitted"New value: +"Compatibility date: oral meeting_date when present, otherwise publication_date; use the source-specific fields for research"
    • addedOutput schema / properties / evidence / items / properties / document
      Added value: +{
      +  "anyOf": [
      +    {
      +      "properties": {
      +        "document_id": {
      +          "anyOf": [
      +            {
      +              "type": "integer"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "default": null,
      +          "description": "Source document ID"
      +        },
      +        "files": {
      +          "description": "Source-supplied document file metadata",
      +          "items": {
      +            "properties": {
      +              "file_name": {
      +                "anyOf": [
      +                  {
      +                    "type": "string"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ],
      +                "default": null,
      +                "description": "Source-supplied document filename"
      +              },
      +              "format": {
      +                "anyOf": [
      +                  {
      +                    "type": "string"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ],
      +                "default": null,
      +                "description": "Source-supplied document file format"
      +              },
      +              "size_bytes": {
      +                "anyOf": [
      +                  {
      +                    "type": "integer"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ],
      +                "default": null,
      +                "description": "Source-supplied document file size in bytes"
      +              },
      +              "url": {
      +                "anyOf": [
      +                  {
      +                    "type": "string"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ],
      +                "default": null,
      +                "description": "Source-supplied file URL; null means the source supplied no direct URL"
      +              }
      +            },
      +            "type": "object"
      +          },
      +          "type": "array"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Source document metadata; null when no document is supplied"
      +}
    • addedOutput schema / properties / evidence / items / properties / hc_number
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Source HC paper number where supplied"
      +}
    • addedOutput schema / properties / evidence / items / properties / internal_reference
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Source internal submission reference, usually for written evidence"
      +}
    • addedOutput schema / properties / evidence / items / properties / legacy_html_url
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Source legacy HTML URL where supplied"
      +}
    • addedOutput schema / properties / evidence / items / properties / legacy_pdf_url
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Source legacy PDF URL where supplied"
      +}
    • addedOutput schema / properties / evidence / items / properties / meeting_date
      Added value: +{
      +  "anyOf": [
      +    {
      +      "format": "date",
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Source oral-evidence meeting date; null for written evidence or absent source data"
      +}
    • addedOutput schema / properties / evidence / items / properties / publication_date
      Added value: +{
      +  "anyOf": [
      +    {
      +      "format": "date",
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Source publication date; null only when the upstream record omits it"
      +}
    • addedOutput schema / properties / evidence / items / properties / session
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Source parliamentary session description where supplied"
      +}
  2. First observedv0.2.1

TDQS

A4.7/5.0
Behavior4/5

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

Goes well beyond the readOnly/idempotent/non-destructive annotations: discloses ordering ('all oral evidence first, then all written'), that total is the source's count, the per-item caps on titles and witness lists, the '<Organisation> (<Role>)' rendering and null-witness convention, and that filters apply upstream before pagination. Missing only output-shape detail, which the output schema already covers.

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?

Front-loaded with the selection trigger, then pagination, then the inquiry-recipe, closing with provenance. Every sentence carries an actionable constraint; the dense detail is task-relevant rather than padding.

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?

An 8-parameter paginated search with an output schema: the description covers ordering, pagination recovery, filter timing, and field capping, so an agent can call it correctly on the first attempt without further probing.

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 coverage is 100%, so the baseline is 3, but the description adds real semantics the schema does not: why max_title_chars defaults to 300 (context blow-up), what offset means in the combined oral-then-written sequence, and that committee_business_id is an authoritative source filter. Some of this duplicates schema text, hence not a full 5.

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?

Opens with a specific verb+resource: 'USE THIS TOOL WHEN retrieving committee evidence', and names the source endpoints (oral and written evidence). The agent can immediately tell it apart from law_committees_search_committees (ID lookup), law_committees_get_committee (details), and law_committees_search_businesses (inquiry IDs), all of which are referenced as prerequisites rather than substitutes.

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?

Explicitly states when to use it ('especially for an identified inquiry'), prescribes the call sequence ('first call committees_search_businesses and pass its exact committee_business_id'), and gives the pagination loop ('re-call with offset=offset+returned while has_more is true'). The schema even adds a negative rule ('do not infer this from a title').

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