Skip to main content
Glama

uk-parliament-mcp-server

Search written questions

ukparl_search_questions
Read-onlyIdempotent

Search Westminster written questions and answer previews by text, exact UIN, asking or answering member, House, answering body, answer state and dates. An undated UIN returns candidates across sessions; narrow with tabling dates and retrieve mode=detail with a returned questionId for complete question and answer HTML, corrections and attachment links. A UIN is not a questionId and never determines House. Search includes all sessions and withdrawn questions. Follow collection cursors unchanged; use contentCursor for lossless oversized answers.

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_questions"
  }
}

Input Schema

NameRequiredDescriptionDefault
uinNoExact UIN lookup string, such as 36068 or HL1234; preserves leading zeros. Search only; combine with tabling dates to narrow reused UINs.
modeNoSearch previews or retrieve one complete question.search
houseNoCommons or Lords; search only.
limitNoSearch page size, default 10, cap 100; larger safe integers are capped. Omit in detail.
queryNoQuestion or answer content terms; search only.
cursorNoOpaque search continuation; repeat unchanged filters.
answeredNoTrue answered, false unanswered, omission either; search only.
memberIdNoAsking Members API ID; search only.
tabledToNoInclusive tabling end YYYY-MM-DD; search only.
answeredToNoInclusive answer end YYYY-MM-DD; search only.
questionIdNoPositive decimal Questions API ID required in detail; UIN is not this ID.
tabledFromNoInclusive tabling start YYYY-MM-DD; search only.
answeredFromNoInclusive answer start YYYY-MM-DD; search only.
contentCursorNoOpaque lossless content continuation for this same selection.
answeringBodyIdsNoUp to 20 answering-body IDs resolved through ukparl_lookup_reference; search only.
answeringMemberIdNoAnswering Members API ID; search only, independent of asking memberId.

Output Schema

NameRequiredDescriptionDefault
capNoSearch page-size ceiling; a larger limit is clamped to it.
modeNoSelected question operation.
pageNoWhole-question search continuation.
errorNoPresent when the call failed. Absent on success.
foundNoDetail lookup success; false requires guidance.
itemsNoSelected search page; never automatically hydrated.
shownNoActually emitted whole search results.
totalNoUpstream total when known.
noticeNoLicence, preview and workload notices.
recordNoComplete selected question including answer HTML and attachments metadata.
sourceNoActual selected official request; provenance for every returned question.
appliedNoEffective filters, explicit upstream scope and date semantics.
filtersNoComplete normalized selection filters.
deliveryNoFull selected payload, child outline, or JSON fragment.
guidanceNoSame-tool recovery for missing or empty selections.
identityNoStable selected-record identifiers retained during content retrieval.
retrievalNoSame-tool retrieval instruction.
truncatedNoFurther whole search results remain.
provenanceNoSelected response provenance retained during content retrieval; source notices remain in the reconstructed payload.
questionIdNoSelected Questions API ID.
contentPageNoLossless recursive content continuation.
collectionPageNoCollection continuation; reconstruct the outlined selected payload before following it.
requestedLimitNoOriginal page-size request when capped.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed32 schema fields changed
    • changedInput schema / properties / limit / description
      Previous value: -"Search page size, default 10, cap 20; larger safe integers are capped. Omit in detail."New value: +"Search page size, default 10, cap 100; larger safe integers are capped. Omit in detail."
    • addedOutput schema / $defs
      Added value: +{
      +  "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"
      +  },
      +  "QuestionMember": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "id": {
      +        "description": "Members API identifier.",
      +        "exclusiveMinimum": 0,
      +        "maximum": 9007199254740991,
      +        "type": "integer"
      +      },
      +      "listAs": {
      +        "description": "Source sorting name.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "memberFrom": {
      +        "description": "Constituency or member origin.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "name": {
      +        "description": "Member display name.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "party": {
      +        "description": "Recorded party name.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "partyAbbreviation": {
      +        "description": "Recorded party abbreviation.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "partyColour": {
      +        "description": "Recorded party colour.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "thumbnailUrl": {
      +        "description": "Published member thumbnail link.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      }
      +    },
      +    "type": "object"
      +  },
      +  "QuestionRecord": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "answerIsCorrection": {
      +        "description": "Source corrected-answer flag.",
      +        "type": [
      +          "boolean",
      +          "null"
      +        ]
      +      },
      +      "answerIsHolding": {
      +        "description": "Source holding-answer flag.",
      +        "type": [
      +          "boolean",
      +          "null"
      +        ]
      +      },
      +      "answerText": {
      +        "description": "Search answer preview or complete detail HTML, preserved verbatim.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "answeringBodyId": {
      +        "description": "Source answering-body reference ID.",
      +        "maximum": 9007199254740991,
      +        "minimum": -9007199254740991,
      +        "type": "integer"
      +      },
      +      "answeringBodyName": {
      +        "description": "Source answering-body name.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "answeringMember": {
      +        "anyOf": [
      +          {
      +            "$ref": "#/$defs/QuestionMember"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "Expanded answering member."
      +      },
      +      "answeringMemberId": {
      +        "anyOf": [
      +          {
      +            "maximum": 9007199254740991,
      +            "minimum": -9007199254740991,
      +            "type": "integer"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "Answering Members API ID."
      +      },
      +      "askingMember": {
      +        "anyOf": [
      +          {
      +            "$ref": "#/$defs/QuestionMember"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "Expanded asking member reference."
      +      },
      +      "askingMemberId": {
      +        "description": "Asking Members API ID.",
      +        "exclusiveMinimum": 0,
      +        "maximum": 9007199254740991,
      +        "type": "integer"
      +      },
      +      "attachmentCount": {
      +        "description": "Published attachment count; does not mean files were fetched.",
      +        "maximum": 9007199254740991,
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "attachments": {
      +        "anyOf": [
      +          {
      +            "items": {
      +              "additionalProperties": false,
      +              "description": "Published attachment metadata.",
      +              "properties": {
      +                "fileSizeBytes": {
      +                  "description": "Published size in bytes.",
      +                  "maximum": 9007199254740991,
      +                  "minimum": 0,
      +                  "type": "integer"
      +                },
      +                "fileType": {
      +                  "description": "Published file type.",
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                },
      +                "title": {
      +                  "description": "Attachment title.",
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                },
      +                "url": {
      +                  "description": "Published attachment link; not downloaded.",
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                }
      +              },
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "Every attachment supplied by the selected response."
      +      },
      +      "comparableAnswerText": {
      +        "description": "Source comparable answer content.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "correctingMember": {
      +        "anyOf": [
      +          {
      +            "$ref": "#/$defs/QuestionMember"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "Expanded correcting member."
      +      },
      +      "correctingMemberId": {
      +        "anyOf": [
      +          {
      +            "maximum": 9007199254740991,
      +            "minimum": -9007199254740991,
      +            "type": "integer"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "Correcting Members API ID."
      +      },
      +      "dateAnswerCorrected": {
      +        "description": "Correction date.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "dateAnswered": {
      +        "description": "Source answer date.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "dateForAnswer": {
      +        "description": "Source requested answer date.",
      +        "type": "string"
      +      },
      +      "dateHoldingAnswer": {
      +        "description": "Holding answer date.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "dateTabled": {
      +        "description": "Source tabling date.",
      +        "type": "string"
      +      },
      +      "detailLevel": {
      +        "description": "Summary previews or complete selected question.",
      +        "enum": [
      +          "summary",
      +          "complete"
      +        ],
      +        "type": "string"
      +      },
      +      "followUp": {
      +        "description": "Same-tool instruction for complete question and answer retrieval.",
      +        "type": "string"
      +      },
      +      "groupedQuestions": {
      +        "anyOf": [
      +          {
      +            "items": {
      +              "description": "Related question UIN.",
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "Source grouped UINs, not Questions API IDs."
      +      },
      +      "groupedQuestionsDates": {
      +        "anyOf": [
      +          {
      +            "items": {
      +              "additionalProperties": false,
      +              "description": "Date-qualified grouped question reference.",
      +              "properties": {
      +                "dateTabled": {
      +                  "description": "Related question tabling date.",
      +                  "type": "string"
      +                },
      +                "questionUin": {
      +                  "description": "Related question UIN.",
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                }
      +              },
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "Grouped question UIN and date relationships."
      +      },
      +      "heading": {
      +        "description": "Source question heading.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "house": {
      +        "description": "Source House.",
      +        "enum": [
      +          "Bicameral",
      +          "Commons",
      +          "Lords"
      +        ],
      +        "type": "string"
      +      },
      +      "id": {
      +        "description": "Questions API numeric record ID, distinct from UIN.",
      +        "exclusiveMinimum": 0,
      +        "maximum": 9007199254740991,
      +        "type": "integer"
      +      },
      +      "isNamedDay": {
      +        "description": "Source named-day flag.",
      +        "type": "boolean"
      +      },
      +      "isWithdrawn": {
      +        "description": "Source withdrawal flag.",
      +        "type": "boolean"
      +      },
      +      "links": {
      +        "anyOf": [
      +          {
      +            "items": {
      +              "additionalProperties": false,
      +              "description": "Source relationship link.",
      +              "properties": {
      +                "href": {
      +                  "description": "Source link target.",
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                },
      +                "method": {
      +                  "description": "Source link method.",
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                },
      +                "rel": {
      +                  "description": "Source relation.",
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                }
      +              },
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "Source relationship links."
      +      },
      +      "memberHasInterest": {
      +        "description": "Recorded interest flag; omitted means unknown.",
      +        "type": "boolean"
      +      },
      +      "originalAnswerText": {
      +        "description": "Original answer content, preserved verbatim.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "questionId": {
      +        "description": "Decimal Questions API ID for detail mode.",
      +        "type": "string"
      +      },
      +      "questionText": {
      +        "description": "Question text; search is a preview, detail is complete.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "uin": {
      +        "description": "Source UIN; search returns candidates across sessions, while questionId selects one record.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      }
      +    },
      +    "required": [
      +      "id",
      +      "questionId",
      +      "detailLevel"
      +    ],
      +    "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 / cap / description
      Previous value: -"Effective search page-size cap."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. `queue_full`: A selected Questions or Members origin request queue is full. `invalid_mode_arguments`: Required detail ID is missing or fields conflict with the selected mode. `invalid_date_range`: Calendar dates are invalid or reversed. `unknown_reference_id`: The complete answering-body reference excludes a supplied ID. `invalid_cursor`: Collection or content cursor is malformed or bound to another selection. `source_changed`: Selected content changed during retrieval. 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. `queue_full`: A selected Questions or Members origin request queue is full. `invalid_mode_arguments`: Required detail ID is missing or fields conflict with the selected mode. `invalid_date_range`: Calendar dates are invalid or reversed. `unknown_reference_id`: The complete answering-body reference excludes a supplied ID. `invalid_cursor`: Collection or content cursor is malformed or bound to another selection. `source_changed`: Selected content changed during retrieval. `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",
      -  "queue_full",
      -  "invalid_mode_arguments",
      -  "invalid_date_range",
      -  "unknown_reference_id",
      -  "invalid_cursor",
      -  "source_changed"
      -]New value: +[
      +  "http_invalid_params",
      +  "http_unauthorized",
      +  "http_forbidden",
      +  "http_conflict",
      +  "http_rate_limited",
      +  "http_invalid_request",
      +  "queue_full",
      +  "invalid_mode_arguments",
      +  "invalid_date_range",
      +  "unknown_reference_id",
      +  "invalid_cursor",
      +  "source_changed",
      +  "call_deadline_exceeded",
      +  "http_server_error"
      +]
    • addedOutput schema / properties / items / items / $ref
      Added value: +"#/$defs/QuestionRecord"
    • removedOutput schema / properties / items / items / additionalProperties
      Removed value: -false
    • removedOutput schema / properties / items / items / properties
      Removed value: -{
      -  "answerIsCorrection": {
      -    "description": "Source corrected-answer flag.",
      -    "type": [
      -      "boolean",
      -      "null"
      -    ]
      -  },
      -  "answerIsHolding": {
      -    "description": "Source holding-answer flag.",
      -    "type": [
      -      "boolean",
      -      "null"
      -    ]
      -  },
      -  "answerText": {
      -    "description": "Search answer preview or complete detail HTML, preserved verbatim.",
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "answeringBodyId": {
      -    "description": "Source answering-body reference ID.",
      -    "maximum": 9007199254740991,
      -    "minimum": -9007199254740991,
      -    "type": "integer"
      -  },
      -  "answeringBodyName": {
      -    "description": "Source answering-body name.",
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "answeringMember": {
      -    "anyOf": [
      -      {
      -        "additionalProperties": false,
      -        "properties": {
      -          "id": {
      -            "description": "Members API identifier.",
      -            "exclusiveMinimum": 0,
      -            "maximum": 9007199254740991,
      -            "type": "integer"
      -          },
      -          "listAs": {
      -            "description": "Source sorting name.",
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "memberFrom": {
      -            "description": "Constituency or member origin.",
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "name": {
      -            "description": "Member display name.",
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "party": {
      -            "description": "Recorded party name.",
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "partyAbbreviation": {
      -            "description": "Recorded party abbreviation.",
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "partyColour": {
      -            "description": "Recorded party colour.",
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "thumbnailUrl": {
      -            "description": "Published member thumbnail link.",
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          }
      -        },
      -        "type": "object"
      -      },
      -      {
      -        "type": "null"
      -      }
      -    ],
      -    "description": "Expanded answering member."
      -  },
      -  "answeringMemberId": {
      -    "anyOf": [
      -      {
      -        "maximum": 9007199254740991,
      -        "minimum": -9007199254740991,
      -        "type": "integer"
      -      },
      -      {
      -        "type": "null"
      -      }
      -    ],
      -    "description": "Answering Members API ID."
      -  },
      -  "askingMember": {
      -    "anyOf": [
      -      {
      -        "additionalProperties": false,
      -        "properties": {
      -          "id": {
      -            "description": "Members API identifier.",
      -            "exclusiveMinimum": 0,
      -            "maximum": 9007199254740991,
      -            "type": "integer"
      -          },
      -          "listAs": {
      -            "description": "Source sorting name.",
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "memberFrom": {
      -            "description": "Constituency or member origin.",
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "name": {
      -            "description": "Member display name.",
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "party": {
      -            "description": "Recorded party name.",
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "partyAbbreviation": {
      -            "description": "Recorded party abbreviation.",
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "partyColour": {
      -            "description": "Recorded party colour.",
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "thumbnailUrl": {
      -            "description": "Published member thumbnail link.",
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          }
      -        },
      -        "type": "object"
      -      },
      -      {
      -        "type": "null"
      -      }
      -    ],
      -    "description": "Expanded asking member reference."
      -  },
      -  "askingMemberId": {
      -    "description": "Asking Members API ID.",
      -    "exclusiveMinimum": 0,
      -    "maximum": 9007199254740991,
      -    "type": "integer"
      -  },
      -  "attachmentCount": {
      -    "description": "Published attachment count; does not mean files were fetched.",
      -    "maximum": 9007199254740991,
      -    "minimum": 0,
      -    "type": "integer"
      -  },
      -  "attachments": {
      -    "anyOf": [
      -      {
      -        "items": {
      -          "additionalProperties": false,
      -          "description": "Published attachment metadata.",
      -          "properties": {
      -            "fileSizeBytes": {
      -              "description": "Published size in bytes.",
      -              "maximum": 9007199254740991,
      -              "minimum": 0,
      -              "type": "integer"
      -            },
      -            "fileType": {
      -              "description": "Published file type.",
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "title": {
      -              "description": "Attachment title.",
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "url": {
      -              "description": "Published attachment link; not downloaded.",
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            }
      -          },
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      {
      -        "type": "null"
      -      }
      -    ],
      -    "description": "Every attachment supplied by the selected response."
      -  },
      -  "comparableAnswerText": {
      -    "description": "Source comparable answer content.",
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "correctingMember": {
      -    "anyOf": [
      -      {
      -        "additionalProperties": false,
      -        "properties": {
      -          "id": {
      -            "description": "Members API identifier.",
      -            "exclusiveMinimum": 0,
      -            "maximum": 9007199254740991,
      -            "type": "integer"
      -          },
      -          "listAs": {
      -            "description": "Source sorting name.",
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "memberFrom": {
      -            "description": "Constituency or member origin.",
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "name": {
      -            "description": "Member display name.",
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "party": {
      -            "description": "Recorded party name.",
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "partyAbbreviation": {
      -            "description": "Recorded party abbreviation.",
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "partyColour": {
      -            "description": "Recorded party colour.",
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "thumbnailUrl": {
      -            "description": "Published member thumbnail link.",
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          }
      -        },
      -        "type": "object"
      -      },
      -      {
      -        "type": "null"
      -      }
      -    ],
      -    "description": "Expanded correcting member."
      -  },
      -  "correctingMemberId": {
      -    "anyOf": [
      -      {
      -        "maximum": 9007199254740991,
      -        "minimum": -9007199254740991,
      -        "type": "integer"
      -      },
      -      {
      -        "type": "null"
      -      }
      -    ],
      -    "description": "Correcting Members API ID."
      -  },
      -  "dateAnswerCorrected": {
      -    "description": "Correction date.",
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "dateAnswered": {
      -    "description": "Source answer date.",
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "dateForAnswer": {
      -    "description": "Source requested answer date.",
      -    "type": "string"
      -  },
      -  "dateHoldingAnswer": {
      -    "description": "Holding answer date.",
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "dateTabled": {
      -    "description": "Source tabling date.",
      -    "type": "string"
      -  },
      -  "detailLevel": {
      -    "description": "Summary previews or complete selected question.",
      -    "enum": [
      -      "summary",
      -      "complete"
      -    ],
      -    "type": "string"
      -  },
      -  "followUp": {
      -    "description": "Same-tool instruction for complete question and answer retrieval.",
      -    "type": "string"
      -  },
      -  "groupedQuestions": {
      -    "anyOf": [
      -      {
      -        "items": {
      -          "description": "Related question UIN.",
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      {
      -        "type": "null"
      -      }
      -    ],
      -    "description": "Source grouped UINs, not Questions API IDs."
      -  },
      -  "groupedQuestionsDates": {
      -    "anyOf": [
      -      {
      -        "items": {
      -          "additionalProperties": false,
      -          "description": "Date-qualified grouped question reference.",
      -          "properties": {
      -            "dateTabled": {
      -              "description": "Related question tabling date.",
      -              "type": "string"
      -            },
      -            "questionUin": {
      -              "description": "Related question UIN.",
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            }
      -          },
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      {
      -        "type": "null"
      -      }
      -    ],
      -    "description": "Grouped question UIN and date relationships."
      -  },
      -  "heading": {
      -    "description": "Source question heading.",
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "house": {
      -    "description": "Source House.",
      -    "enum": [
      -      "Bicameral",
      -      "Commons",
      -      "Lords"
      -    ],
      -    "type": "string"
      -  },
      -  "id": {
      -    "description": "Questions API numeric record ID, distinct from UIN.",
      -    "exclusiveMinimum": 0,
      -    "maximum": 9007199254740991,
      -    "type": "integer"
      -  },
      -  "isNamedDay": {
      -    "description": "Source named-day flag.",
      -    "type": "boolean"
      -  },
      -  "isWithdrawn": {
      -    "description": "Source withdrawal flag.",
      -    "type": "boolean"
      -  },
      -  "links": {
      -    "anyOf": [
      -      {
      -        "items": {
      -          "additionalProperties": false,
      -          "description": "Source relationship link.",
      -          "properties": {
      -            "href": {
      -              "description": "Source link target.",
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "method": {
      -              "description": "Source link method.",
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "rel": {
      -              "description": "Source relation.",
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            }
      -          },
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      {
      -        "type": "null"
      -      }
      -    ],
      -    "description": "Source relationship links."
      -  },
      -  "memberHasInterest": {
      -    "description": "Recorded interest flag; omitted means unknown.",
      -    "type": "boolean"
      -  },
      -  "originalAnswerText": {
      -    "description": "Original answer content, preserved verbatim.",
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "questionId": {
      -    "description": "Decimal Questions API ID for detail mode.",
      -    "type": "string"
      -  },
      -  "questionText": {
      -    "description": "Question text; search is a preview, detail is complete.",
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "source": {
      -    "additionalProperties": false,
      -    "description": "Actual selected 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"
      -  },
      -  "uin": {
      -    "description": "Source UIN; search returns candidates across sessions, while questionId selects one record.",
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  }
      -}
    • removedOutput schema / properties / items / items / required
      Removed value: -[
      -  "id",
      -  "questionId",
      -  "source",
      -  "detailLevel"
      -]
    • removedOutput schema / properties / items / items / type
      Removed value: -"object"
    • 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 / record / $ref
      Added value: +"#/$defs/QuestionRecord"
    • removedOutput schema / properties / record / additionalProperties
      Removed value: -false
    • removedOutput schema / properties / record / properties
      Removed value: -{
      -  "answerIsCorrection": {
      -    "description": "Source corrected-answer flag.",
      -    "type": [
      -      "boolean",
      -      "null"
      -    ]
      -  },
      -  "answerIsHolding": {
      -    "description": "Source holding-answer flag.",
      -    "type": [
      -      "boolean",
      -      "null"
      -    ]
      -  },
      -  "answerText": {
      -    "description": "Search answer preview or complete detail HTML, preserved verbatim.",
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "answeringBodyId": {
      -    "description": "Source answering-body reference ID.",
      -    "maximum": 9007199254740991,
      -    "minimum": -9007199254740991,
      -    "type": "integer"
      -  },
      -  "answeringBodyName": {
      -    "description": "Source answering-body name.",
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "answeringMember": {
      -    "anyOf": [
      -      {
      -        "additionalProperties": false,
      -        "properties": {
      -          "id": {
      -            "description": "Members API identifier.",
      -            "exclusiveMinimum": 0,
      -            "maximum": 9007199254740991,
      -            "type": "integer"
      -          },
      -          "listAs": {
      -            "description": "Source sorting name.",
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "memberFrom": {
      -            "description": "Constituency or member origin.",
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "name": {
      -            "description": "Member display name.",
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "party": {
      -            "description": "Recorded party name.",
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "partyAbbreviation": {
      -            "description": "Recorded party abbreviation.",
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "partyColour": {
      -            "description": "Recorded party colour.",
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "thumbnailUrl": {
      -            "description": "Published member thumbnail link.",
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          }
      -        },
      -        "type": "object"
      -      },
      -      {
      -        "type": "null"
      -      }
      -    ],
      -    "description": "Expanded answering member."
      -  },
      -  "answeringMemberId": {
      -    "anyOf": [
      -      {
      -        "maximum": 9007199254740991,
      -        "minimum": -9007199254740991,
      -        "type": "integer"
      -      },
      -      {
      -        "type": "null"
      -      }
      -    ],
      -    "description": "Answering Members API ID."
      -  },
      -  "askingMember": {
      -    "anyOf": [
      -      {
      -        "additionalProperties": false,
      -        "properties": {
      -          "id": {
      -            "description": "Members API identifier.",
      -            "exclusiveMinimum": 0,
      -            "maximum": 9007199254740991,
      -            "type": "integer"
      -          },
      -          "listAs": {
      -            "description": "Source sorting name.",
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "memberFrom": {
      -            "description": "Constituency or member origin.",
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "name": {
      -            "description": "Member display name.",
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "party": {
      -            "description": "Recorded party name.",
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "partyAbbreviation": {
      -            "description": "Recorded party abbreviation.",
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "partyColour": {
      -            "description": "Recorded party colour.",
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "thumbnailUrl": {
      -            "description": "Published member thumbnail link.",
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          }
      -        },
      -        "type": "object"
      -      },
      -      {
      -        "type": "null"
      -      }
      -    ],
      -    "description": "Expanded asking member reference."
      -  },
      -  "askingMemberId": {
      -    "description": "Asking Members API ID.",
      -    "exclusiveMinimum": 0,
      -    "maximum": 9007199254740991,
      -    "type": "integer"
      -  },
      -  "attachmentCount": {
      -    "description": "Published attachment count; does not mean files were fetched.",
      -    "maximum": 9007199254740991,
      -    "minimum": 0,
      -    "type": "integer"
      -  },
      -  "attachments": {
      -    "anyOf": [
      -      {
      -        "items": {
      -          "additionalProperties": false,
      -          "description": "Published attachment metadata.",
      -          "properties": {
      -            "fileSizeBytes": {
      -              "description": "Published size in bytes.",
      -              "maximum": 9007199254740991,
      -              "minimum": 0,
      -              "type": "integer"
      -            },
      -            "fileType": {
      -              "description": "Published file type.",
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "title": {
      -              "description": "Attachment title.",
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "url": {
      -              "description": "Published attachment link; not downloaded.",
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            }
      -          },
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      {
      -        "type": "null"
      -      }
      -    ],
      -    "description": "Every attachment supplied by the selected response."
      -  },
      -  "comparableAnswerText": {
      -    "description": "Source comparable answer content.",
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "correctingMember": {
      -    "anyOf": [
      -      {
      -        "additionalProperties": false,
      -        "properties": {
      -          "id": {
      -            "description": "Members API identifier.",
      -            "exclusiveMinimum": 0,
      -            "maximum": 9007199254740991,
      -            "type": "integer"
      -          },
      -          "listAs": {
      -            "description": "Source sorting name.",
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "memberFrom": {
      -            "description": "Constituency or member origin.",
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "name": {
      -            "description": "Member display name.",
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "party": {
      -            "description": "Recorded party name.",
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "partyAbbreviation": {
      -            "description": "Recorded party abbreviation.",
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "partyColour": {
      -            "description": "Recorded party colour.",
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "thumbnailUrl": {
      -            "description": "Published member thumbnail link.",
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          }
      -        },
      -        "type": "object"
      -      },
      -      {
      -        "type": "null"
      -      }
      -    ],
      -    "description": "Expanded correcting member."
      -  },
      -  "correctingMemberId": {
      -    "anyOf": [
      -      {
      -        "maximum": 9007199254740991,
      -        "minimum": -9007199254740991,
      -        "type": "integer"
      -      },
      -      {
      -        "type": "null"
      -      }
      -    ],
      -    "description": "Correcting Members API ID."
      -  },
      -  "dateAnswerCorrected": {
      -    "description": "Correction date.",
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "dateAnswered": {
      -    "description": "Source answer date.",
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "dateForAnswer": {
      -    "description": "Source requested answer date.",
      -    "type": "string"
      -  },
      -  "dateHoldingAnswer": {
      -    "description": "Holding answer date.",
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "dateTabled": {
      -    "description": "Source tabling date.",
      -    "type": "string"
      -  },
      -  "detailLevel": {
      -    "description": "Summary previews or complete selected question.",
      -    "enum": [
      -      "summary",
      -      "complete"
      -    ],
      -    "type": "string"
      -  },
      -  "followUp": {
      -    "description": "Same-tool instruction for complete question and answer retrieval.",
      -    "type": "string"
      -  },
      -  "groupedQuestions": {
      -    "anyOf": [
      -      {
      -        "items": {
      -          "description": "Related question UIN.",
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      {
      -        "type": "null"
      -      }
      -    ],
      -    "description": "Source grouped UINs, not Questions API IDs."
      -  },
      -  "groupedQuestionsDates": {
      -    "anyOf": [
      -      {
      -        "items": {
      -          "additionalProperties": false,
      -          "description": "Date-qualified grouped question reference.",
      -          "properties": {
      -            "dateTabled": {
      -              "description": "Related question tabling date.",
      -              "type": "string"
      -            },
      -            "questionUin": {
      -              "description": "Related question UIN.",
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            }
      -          },
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      {
      -        "type": "null"
      -      }
      -    ],
      -    "description": "Grouped question UIN and date relationships."
      -  },
      -  "heading": {
      -    "description": "Source question heading.",
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "house": {
      -    "description": "Source House.",
      -    "enum": [
      -      "Bicameral",
      -      "Commons",
      -      "Lords"
      -    ],
      -    "type": "string"
      -  },
      -  "id": {
      -    "description": "Questions API numeric record ID, distinct from UIN.",
      -    "exclusiveMinimum": 0,
      -    "maximum": 9007199254740991,
      -    "type": "integer"
      -  },
      -  "isNamedDay": {
      -    "description": "Source named-day flag.",
      -    "type": "boolean"
      -  },
      -  "isWithdrawn": {
      -    "description": "Source withdrawal flag.",
      -    "type": "boolean"
      -  },
      -  "links": {
      -    "anyOf": [
      -      {
      -        "items": {
      -          "additionalProperties": false,
      -          "description": "Source relationship link.",
      -          "properties": {
      -            "href": {
      -              "description": "Source link target.",
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "method": {
      -              "description": "Source link method.",
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "rel": {
      -              "description": "Source relation.",
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            }
      -          },
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      {
      -        "type": "null"
      -      }
      -    ],
      -    "description": "Source relationship links."
      -  },
      -  "memberHasInterest": {
      -    "description": "Recorded interest flag; omitted means unknown.",
      -    "type": "boolean"
      -  },
      -  "originalAnswerText": {
      -    "description": "Original answer content, preserved verbatim.",
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "questionId": {
      -    "description": "Decimal Questions API ID for detail mode.",
      -    "type": "string"
      -  },
      -  "questionText": {
      -    "description": "Question text; search is a preview, detail is complete.",
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "source": {
      -    "additionalProperties": false,
      -    "description": "Actual selected 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"
      -  },
      -  "uin": {
      -    "description": "Source UIN; search returns candidates across sessions, while questionId selects one record.",
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  }
      -}
    • removedOutput schema / properties / record / required
      Removed value: -[
      -  "id",
      -  "questionId",
      -  "source",
      -  "detailLevel"
      -]
    • removedOutput schema / properties / record / type
      Removed value: -"object"
    • addedOutput schema / properties / source / $ref
      Added value: +"#/$defs/Source"
    • removedOutput schema / properties / source / additionalProperties
      Removed value: -false
    • changedOutput schema / properties / source / description
      Previous value: -"Actual selected official request."New value: +"Actual selected official request; provenance for every returned question."
    • removedOutput schema / properties / source / properties
      Removed value: -{
      -  "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"
      -  }
      -}
    • removedOutput schema / properties / source / required
      Removed value: -[
      -  "api",
      -  "url",
      -  "retrievedAt",
      -  "licenceUrl"
      -]
    • removedOutput schema / properties / source / type
      Removed value: -"object"
  2. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/openWorld, and the description adds genuinely non-obvious behavior: coverage includes all sessions including withdrawn questions, an undated UIN spans sessions, a UIN never determines House, and cursors must be replayed with unchanged filters. It does not cover permissions, rate limits, or result ordering, so it falls short of a 5.

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?

Four sentences, front-loaded with the capability and then the critical caveats (UIN vs questionId, cursor handling). Very dense but each sentence carries actionable information; slightly more compressed than ideal for a 16-parameter tool.

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?

Given 16 parameters, an output schema, and full schema descriptions, the description covers the search-to-detail workflow, session/withdrawn-question coverage, and cursor semantics. Only minor gaps remain, such as result ordering or pagination limits beyond the schema's cap.

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% and already documents each parameter, so the baseline is 3; the description earns more by explaining cross-parameter interaction the schema states only piecemeal: UIN pairs with tabling dates to disambiguate reused UINs, UIN is distinct from questionId, and collection cursors must be followed unchanged while contentCursor handles oversized answers.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/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 written questions and answer previews') and enumerates the filterable axes, so an agent knows exactly what domain this covers. It does not explicitly differentiate itself from the get_* or search_hansard siblings, but the resource specificity makes disambiguation easy.

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 concrete workflow guidance: an undated UIN returns cross-session candidates, so narrow with tabling dates; then switch to mode=detail with a returned questionId for full content. It stops short of naming when NOT to use this tool (e.g. debates via search_hansard) or hard exclusions, so not a 5.

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.