Skip to main content
Glama

uk-parliament-mcp-server

Ukparl Search Bills

ukparl_search_bills
Read-onlyIdempotent

Search Westminster bill summaries by title, current or originating House, session, sponsoring member, department, reference stage, bill type or status, with optional official ordering. Use ukparl_lookup_reference for stage/type/department IDs and ukparl_get_bill for complete selected records. Department IDs are distinct from answering-body IDs. inAmendableStage=true restricts to amendable stages; false equals omission. No session or date scope is inferred. Follow collection cursors with the same filters; use contentCursor to reconstruct an oversized item.

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": "ukparl_search_bills"
  }
}

Input Schema

NameRequiredDescriptionDefault
houseNoCurrent Commons or Lords House.
limitNoRequested bills; positive safe integer, default 10, cap 100; larger values are capped with a notice.
queryNoBill title search text.
cursorNoOpaque collection continuation; preserve filters.
memberIdNoSponsoring member identifier.
stageIdsNoReference stages, distinct from bill-specific stage IDs.
sessionIdNoSession identifier discovered in bill records.
sortOrderNoOfficial ordering; omission preserves the source default.
isDefeatedNoFilter by defeated state, including false.
billTypeIdsNoReference bill types.
isWithdrawnNoFilter by withdrawn state, including false.
departmentIdNoMembers department ID from ukparl_lookup_reference topic=departments; distinct from answering-body IDs.
contentCursorNoOpaque same-selection lossless content continuation.
inAmendableStageNoTrue restricts to amendable stages; false equals omission and is not echoed in applied.
originatingHouseNoOriginating Commons or Lords House; omission includes all.

Output Schema

NameRequiredDescriptionDefault
capNoSearch page-size ceiling; a larger limit is clamped to it.
pageNoActual whole-item pagination.
errorNoPresent when the call failed. Absent on success.
itemsNoComplete source bill summaries on this page.
queryNoComplete normalized query text, also reconstructed through content continuation.
shownNoActual whole records emitted or selected for lossless reconstruction.
noticeNoLicence and empty/workload notices.
sourceNoExact official Bills search request provenance, including empty pages.
appliedNoNormalized filters; no implicit current-session scope.
deliveryNoFull selected payload, child outline, or JSON fragment.
identityNoStable selected-record identifiers retained during content retrieval.
retrievalNoSame-tool retrieval instruction.
truncatedNoFurther source matches remain after this selected page.
provenanceNoSelected response provenance retained during content retrieval; source notices remain in the reconstructed payload.
totalCountNoSource total matches.
contentPageNoLossless recursive content continuation.
collectionPageNoCollection continuation; reconstruct the outlined selected payload before following it.
requestedLimitNoCaller limit before clamping.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed23 schema fields changed
    • changedInput schema / properties / inAmendableStage / description
      Previous value: -"True restricts to amendable stages; false applies no restriction."New value: +"True restricts to amendable stages; false equals omission and is not echoed in applied."
    • changedInput schema / properties / limit / description
      Previous value: -"Requested bills; positive safe integer, default 10, effective cap 20."New value: +"Requested bills; positive safe integer, default 10, cap 100; larger values are capped with a notice."
    • addedOutput schema / $defs
      Added value: +{
      +  "BillStage": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "abbreviation": {
      +        "description": "Stage abbreviation.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "description": {
      +        "description": "Stage description.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "house": {
      +        "description": "Source House including Unassigned.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "id": {
      +        "description": "Bill-specific stage occurrence ID.",
      +        "pattern": "^[0-9]+$",
      +        "type": "string"
      +      },
      +      "sessionId": {
      +        "anyOf": [
      +          {
      +            "pattern": "^[0-9]+$",
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "Session ID."
      +      },
      +      "sortOrder": {
      +        "anyOf": [
      +          {
      +            "maximum": 9007199254740991,
      +            "minimum": -9007199254740991,
      +            "type": "integer"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "Source stage order."
      +      },
      +      "stageId": {
      +        "anyOf": [
      +          {
      +            "pattern": "^[0-9]+$",
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "Reference stage ID."
      +      },
      +      "stageSittings": {
      +        "anyOf": [
      +          {
      +            "items": {
      +              "$ref": "#/$defs/BillStageSitting"
      +            },
      +            "type": "array"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "All supplied stage sittings."
      +      }
      +    },
      +    "required": [
      +      "id"
      +    ],
      +    "type": "object"
      +  },
      +  "BillStageSitting": {
      +    "additionalProperties": false,
      +    "description": "One complete stage sitting.",
      +    "properties": {
      +      "billId": {
      +        "anyOf": [
      +          {
      +            "pattern": "^[0-9]+$",
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "Bill ID."
      +      },
      +      "billStageId": {
      +        "anyOf": [
      +          {
      +            "pattern": "^[0-9]+$",
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "Bill-specific stage ID."
      +      },
      +      "date": {
      +        "description": "Source sitting date.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "id": {
      +        "description": "Sitting ID.",
      +        "pattern": "^[0-9]+$",
      +        "type": "string"
      +      },
      +      "stageId": {
      +        "anyOf": [
      +          {
      +            "pattern": "^[0-9]+$",
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "Reference stage ID."
      +      }
      +    },
      +    "required": [
      +      "id"
      +    ],
      +    "type": "object"
      +  },
      +  "Page": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "hasMore": {
      +        "description": "Further collection items remain.",
      +        "type": "boolean"
      +      },
      +      "nextCursor": {
      +        "description": "Opaque collection continuation; repeat the same filters.",
      +        "type": "string"
      +      },
      +      "returned": {
      +        "description": "Whole items emitted on this page.",
      +        "maximum": 9007199254740991,
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "total": {
      +        "description": "Total supplied by the source or fully read local collection.",
      +        "maximum": 9007199254740991,
      +        "minimum": 0,
      +        "type": "integer"
      +      }
      +    },
      +    "required": [
      +      "returned",
      +      "hasMore"
      +    ],
      +    "type": "object"
      +  },
      +  "Source": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "api": {
      +        "description": "Official API namespace.",
      +        "enum": [
      +          "bills",
      +          "members",
      +          "commons_votes",
      +          "lords_votes",
      +          "hansard",
      +          "questions",
      +          "committees"
      +        ],
      +        "type": "string"
      +      },
      +      "licenceUrl": {
      +        "description": "Open Parliament Licence HTTPS URL; its exclusions still apply.",
      +        "type": "string"
      +      },
      +      "notices": {
      +        "description": "Source-specific notices.",
      +        "items": {
      +          "description": "Source notice preserved verbatim.",
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "retrievedAt": {
      +        "description": "Response retrieval time in ISO 8601 UTC.",
      +        "format": "date-time",
      +        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
      +        "type": "string"
      +      },
      +      "url": {
      +        "description": "Actual official HTTPS request URL.",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "api",
      +      "url",
      +      "retrievedAt",
      +      "licenceUrl"
      +    ],
      +    "type": "object"
      +  }
      +}
    • changedOutput schema / properties / applied / properties / inAmendableStage / description
      Previous value: -"Supplied amendable-stage selection; false is unrestricted."New value: +"Applied amendable-stage restriction; present only when true."
    • changedOutput schema / properties / cap / description
      Previous value: -"Effective per-call collection limit."New value: +"Search page-size ceiling; a larger limit is clamped to it."
    • addedOutput schema / properties / collectionPage / $ref
      Added value: +"#/$defs/Page"
    • removedOutput schema / properties / collectionPage / additionalProperties
      Removed value: -false
    • removedOutput schema / properties / collectionPage / properties
      Removed value: -{
      -  "hasMore": {
      -    "description": "Further collection items remain.",
      -    "type": "boolean"
      -  },
      -  "nextCursor": {
      -    "description": "Opaque collection continuation; repeat the same filters.",
      -    "type": "string"
      -  },
      -  "returned": {
      -    "description": "Whole items emitted on this page.",
      -    "maximum": 9007199254740991,
      -    "minimum": 0,
      -    "type": "integer"
      -  },
      -  "total": {
      -    "description": "Total supplied by the source or fully read local collection.",
      -    "maximum": 9007199254740991,
      -    "minimum": 0,
      -    "type": "integer"
      -  }
      -}
    • removedOutput schema / properties / collectionPage / required
      Removed value: -[
      -  "returned",
      -  "hasMore"
      -]
    • removedOutput schema / properties / collectionPage / type
      Removed value: -"object"
    • changedOutput schema / properties / error / properties / data / properties / reason / description
      Previous value: -"Machine-readable failure mode. Declared by this tool: `http_invalid_params`: The official API returned HTTP 400 for this request. `http_unauthorized`: The official public API returned HTTP 401. `http_forbidden`: The official public API returned HTTP 402 or 403. `http_conflict`: The official API returned HTTP 409, 423 or 424. `http_rate_limited`: The official API returned HTTP 429 after bounded retry handling. `http_invalid_request`: The official API returned an unexpected redirect or another unsupported HTTP client response. `invalid_cursor`: A collection or content cursor is malformed or belongs to another selection. `source_changed`: The selected payload changed during content retrieval. `unknown_reference_id`: A complete authoritative stage or bill type reference excludes a supplied ID. `queue_full`: The Bills origin request queue is full. Other values are possible when a failure originates below the handler."New value: +"Machine-readable failure mode. Declared by this tool: `http_invalid_params`: The official API returned HTTP 400 for this request. `http_unauthorized`: The official public API returned HTTP 401. `http_forbidden`: The official public API returned HTTP 402 or 403. `http_conflict`: The official API returned HTTP 409, 423 or 424. `http_rate_limited`: The official API returned HTTP 429 after bounded retry handling. `http_invalid_request`: The official API returned an unexpected redirect or another unsupported HTTP client response. `invalid_cursor`: A collection or content cursor is malformed or belongs to another selection. `source_changed`: The selected payload changed during content retrieval. `unknown_reference_id`: A complete authoritative stage or bill type reference excludes a supplied ID. `queue_full`: The Bills origin request queue is full. `call_deadline_exceeded`: The 45-second call deadline elapsed before the official API answered. `http_server_error`: The official API returned an HTTP 5xx server error. Other values are possible when a failure originates below the handler."
    • changedOutput schema / properties / error / properties / data / properties / reason / examples
      Previous value: -[
      -  "http_invalid_params",
      -  "http_unauthorized",
      -  "http_forbidden",
      -  "http_conflict",
      -  "http_rate_limited",
      -  "http_invalid_request",
      -  "invalid_cursor",
      -  "source_changed",
      -  "unknown_reference_id",
      -  "queue_full"
      -]New value: +[
      +  "http_invalid_params",
      +  "http_unauthorized",
      +  "http_forbidden",
      +  "http_conflict",
      +  "http_rate_limited",
      +  "http_invalid_request",
      +  "invalid_cursor",
      +  "source_changed",
      +  "unknown_reference_id",
      +  "queue_full",
      +  "call_deadline_exceeded",
      +  "http_server_error"
      +]
    • changedOutput schema / properties / items / items / description
      Previous value: -"One bill summary and its provenance."New value: +"One bill summary."
    • changedOutput schema / properties / items / items / properties / currentStage / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "abbreviation": {
      -        "description": "Stage abbreviation.",
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "description": {
      -        "description": "Stage description.",
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "house": {
      -        "description": "Source House including Unassigned.",
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "id": {
      -        "description": "Bill-specific stage occurrence ID.",
      -        "pattern": "^[0-9]+$",
      -        "type": "string"
      -      },
      -      "sessionId": {
      -        "anyOf": [
      -          {
      -            "pattern": "^[0-9]+$",
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "description": "Session ID."
      -      },
      -      "sortOrder": {
      -        "anyOf": [
      -          {
      -            "maximum": 9007199254740991,
      -            "minimum": -9007199254740991,
      -            "type": "integer"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "description": "Source stage order."
      -      },
      -      "stageId": {
      -        "anyOf": [
      -          {
      -            "pattern": "^[0-9]+$",
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "description": "Reference stage ID."
      -      },
      -      "stageSittings": {
      -        "anyOf": [
      -          {
      -            "items": {
      -              "additionalProperties": false,
      -              "description": "One complete stage sitting.",
      -              "properties": {
      -                "billId": {
      -                  "anyOf": [
      -                    {
      -                      "pattern": "^[0-9]+$",
      -                      "type": "string"
      -                    },
      -                    {
      -                      "type": "null"
      -                    }
      -                  ],
      -                  "description": "Bill ID."
      -                },
      -                "billStageId": {
      -                  "anyOf": [
      -                    {
      -                      "pattern": "^[0-9]+$",
      -                      "type": "string"
      -                    },
      -                    {
      -                      "type": "null"
      -                    }
      -                  ],
      -                  "description": "Bill-specific stage ID."
      -                },
      -                "date": {
      -                  "description": "Source sitting date.",
      -                  "type": [
      -                    "string",
      -                    "null"
      -                  ]
      -                },
      -                "id": {
      -                  "description": "Sitting ID.",
      -                  "pattern": "^[0-9]+$",
      -                  "type": "string"
      -                },
      -                "stageId": {
      -                  "anyOf": [
      -                    {
      -                      "pattern": "^[0-9]+$",
      -                      "type": "string"
      -                    },
      -                    {
      -                      "type": "null"
      -                    }
      -                  ],
      -                  "description": "Reference stage ID."
      -                }
      -              },
      -              "required": [
      -                "id"
      -              ],
      -              "type": "object"
      -            },
      -            "type": "array"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "description": "All supplied stage sittings."
      -      }
      -    },
      -    "required": [
      -      "id"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "$ref": "#/$defs/BillStage"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / properties / items / items / properties / source
      Removed value: -{
      -  "additionalProperties": false,
      -  "description": "Official request provenance.",
      -  "properties": {
      -    "api": {
      -      "description": "Official API namespace.",
      -      "enum": [
      -        "bills",
      -        "members",
      -        "commons_votes",
      -        "lords_votes",
      -        "hansard",
      -        "questions",
      -        "committees"
      -      ],
      -      "type": "string"
      -    },
      -    "licenceUrl": {
      -      "description": "Open Parliament Licence HTTPS URL; its exclusions still apply.",
      -      "type": "string"
      -    },
      -    "notices": {
      -      "description": "Source-specific notices.",
      -      "items": {
      -        "description": "Source notice preserved verbatim.",
      -        "type": "string"
      -      },
      -      "type": "array"
      -    },
      -    "retrievedAt": {
      -      "description": "Response retrieval time in ISO 8601 UTC.",
      -      "format": "date-time",
      -      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
      -      "type": "string"
      -    },
      -    "url": {
      -      "description": "Actual official HTTPS request URL.",
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "api",
      -    "url",
      -    "retrievedAt",
      -    "licenceUrl"
      -  ],
      -  "type": "object"
      -}
    • changedOutput schema / properties / items / items / required
      Previous value: -[
      -  "billId",
      -  "source",
      -  "detailLevel"
      -]New value: +[
      +  "billId",
      +  "detailLevel"
      +]
    • addedOutput schema / properties / page / $ref
      Added value: +"#/$defs/Page"
    • removedOutput schema / properties / page / additionalProperties
      Removed value: -false
    • removedOutput schema / properties / page / properties
      Removed value: -{
      -  "hasMore": {
      -    "description": "Further collection items remain.",
      -    "type": "boolean"
      -  },
      -  "nextCursor": {
      -    "description": "Opaque collection continuation; repeat the same filters.",
      -    "type": "string"
      -  },
      -  "returned": {
      -    "description": "Whole items emitted on this page.",
      -    "maximum": 9007199254740991,
      -    "minimum": 0,
      -    "type": "integer"
      -  },
      -  "total": {
      -    "description": "Total supplied by the source or fully read local collection.",
      -    "maximum": 9007199254740991,
      -    "minimum": 0,
      -    "type": "integer"
      -  }
      -}
    • removedOutput schema / properties / page / required
      Removed value: -[
      -  "returned",
      -  "hasMore"
      -]
    • removedOutput schema / properties / page / type
      Removed value: -"object"
    • changedOutput schema / properties / provenance / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "description": "Complete official request provenance.",
      -    "properties": {
      -      "api": {
      -        "description": "Official API namespace.",
      -        "enum": [
      -          "bills",
      -          "members",
      -          "commons_votes",
      -          "lords_votes",
      -          "hansard",
      -          "questions",
      -          "committees"
      -        ],
      -        "type": "string"
      -      },
      -      "licenceUrl": {
      -        "description": "Open Parliament Licence HTTPS URL; its exclusions still apply.",
      -        "type": "string"
      -      },
      -      "notices": {
      -        "description": "Source-specific notices.",
      -        "items": {
      -          "description": "Source notice preserved verbatim.",
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "retrievedAt": {
      -        "description": "Response retrieval time in ISO 8601 UTC.",
      -        "format": "date-time",
      -        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
      -        "type": "string"
      -      },
      -      "url": {
      -        "description": "Actual official HTTPS request URL.",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "api",
      -      "url",
      -      "retrievedAt",
      -      "licenceUrl"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Compact provenance with a pointer to the complete request source.",
      -    "properties": {
      -      "api": {
      -        "description": "Official API namespace.",
      -        "enum": [
      -          "bills",
      -          "members",
      -          "commons_votes",
      -          "lords_votes",
      -          "hansard",
      -          "questions",
      -          "committees"
      -        ],
      -        "type": "string"
      -      },
      -      "contentPath": {
      -        "description": "RFC 6901 pointer to full source provenance in the reconstructable payload.",
      -        "type": "string"
      -      },
      -      "licenceUrl": {
      -        "description": "Open Parliament Licence URL.",
      -        "type": "string"
      -      },
      -      "origin": {
      -        "description": "Official origin only; the full request URL is at contentPath.",
      -        "type": "string"
      -      },
      -      "retrievedAt": {
      -        "description": "Response retrieval time.",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "api",
      -      "origin",
      -      "retrievedAt",
      -      "licenceUrl",
      -      "contentPath"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "$ref": "#/$defs/Source",
      +    "description": "Complete official request provenance."
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Compact provenance with a pointer to the complete request source.",
      +    "properties": {
      +      "api": {
      +        "description": "Official API namespace.",
      +        "enum": [
      +          "bills",
      +          "members",
      +          "commons_votes",
      +          "lords_votes",
      +          "hansard",
      +          "questions",
      +          "committees"
      +        ],
      +        "type": "string"
      +      },
      +      "contentPath": {
      +        "description": "RFC 6901 pointer to full source provenance in the reconstructable payload.",
      +        "type": "string"
      +      },
      +      "licenceUrl": {
      +        "description": "Open Parliament Licence URL.",
      +        "type": "string"
      +      },
      +      "origin": {
      +        "description": "Official origin only; the full request URL is at contentPath.",
      +        "type": "string"
      +      },
      +      "retrievedAt": {
      +        "description": "Response retrieval time.",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "api",
      +      "origin",
      +      "retrievedAt",
      +      "licenceUrl",
      +      "contentPath"
      +    ],
      +    "type": "object"
      +  }
      +]
    • addedOutput schema / properties / source
      Added value: +{
      +  "$ref": "#/$defs/Source",
      +  "description": "Exact official Bills search request provenance, including empty pages."
      +}
  2. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Beyond the readOnly/openWorld/idempotent annotations, the description discloses non-obvious behaviors: unfiltered scope is unbounded by session or date, cursors must be replayed with identical filters, and contentCursor exists as a lossless repair path for oversized items. It stops short of describing result shape or what the applied-filters echo contains, so it is strong but not exhaustive.

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?

Front-loaded with purpose and filters, then alternatives, then edge-case semantics — a sensible ordering with almost no filler. A few fragments (the answering-body ID distinction, the amendable-stage note) restate schema text, so it is dense rather than perfectly economical.

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 15-parameter tool with an output schema and rich annotations, the description covers scope, alternatives, pagination, and the trickiest parameter semantics. What remains thin is the boundary between returned summaries and full records, which is only implied by the pointer to ukparl_get_bill.

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 already 100%, so the baseline is 3; the description earns an extra point by adding cross-parameter meaning the schema cannot express well, notably that department IDs differ from answering-body IDs, that inAmendableStage=false is equivalent to omission, and that cursor continuations must preserve the original filters.

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 and resource ("Search Westminster bill summaries") and enumerates the filterable facets (title, House, session, member, department, stage, type, status, ordering). It also names the two sibling tools it is not (ukparl_lookup_reference, ukparl_get_bill), so an agent can route without opening any schema.

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 routes two adjacent needs: reference IDs go to ukparl_lookup_reference, full selected records go to ukparl_get_bill. It also sets a scope expectation ("No session or date scope is inferred") and prescribes cursor discipline ("Follow collection cursors with the same filters"), leaving little to inference.

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.