changedInput schema / properties / memberId / description
Previous value: -"Search only: numeric memberId from riksdag_search_members, retaining leading zeros."New value: +"Search only: numeric memberId from riksdag_search_members, keeping leading zeros."
addedInput schema / properties / memberId / pattern
Added value: +"^\\s*(?:(?:\\d+)\\s*)?$"
addedInput schema / properties / relatedDocumentId
Added value: +{
+ "description": "Search only: report (bet) or interpellation (ip) document ID; returns the speeches the source links to it, case-insensitively, including joint debates linking several documents. A resumed debate’s later segments can lack the link; check headingContains with the report title.",
+ "pattern": "^\\s*(?:(?:[A-Za-z\\u00C5\\u00C4\\u00D6\\u00E5\\u00E4\\u00F6\\u212A\\u212B\\u017F][A-Za-z\\u00C5\\u00C4\\u00D6\\u00E5\\u00E4\\u00F6\\u212A\\u212B\\u017F0-9\\u0308\\u030A]{3,}|[A-Za-z\\u212A][A-Za-z\\u212A0-9]19\\d{4}-[1-9]\\d*|[Ss][Ff][Ss]-[Nn]?[1-9]\\d{3}-[1-9]\\d*|(?:[Ss][Ff][Ss]\\s+)?[Nn]?[1-9]\\d{3}:[1-9]\\d*)\\s*)?$",
+ "type": "string"
+}
addedInput schema / properties / session / pattern
Added value: +"^\\s*(?:(?:[1-9]\\d{3}(?:\\/(?:\\d{2}|[1-9]\\d{3}))?)\\s*)?$"
addedInput schema / properties / speechId / pattern
Added value: +"^\\s*(?:(?:[A-Za-z][A-Za-z0-9]09\\d+-[1-9]\\d*)\\s*)?$"
changedInput schema / properties / textCount / description
Previous value: -"Search only: maximum speeches to request text for, default 1 and applied maximum 5; 0 returns metadata."New value: +"Search only: speeches to hydrate with text, default 1, maximum 5; 0 for metadata only."
changedInput schema / properties / textLength / description
Previous value: -"Get only: requested Unicode code points; defaults start at 8000 and fit the complete response; explicit lengths are honored."New value: +"Get only: Unicode code points per text page, default 8000."
addedOutput schema / $defs
Added value: +{
+ "RiksdagSpeechItem": {
+ "additionalProperties": false,
+ "description": "Speech metadata and explicit text retrieval state.",
+ "properties": {
+ "activity": {
+ "description": "Published chamber activity.",
+ "type": "string"
+ },
+ "date": {
+ "description": "Published date or date-time with source precision.",
+ "type": "string"
+ },
+ "heading": {
+ "description": "Published debate heading.",
+ "type": "string"
+ },
+ "memberId": {
+ "description": "Published member IID, including leading zeros.",
+ "type": "string"
+ },
+ "nextTextCall": {
+ "additionalProperties": false,
+ "description": "Get call for deferred or remaining body text.",
+ "properties": {
+ "args": {
+ "additionalProperties": {},
+ "description": "Complete normalized arguments for riksdag_search_speeches, valid against its input schema; pass back unchanged.",
+ "properties": {},
+ "type": "object"
+ },
+ "toolName": {
+ "const": "riksdag_search_speeches",
+ "description": "Tool to call next.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "toolName",
+ "args"
+ ],
+ "type": "object"
+ },
+ "party": {
+ "description": "Published party code.",
+ "type": "string"
+ },
+ "protocolDocumentId": {
+ "description": "Document ID of the chamber protocol.",
+ "type": "string"
+ },
+ "protocolTitle": {
+ "description": "Published protocol title.",
+ "type": "string"
+ },
+ "protocolUrl": {
+ "description": "Published protocol link and speech anchor.",
+ "type": "string"
+ },
+ "relatedDocumentId": {
+ "description": "Source-linked related document ID in canonical form, or a \", \"-separated list for joint debates.",
+ "type": "string"
+ },
+ "reply": {
+ "description": "Whether the source explicitly marks this as a reply.",
+ "type": "boolean"
+ },
+ "session": {
+ "description": "Published parliamentary session.",
+ "type": "string"
+ },
+ "sourceHtmlUrl": {
+ "description": "Published speech HTML link.",
+ "type": "string"
+ },
+ "sourceSpeechId": {
+ "description": "Source speech UUID, distinct from the retrieval ID.",
+ "type": "string"
+ },
+ "sourceUrl": {
+ "description": "Fixed-origin speech detail source link.",
+ "type": "string"
+ },
+ "speaker": {
+ "description": "Published speaker name and title.",
+ "type": "string"
+ },
+ "speechId": {
+ "description": "Retrieval ID for get mode; protocol document ID and speech number.",
+ "type": "string"
+ },
+ "subheading": {
+ "description": "Published debate subheading.",
+ "type": "string"
+ },
+ "text": {
+ "description": "Canonical Markdown body page, code-point exact.",
+ "type": "string"
+ },
+ "textFailure": {
+ "additionalProperties": false,
+ "description": "Explicit transient detail failure; never an empty-body assertion.",
+ "properties": {
+ "code": {
+ "description": "Transient upstream error code.",
+ "type": "number"
+ },
+ "reason": {
+ "description": "Stable transient failure reason.",
+ "type": "string"
+ },
+ "recovery": {
+ "description": "How to retry this speech detail.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "reason",
+ "recovery"
+ ],
+ "type": "object"
+ },
+ "textHasMore": {
+ "description": "Whether canonical body text remains.",
+ "type": "boolean"
+ },
+ "textOffset": {
+ "description": "Applied code-point offset.",
+ "type": "number"
+ },
+ "textReturnedLength": {
+ "description": "Code points returned in this page.",
+ "type": "number"
+ },
+ "textRevision": {
+ "description": "Revision of the normalized detail record and canonical body.",
+ "type": "string"
+ },
+ "textState": {
+ "description": "Whether text is included, deferred, unpublished or failed to load.",
+ "enum": [
+ "included",
+ "not_requested",
+ "unavailable",
+ "failed"
+ ],
+ "type": "string"
+ },
+ "textTotalLength": {
+ "description": "Total canonical body length, code points.",
+ "type": "number"
+ }
+ },
+ "required": [
+ "speechId",
+ "protocolDocumentId",
+ "sourceUrl",
+ "textState"
+ ],
+ "type": "object"
+ }
+}
changedOutput schema / properties / candidateCount / description
Previous value: -"Complete validated upstream candidate count."New value: +"Validated upstream candidate count."
changedOutput schema / properties / effectiveQuery / description
Previous value: -"Deterministic normalized input, applied defaults and local filters."New value: +"Normalized input, defaults and local filters."
changedOutput schema / properties / error / properties / data / properties / reason / description
Previous value: -"Machine-readable failure mode. Declared by this tool: `invalid_filter`: Unknown code, conflicting mode fields or malformed identifier. `revision_changed`: Continuation revision no longer matches. `upstream_identity_mismatch`: Detail identity/filter rows contradict required identity. `upstream_schema_invalid`: Present payload violates wire contract. `upstream_unavailable`: Network/5xx or HTML error page after retries. `upstream_queue_full`: Process upstream queue is full. `candidate_limit_reached`: Complete-list safety boundary reached. Other values are possible when a failure originates below the handler."New value: +"Machine-readable failure mode. Declared by this tool: `invalid_filter`: Unknown party code, nonconsecutive session, punctuation-only headingContains or conflicting mode fields. `revision_changed`: Revision no longer matches. `upstream_identity_mismatch`: Source rows contradict the required identity. `upstream_schema_invalid`: Payload violates the wire contract. `upstream_unavailable`: Source unavailable after retries. `upstream_queue_full`: Upstream queue is full. `candidate_limit_reached`: Complete-list safety limit reached. Other values are possible when a failure originates below the handler."
addedOutput schema / properties / item / $ref
Added value: +"#/$defs/RiksdagSpeechItem"
removedOutput schema / properties / item / additionalProperties
Removed value: -false
removedOutput schema / properties / item / properties
Removed value: -{
- "activity": {
- "description": "Published chamber activity.",
- "type": "string"
- },
- "date": {
- "description": "Published date or date-time with source precision.",
- "type": "string"
- },
- "heading": {
- "description": "Published debate heading.",
- "type": "string"
- },
- "memberId": {
- "description": "Published member IID, including leading zeros.",
- "type": "string"
- },
- "nextTextCall": {
- "additionalProperties": false,
- "description": "Complete get call to retrieve deferred or remaining body text.",
- "properties": {
- "args": {
- "additionalProperties": false,
- "description": "Complete get-mode continuation arguments.",
- "properties": {
- "mode": {
- "const": "get",
- "description": "Read a single speech.",
- "type": "string"
- },
- "revision": {
- "description": "Complete detail record revision.",
- "type": "string"
- },
- "speechId": {
- "description": "Exact speech retrieval ID.",
- "type": "string"
- },
- "textLength": {
- "description": "Explicit text-page size when supplied.",
- "type": "number"
- },
- "textOffset": {
- "description": "Next Unicode code-point offset.",
- "type": "number"
- }
- },
- "required": [
- "mode",
- "speechId"
- ],
- "type": "object"
- },
- "toolName": {
- "const": "riksdag_search_speeches",
- "description": "Tool to call for speech text.",
- "type": "string"
- }
- },
- "required": [
- "toolName",
- "args"
- ],
- "type": "object"
- },
- "party": {
- "description": "Published party code.",
- "type": "string"
- },
- "protocolDocumentId": {
- "description": "Document ID of the chamber protocol.",
- "type": "string"
- },
- "protocolTitle": {
- "description": "Published protocol title.",
- "type": "string"
- },
- "protocolUrl": {
- "description": "Published protocol link and speech anchor.",
- "type": "string"
- },
- "relatedDocumentId": {
- "description": "Source-linked related document ID.",
- "type": "string"
- },
- "reply": {
- "description": "Whether the source explicitly marks this as a reply.",
- "type": "boolean"
- },
- "session": {
- "description": "Published parliamentary session.",
- "type": "string"
- },
- "sourceHtmlUrl": {
- "description": "Published speech HTML link.",
- "type": "string"
- },
- "sourceSpeechId": {
- "description": "Source speech UUID, distinct from the retrieval ID.",
- "type": "string"
- },
- "sourceUrl": {
- "description": "Fixed-origin speech detail source link.",
- "type": "string"
- },
- "speaker": {
- "description": "Published speaker name and title.",
- "type": "string"
- },
- "speechId": {
- "description": "Retrieval ID for get mode; protocol document ID and speech number.",
- "type": "string"
- },
- "subheading": {
- "description": "Published debate subheading.",
- "type": "string"
- },
- "text": {
- "description": "Canonical Markdown body page, preserving Unicode code points.",
- "type": "string"
- },
- "textFailure": {
- "additionalProperties": false,
- "description": "Explicit transient detail failure; never an empty-body assertion.",
- "properties": {
- "code": {
- "description": "Classified transient upstream error code.",
- "type": "number"
- },
- "reason": {
- "description": "Stable transient failure reason.",
- "type": "string"
- },
- "recovery": {
- "description": "How to retry this speech detail.",
- "type": "string"
- }
- },
- "required": [
- "code",
- "reason",
- "recovery"
- ],
- "type": "object"
- },
- "textHasMore": {
- "description": "Whether canonical body text remains.",
- "type": "boolean"
- },
- "textOffset": {
- "description": "Applied Unicode code-point offset.",
- "type": "number"
- },
- "textReturnedLength": {
- "description": "Code points returned in this page.",
- "type": "number"
- },
- "textRevision": {
- "description": "Complete normalized detail record and canonical body revision.",
- "type": "string"
- },
- "textState": {
- "description": "Whether text is included, deferred, unpublished or failed to load.",
- "enum": [
- "included",
- "not_requested",
- "unavailable",
- "failed"
- ],
- "type": "string"
- },
- "textTotalLength": {
- "description": "Complete canonical body length in Unicode code points.",
- "type": "number"
- }
-}
removedOutput schema / properties / item / required
Removed value: -[
- "speechId",
- "protocolDocumentId",
- "sourceUrl",
- "textState"
-]
removedOutput schema / properties / item / type
Removed value: -"object"
changedOutput schema / properties / items / description
Previous value: -"Search mode: local speech page after heading filtering."New value: +"Search mode: speech page after local heading and related-document filters."
addedOutput schema / properties / items / items / $ref
Added value: +"#/$defs/RiksdagSpeechItem"
removedOutput schema / properties / items / items / additionalProperties
Removed value: -false
removedOutput schema / properties / items / items / description
Removed value: -"Speech metadata and explicit text retrieval state."
removedOutput schema / properties / items / items / properties
Removed value: -{
- "activity": {
- "description": "Published chamber activity.",
- "type": "string"
- },
- "date": {
- "description": "Published date or date-time with source precision.",
- "type": "string"
- },
- "heading": {
- "description": "Published debate heading.",
- "type": "string"
- },
- "memberId": {
- "description": "Published member IID, including leading zeros.",
- "type": "string"
- },
- "nextTextCall": {
- "additionalProperties": false,
- "description": "Complete get call to retrieve deferred or remaining body text.",
- "properties": {
- "args": {
- "additionalProperties": false,
- "description": "Complete get-mode continuation arguments.",
- "properties": {
- "mode": {
- "const": "get",
- "description": "Read a single speech.",
- "type": "string"
- },
- "revision": {
- "description": "Complete detail record revision.",
- "type": "string"
- },
- "speechId": {
- "description": "Exact speech retrieval ID.",
- "type": "string"
- },
- "textLength": {
- "description": "Explicit text-page size when supplied.",
- "type": "number"
- },
- "textOffset": {
- "description": "Next Unicode code-point offset.",
- "type": "number"
- }
- },
- "required": [
- "mode",
- "speechId"
- ],
- "type": "object"
- },
- "toolName": {
- "const": "riksdag_search_speeches",
- "description": "Tool to call for speech text.",
- "type": "string"
- }
- },
- "required": [
- "toolName",
- "args"
- ],
- "type": "object"
- },
- "party": {
- "description": "Published party code.",
- "type": "string"
- },
- "protocolDocumentId": {
- "description": "Document ID of the chamber protocol.",
- "type": "string"
- },
- "protocolTitle": {
- "description": "Published protocol title.",
- "type": "string"
- },
- "protocolUrl": {
- "description": "Published protocol link and speech anchor.",
- "type": "string"
- },
- "relatedDocumentId": {
- "description": "Source-linked related document ID.",
- "type": "string"
- },
- "reply": {
- "description": "Whether the source explicitly marks this as a reply.",
- "type": "boolean"
- },
- "session": {
- "description": "Published parliamentary session.",
- "type": "string"
- },
- "sourceHtmlUrl": {
- "description": "Published speech HTML link.",
- "type": "string"
- },
- "sourceSpeechId": {
- "description": "Source speech UUID, distinct from the retrieval ID.",
- "type": "string"
- },
- "sourceUrl": {
- "description": "Fixed-origin speech detail source link.",
- "type": "string"
- },
- "speaker": {
- "description": "Published speaker name and title.",
- "type": "string"
- },
- "speechId": {
- "description": "Retrieval ID for get mode; protocol document ID and speech number.",
- "type": "string"
- },
- "subheading": {
- "description": "Published debate subheading.",
- "type": "string"
- },
- "text": {
- "description": "Canonical Markdown body page, preserving Unicode code points.",
- "type": "string"
- },
- "textFailure": {
- "additionalProperties": false,
- "description": "Explicit transient detail failure; never an empty-body assertion.",
- "properties": {
- "code": {
- "description": "Classified transient upstream error code.",
- "type": "number"
- },
- "reason": {
- "description": "Stable transient failure reason.",
- "type": "string"
- },
- "recovery": {
- "description": "How to retry this speech detail.",
- "type": "string"
- }
- },
- "required": [
- "code",
- "reason",
- "recovery"
- ],
- "type": "object"
- },
- "textHasMore": {
- "description": "Whether canonical body text remains.",
- "type": "boolean"
- },
- "textOffset": {
- "description": "Applied Unicode code-point offset.",
- "type": "number"
- },
- "textReturnedLength": {
- "description": "Code points returned in this page.",
- "type": "number"
- },
- "textRevision": {
- "description": "Complete normalized detail record and canonical body revision.",
- "type": "string"
- },
- "textState": {
- "description": "Whether text is included, deferred, unpublished or failed to load.",
- "enum": [
- "included",
- "not_requested",
- "unavailable",
- "failed"
- ],
- "type": "string"
- },
- "textTotalLength": {
- "description": "Complete canonical body length in Unicode code points.",
- "type": "number"
- }
-}
removedOutput schema / properties / items / items / required
Removed value: -[
- "speechId",
- "protocolDocumentId",
- "sourceUrl",
- "textState"
-]
removedOutput schema / properties / items / items / type
Removed value: -"object"
changedOutput schema / properties / limit / description
Previous value: -"Applied search page size after clamp and response fitting."New value: +"Applied search page size after clamp."
changedOutput schema / properties / nextCall / description
Previous value: -"Complete next local search-page call."New value: +"Next local search-page call."
changedOutput schema / properties / nextCall / properties / args / additionalProperties
Previous value: -falseNew value: +{}
changedOutput schema / properties / nextCall / properties / args / description
Previous value: -"Complete normalized next-page arguments."New value: +"Complete normalized arguments for riksdag_search_speeches, valid against its input schema; pass back unchanged."
removedOutput schema / properties / nextCall / properties / args / properties / headingContains
Removed value: -{
- "description": "Search only: all-token local heading and subheading filter, ignoring case and diacritics; never body search.",
- "type": "string"
-}
removedOutput schema / properties / nextCall / properties / args / properties / limit
Removed value: -{
- "description": "Search only: requested rows, default 5 and applied maximum 20.",
- "maximum": 9007199254740991,
- "minimum": 1,
- "type": "integer"
-}
removedOutput schema / properties / nextCall / properties / args / properties / memberId
Removed value: -{
- "description": "Search only: numeric memberId from riksdag_search_members, retaining leading zeros.",
- "type": "string"
-}
removedOutput schema / properties / nextCall / properties / args / properties / mode
Removed value: -{
- "description": "Search by default; get reads one retrieval speechId.",
- "enum": [
- "search",
- "get"
- ],
- "type": "string"
-}
removedOutput schema / properties / nextCall / properties / args / properties / offset
Removed value: -{
- "description": "Search only: local row offset, default 0.",
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
-}
removedOutput schema / properties / nextCall / properties / args / properties / party
Removed value: -{
- "description": "Search only: official party code or exact reference label.",
- "type": "string"
-}
removedOutput schema / properties / nextCall / properties / args / properties / revision
Removed value: -{
- "description": "Search candidate revision or get textRevision copied from the preceding page.",
- "type": "string"
-}
removedOutput schema / properties / nextCall / properties / args / properties / session
Removed value: -{
- "description": "Required in search mode; parliamentary session such as 2024/25.",
- "type": "string"
-}
removedOutput schema / properties / nextCall / properties / args / properties / speechId
Removed value: -{
- "description": "Required in get mode: retrieval ID copied from a search item, never the source UUID.",
- "type": "string"
-}
removedOutput schema / properties / nextCall / properties / args / properties / speechType
Removed value: -{
- "description": "Search only: all by default; speech excludes replies.",
- "enum": [
- "all",
- "speech"
- ],
- "type": "string"
-}
removedOutput schema / properties / nextCall / properties / args / properties / textCount
Removed value: -{
- "description": "Search only: maximum speeches to request text for, default 1 and applied maximum 5; 0 returns metadata.",
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
-}
removedOutput schema / properties / nextCall / properties / args / properties / textLength
Removed value: -{
- "description": "Get only: requested Unicode code points; defaults start at 8000 and fit the complete response; explicit lengths are honored.",
- "maximum": 9007199254740991,
- "minimum": 1,
- "type": "integer"
-}
removedOutput schema / properties / nextCall / properties / args / properties / textOffset
Removed value: -{
- "description": "Get only: Unicode code-point offset, default 0.",
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
-}
changedOutput schema / properties / nextCall / properties / toolName / description
Previous value: -"Tool to call for the next local row page."New value: +"Tool to call next."
changedOutput schema / properties / notices / description
Previous value: -"All applicable notices, including an empty list."New value: +"Applicable notices, possibly empty."
changedOutput schema / properties / notices / items / description
Previous value: -"A source limitation, applied bound or next-step notice."New value: +"A limitation, applied bound or next-step notice."
changedOutput schema / properties / requestedLimit / description
Previous value: -"Original requested search page size."New value: +"Requested search page size."
changedOutput schema / properties / retrievedAt / description
Previous value: -"Source fetch time, retained unchanged on cache hits."New value: +"Source fetch time; unchanged on cache hits."
changedOutput schema / properties / returnedCount / description
Previous value: -"Speech rows returned on this page."New value: +"Speech rows on this page."
changedOutput schema / properties / revision / description
Previous value: -"Search candidate-set revision or complete get detail revision."New value: +"Search candidate-set revision or get detail revision."
changedOutput schema / properties / textCount / description
Previous value: -"Applied maximum speeches selected for text retrieval."New value: +"Applied maximum speeches hydrated with text."
changedOutput schema / properties / totalCount / description
Previous value: -"Exact local heading-filtered match count."New value: +"Exact count after local heading and related-document filters."
removedOutput schema / properties / truncated
Removed value: -{
- "description": "Whether response fitting shortened the local row page.",
- "type": "boolean"
-}
changedOutput schema / properties / upstreamQuery / description
Previous value: -"Upstream query echo; not proof that a filter was applied."New value: +"Upstream query echo, not proof a filter applied."
changedOutput schema / properties / upstreamWarnings / description
Previous value: -"Warnings supplied by the source."New value: +"Source warnings."
changedOutput schema / properties / upstreamWarnings / items / description
Previous value: -"An upstream warning preserved verbatim."New value: +"An upstream warning, verbatim."