Skip to main content
Glama

sweden-parliament-mcp-server

Read parliamentary document

riksdag_get_document
Read-onlyIdempotent

Read a document status, decisions, linked records and text. Select sections and follow continuation calls to read long reports or consolidated SFS statutes. For a committee report or interpellation, relatedSpeechesCall searches the speeches the source links to it (a resumed debate’s later segments can lack the link). SFS text is consolidated published text, not a point-in-time legal version.

Tool call template

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

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

Input Schema

NameRequiredDescriptionDefault
revisionNoRevision from a previous call; a changed record is rejected.
sectionsNoSections to return. Omit for metadata, outline and first text page; [] returns only the outline.
documentIdYesDocument ID from riksdag_search_documents or a member vote row, or an SFS YYYY:N identifier.
htmlLengthNoSource HTML page length in Unicode code points; default 8000.
htmlOffsetNoSource HTML offset in Unicode code points.
textLengthNoText page length in Unicode code points; default 8000.
textOffsetNoText offset in Unicode code points.
sectionLimitNoEntries per selected array section; clamped to a maximum of 100.
sectionOffsetNoEntry offset for each selected array section.

Output Schema

NameRequiredDescriptionDefault
textNoCanonical text page, identical on both surfaces.
errorNoPresent when the call failed. Absent on success.
foundNoWhether the source record exists.
sourceNoRequired attribution to the Swedish Parliament.
noticesNoApplicable notices, possibly empty.
outlineNoEvery selectable section with its size.
guidanceNoHow to resolve a missing identifier.
metadataNoSource publication metadata and links.
revisionNoHash of the complete normalized record.
decisionsNoSelected page of authoritative report points.
truncatedNoA selected array section has more entries; follow its sectionPages nextCall.
activitiesNoSelected process-event page.
documentIdNoNormalized document identifier.
htmlOffsetNoReturned HTML offset, code points.
propertiesNoSelected property page.
referencesNoSelected relationship page.
sourceHtmlNoOriginal source HTML page, selected separately.
textOffsetNoReturned text offset, code points.
attachmentsNoSelected linked-attachment page.
htmlHasMoreNoWhether source HTML remains.
retrievedAtNoSource fetch time; unchanged on cache hits.
textHasMoreNoWhether canonical text remains.
nextHtmlCallNoContinuation for source HTML.
nextTextCallNoContinuation for canonical text.
reservationsNoSelected reservation page.
sectionPagesNoCounts and continuation for each selected array section.
stakeholdersNoSelected source participants, including those without an IID.
textAvailableNoWhether a published canonical body exists.
upstreamQueryNoUpstream query echo, not proof a filter applied.
effectiveQueryNoNormalized input, defaults and local filters.
htmlTotalLengthNoTotal HTML length, code points.
textTotalLengthNoTotal canonical text length, code points.
upstreamWarningsNoSource warnings.
htmlReturnedLengthNoReturned HTML code points.
textRepresentationNoSource SFS text or canonical converted Markdown.
textReturnedLengthNoReturned text code points.
relatedSpeechesCallNoSpeech search for the speeches the source links to this report (bet) or interpellation (ip); present when the record has a session. A resumed debate’s later segments can lack the link, and it can return none.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed89 schema fields changed
    • changedInput schema / properties / documentId / description
      Previous value: -"Document ID from riksdag_search_documents, or unambiguous SFS YYYY:N identifier."New value: +"Document ID from riksdag_search_documents or a member vote row, or an SFS YYYY:N identifier."
    • addedInput schema / properties / documentId / pattern
      Added value: +"^\\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*$"
    • changedInput schema / properties / htmlLength / description
      Previous value: -"Explicit source HTML length in code points; defaults start at 8000 and fit the complete response; explicit lengths are honored."New value: +"Source HTML page length in Unicode code points; default 8000."
    • changedInput schema / properties / revision / description
      Previous value: -"Revision returned by a previous call; rejects changed records."New value: +"Revision from a previous call; a changed record is rejected."
    • changedInput schema / properties / sectionLimit / description
      Previous value: -"Requested entries per selected array section; applied maximum 100."New value: +"Entries per selected array section; clamped to a maximum of 100."
    • changedInput schema / properties / sectionOffset / description
      Previous value: -"Offset applied independently to each selected array section."New value: +"Entry offset for each selected array section."
    • changedInput schema / properties / sections / description
      Previous value: -"Select metadata, decisions, reservations, activities, properties, attachments, references, stakeholders, text or source_html. Omit for metadata, complete outline and first text page."New value: +"Sections to return. Omit for metadata, outline and first text page; [] returns only the outline."
    • addedInput schema / properties / sections / items / enum
      Added value: +[
      +  "metadata",
      +  "decisions",
      +  "reservations",
      +  "activities",
      +  "properties",
      +  "attachments",
      +  "references",
      +  "stakeholders",
      +  "text",
      +  "source_html"
      +]
    • changedInput schema / properties / textLength / description
      Previous value: -"Explicit text length in code points; defaults start at 8000 and fit the complete response; explicit lengths are honored."New value: +"Text page length in Unicode code points; default 8000."
    • addedOutput schema / $defs
      Added value: +{
      +  "RiksdagDecisionSummary": {
      +    "additionalProperties": false,
      +    "description": "Published vote-summary table without HTML wrapper layers.",
      +    "properties": {
      +      "caption": {
      +        "additionalProperties": false,
      +        "description": "Published caption components.",
      +        "properties": {
      +          "heading": {
      +            "description": "Published bold caption.",
      +            "type": "string"
      +          },
      +          "text": {
      +            "description": "Published caption text, separate from its heading.",
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "columns": {
      +        "description": "Ordered published column headings when a header is available.",
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "footer": {
      +        "$ref": "#/$defs/RiksdagDecisionSummaryRow",
      +        "description": "Published totals row, when available."
      +      },
      +      "heading": {
      +        "description": "Published heading of a historical summary.",
      +        "type": "string"
      +      },
      +      "proposal": {
      +        "description": "Published proposal of a historical summary.",
      +        "type": "string"
      +      },
      +      "rows": {
      +        "description": "Ordered published body rows when a body is available.",
      +        "items": {
      +          "$ref": "#/$defs/RiksdagDecisionSummaryRow"
      +        },
      +        "type": "array"
      +      },
      +      "text": {
      +        "description": "Published summary text when the source provides a string instead of a table.",
      +        "type": "string"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  "RiksdagDecisionSummaryRow": {
      +    "additionalProperties": false,
      +    "description": "One published summary row.",
      +    "properties": {
      +      "cells": {
      +        "description": "Ordered source cells; blank and zero values remain distinct.",
      +        "items": {
      +          "description": "Published cell text, preserving blank and zero; null means absent structured text.",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "type": "array"
      +      },
      +      "label": {
      +        "description": "Published row heading.",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "cells"
      +    ],
      +    "type": "object"
      +  }
      +}
    • addedOutput schema / properties / decisions / items / properties / summaries / items / $ref
      Added value: +"#/$defs/RiksdagDecisionSummary"
    • removedOutput schema / properties / decisions / items / properties / summaries / items / additionalProperties
      Removed value: -false
    • removedOutput schema / properties / decisions / items / properties / summaries / items / description
      Removed value: -"Published vote-summary table without HTML wrapper layers."
    • removedOutput schema / properties / decisions / items / properties / summaries / items / properties
      Removed value: -{
      -  "caption": {
      -    "additionalProperties": false,
      -    "description": "Published caption components.",
      -    "properties": {
      -      "heading": {
      -        "description": "Published bold caption.",
      -        "type": "string"
      -      },
      -      "text": {
      -        "description": "Published caption text, separate from its heading.",
      -        "type": "string"
      -      }
      -    },
      -    "type": "object"
      -  },
      -  "columns": {
      -    "description": "Ordered published column headings when a header is available.",
      -    "items": {
      -      "type": "string"
      -    },
      -    "type": "array"
      -  },
      -  "footer": {
      -    "additionalProperties": false,
      -    "description": "Published totals row, when available.",
      -    "properties": {
      -      "cells": {
      -        "description": "Ordered source cells; blank and zero values remain distinct.",
      -        "items": {
      -          "description": "Published cell text, preserving blank and zero; null means absent structured text.",
      -          "type": [
      -            "string",
      -            "null"
      -          ]
      -        },
      -        "type": "array"
      -      },
      -      "label": {
      -        "description": "Published row heading.",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "cells"
      -    ],
      -    "type": "object"
      -  },
      -  "heading": {
      -    "description": "Published heading of a historical summary.",
      -    "type": "string"
      -  },
      -  "proposal": {
      -    "description": "Published proposal of a historical summary.",
      -    "type": "string"
      -  },
      -  "rows": {
      -    "description": "Ordered published body rows when a body is available.",
      -    "items": {
      -      "additionalProperties": false,
      -      "description": "One published summary row.",
      -      "properties": {
      -        "cells": {
      -          "description": "Ordered source cells; blank and zero values remain distinct.",
      -          "items": {
      -            "description": "Published cell text, preserving blank and zero; null means absent structured text.",
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "type": "array"
      -        },
      -        "label": {
      -          "description": "Published row heading.",
      -          "type": "string"
      -        }
      -      },
      -      "required": [
      -        "cells"
      -      ],
      -      "type": "object"
      -    },
      -    "type": "array"
      -  },
      -  "text": {
      -    "description": "Published summary text when the source provides a string instead of a table.",
      -    "type": "string"
      -  }
      -}
    • removedOutput schema / properties / decisions / items / properties / summaries / items / type
      Removed value: -"object"
    • addedOutput schema / properties / decisions / items / properties / summary / $ref
      Added value: +"#/$defs/RiksdagDecisionSummary"
    • removedOutput schema / properties / decisions / items / properties / summary / additionalProperties
      Removed value: -false
    • removedOutput schema / properties / decisions / items / properties / summary / properties
      Removed value: -{
      -  "caption": {
      -    "additionalProperties": false,
      -    "description": "Published caption components.",
      -    "properties": {
      -      "heading": {
      -        "description": "Published bold caption.",
      -        "type": "string"
      -      },
      -      "text": {
      -        "description": "Published caption text, separate from its heading.",
      -        "type": "string"
      -      }
      -    },
      -    "type": "object"
      -  },
      -  "columns": {
      -    "description": "Ordered published column headings when a header is available.",
      -    "items": {
      -      "type": "string"
      -    },
      -    "type": "array"
      -  },
      -  "footer": {
      -    "additionalProperties": false,
      -    "description": "Published totals row, when available.",
      -    "properties": {
      -      "cells": {
      -        "description": "Ordered source cells; blank and zero values remain distinct.",
      -        "items": {
      -          "description": "Published cell text, preserving blank and zero; null means absent structured text.",
      -          "type": [
      -            "string",
      -            "null"
      -          ]
      -        },
      -        "type": "array"
      -      },
      -      "label": {
      -        "description": "Published row heading.",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "cells"
      -    ],
      -    "type": "object"
      -  },
      -  "heading": {
      -    "description": "Published heading of a historical summary.",
      -    "type": "string"
      -  },
      -  "proposal": {
      -    "description": "Published proposal of a historical summary.",
      -    "type": "string"
      -  },
      -  "rows": {
      -    "description": "Ordered published body rows when a body is available.",
      -    "items": {
      -      "additionalProperties": false,
      -      "description": "One published summary row.",
      -      "properties": {
      -        "cells": {
      -          "description": "Ordered source cells; blank and zero values remain distinct.",
      -          "items": {
      -            "description": "Published cell text, preserving blank and zero; null means absent structured text.",
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "type": "array"
      -        },
      -        "label": {
      -          "description": "Published row heading.",
      -          "type": "string"
      -        }
      -      },
      -      "required": [
      -        "cells"
      -      ],
      -      "type": "object"
      -    },
      -    "type": "array"
      -  },
      -  "text": {
      -    "description": "Published summary text when the source provides a string instead of a table.",
      -    "type": "string"
      -  }
      -}
    • removedOutput schema / properties / decisions / items / properties / summary / type
      Removed value: -"object"
    • 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`: A malformed document identifier is supplied. `revision_changed`: The source record changed between continuation calls. `unknown_section`: A selected document section is unrecognized. `upstream_identity_mismatch`: The status response contradicts the requested document ID. `upstream_schema_invalid`: Present payload violates the wire contract. `upstream_unavailable`: The source remains unavailable after retries. `upstream_queue_full`: The process upstream queue is full. Other values are possible when a failure originates below the handler."New value: +"Machine-readable failure mode. Declared by this tool: `invalid_filter`: An identifier that passes the input pattern is not a valid ID after NFC normalization. `revision_changed`: The source record changed between calls. `upstream_identity_mismatch`: The status response contradicts the requested document ID. `upstream_schema_invalid`: Payload violates the wire contract. `upstream_unavailable`: Source unavailable after retries. `upstream_queue_full`: Upstream queue is full. Other values are possible when a failure originates below the handler."
    • changedOutput schema / properties / error / properties / data / properties / reason / examples
      Previous value: -[
      -  "invalid_filter",
      -  "revision_changed",
      -  "unknown_section",
      -  "upstream_identity_mismatch",
      -  "upstream_schema_invalid",
      -  "upstream_unavailable",
      -  "upstream_queue_full"
      -]New value: +[
      +  "invalid_filter",
      +  "revision_changed",
      +  "upstream_identity_mismatch",
      +  "upstream_schema_invalid",
      +  "upstream_unavailable",
      +  "upstream_queue_full"
      +]
    • changedOutput schema / properties / htmlOffset / description
      Previous value: -"Returned HTML offset in code points."New value: +"Returned HTML offset, code points."
    • changedOutput schema / properties / htmlTotalLength / description
      Previous value: -"Complete HTML code-point length."New value: +"Total HTML length, code points."
    • changedOutput schema / properties / nextHtmlCall / description
      Previous value: -"Complete continuation for source HTML."New value: +"Continuation for source HTML."
    • changedOutput schema / properties / nextHtmlCall / properties / args / additionalProperties
      Previous value: -falseNew value: +{}
    • changedOutput schema / properties / nextHtmlCall / properties / args / description
      Previous value: -"Complete normalized continuation arguments."New value: +"Complete normalized arguments for riksdag_get_document, valid against its input schema; pass back unchanged."
    • removedOutput schema / properties / nextHtmlCall / properties / args / properties / documentId
      Removed value: -{
      -  "description": "Document ID from riksdag_search_documents, or unambiguous SFS YYYY:N identifier.",
      -  "minLength": 1,
      -  "type": "string"
      -}
    • removedOutput schema / properties / nextHtmlCall / properties / args / properties / htmlLength
      Removed value: -{
      -  "description": "Explicit source HTML length in code points; defaults start at 8000 and fit the complete response; explicit lengths are honored.",
      -  "maximum": 9007199254740991,
      -  "minimum": 1,
      -  "type": "integer"
      -}
    • removedOutput schema / properties / nextHtmlCall / properties / args / properties / htmlOffset
      Removed value: -{
      -  "default": 0,
      -  "description": "Source HTML offset in Unicode code points.",
      -  "maximum": 9007199254740991,
      -  "minimum": 0,
      -  "type": "integer"
      -}
    • removedOutput schema / properties / nextHtmlCall / properties / args / properties / revision
      Removed value: -{
      -  "description": "Revision returned by a previous call; rejects changed records.",
      -  "type": "string"
      -}
    • removedOutput schema / properties / nextHtmlCall / properties / args / properties / sectionLimit
      Removed value: -{
      -  "default": 20,
      -  "description": "Requested entries per selected array section; applied maximum 100.",
      -  "maximum": 9007199254740991,
      -  "minimum": 1,
      -  "type": "integer"
      -}
    • removedOutput schema / properties / nextHtmlCall / properties / args / properties / sectionOffset
      Removed value: -{
      -  "default": 0,
      -  "description": "Offset applied independently to each selected array section.",
      -  "maximum": 9007199254740991,
      -  "minimum": 0,
      -  "type": "integer"
      -}
    • removedOutput schema / properties / nextHtmlCall / properties / args / properties / sections
      Removed value: -{
      -  "description": "Select metadata, decisions, reservations, activities, properties, attachments, references, stakeholders, text or source_html. Omit for metadata, complete outline and first text page.",
      -  "items": {
      -    "type": "string"
      -  },
      -  "type": "array"
      -}
    • removedOutput schema / properties / nextHtmlCall / properties / args / properties / textLength
      Removed value: -{
      -  "description": "Explicit text length in code points; defaults start at 8000 and fit the complete response; explicit lengths are honored.",
      -  "maximum": 9007199254740991,
      -  "minimum": 1,
      -  "type": "integer"
      -}
    • removedOutput schema / properties / nextHtmlCall / properties / args / properties / textOffset
      Removed value: -{
      -  "default": 0,
      -  "description": "Text offset in Unicode code points.",
      -  "maximum": 9007199254740991,
      -  "minimum": 0,
      -  "type": "integer"
      -}
    • removedOutput schema / properties / nextHtmlCall / properties / args / required
      Removed value: -[
      -  "documentId",
      -  "textOffset",
      -  "htmlOffset",
      -  "sectionOffset",
      -  "sectionLimit"
      -]
    • changedOutput schema / properties / nextTextCall / description
      Previous value: -"Complete continuation for canonical text."New value: +"Continuation for canonical text."
    • changedOutput schema / properties / nextTextCall / properties / args / additionalProperties
      Previous value: -falseNew value: +{}
    • changedOutput schema / properties / nextTextCall / properties / args / description
      Previous value: -"Complete normalized continuation arguments."New value: +"Complete normalized arguments for riksdag_get_document, valid against its input schema; pass back unchanged."
    • removedOutput schema / properties / nextTextCall / properties / args / properties / documentId
      Removed value: -{
      -  "description": "Document ID from riksdag_search_documents, or unambiguous SFS YYYY:N identifier.",
      -  "minLength": 1,
      -  "type": "string"
      -}
    • removedOutput schema / properties / nextTextCall / properties / args / properties / htmlLength
      Removed value: -{
      -  "description": "Explicit source HTML length in code points; defaults start at 8000 and fit the complete response; explicit lengths are honored.",
      -  "maximum": 9007199254740991,
      -  "minimum": 1,
      -  "type": "integer"
      -}
    • removedOutput schema / properties / nextTextCall / properties / args / properties / htmlOffset
      Removed value: -{
      -  "default": 0,
      -  "description": "Source HTML offset in Unicode code points.",
      -  "maximum": 9007199254740991,
      -  "minimum": 0,
      -  "type": "integer"
      -}
    • removedOutput schema / properties / nextTextCall / properties / args / properties / revision
      Removed value: -{
      -  "description": "Revision returned by a previous call; rejects changed records.",
      -  "type": "string"
      -}
    • removedOutput schema / properties / nextTextCall / properties / args / properties / sectionLimit
      Removed value: -{
      -  "default": 20,
      -  "description": "Requested entries per selected array section; applied maximum 100.",
      -  "maximum": 9007199254740991,
      -  "minimum": 1,
      -  "type": "integer"
      -}
    • removedOutput schema / properties / nextTextCall / properties / args / properties / sectionOffset
      Removed value: -{
      -  "default": 0,
      -  "description": "Offset applied independently to each selected array section.",
      -  "maximum": 9007199254740991,
      -  "minimum": 0,
      -  "type": "integer"
      -}
    • removedOutput schema / properties / nextTextCall / properties / args / properties / sections
      Removed value: -{
      -  "description": "Select metadata, decisions, reservations, activities, properties, attachments, references, stakeholders, text or source_html. Omit for metadata, complete outline and first text page.",
      -  "items": {
      -    "type": "string"
      -  },
      -  "type": "array"
      -}
    • removedOutput schema / properties / nextTextCall / properties / args / properties / textLength
      Removed value: -{
      -  "description": "Explicit text length in code points; defaults start at 8000 and fit the complete response; explicit lengths are honored.",
      -  "maximum": 9007199254740991,
      -  "minimum": 1,
      -  "type": "integer"
      -}
    • removedOutput schema / properties / nextTextCall / properties / args / properties / textOffset
      Removed value: -{
      -  "default": 0,
      -  "description": "Text offset in Unicode code points.",
      -  "maximum": 9007199254740991,
      -  "minimum": 0,
      -  "type": "integer"
      -}
    • removedOutput schema / properties / nextTextCall / properties / args / required
      Removed value: -[
      -  "documentId",
      -  "textOffset",
      -  "htmlOffset",
      -  "sectionOffset",
      -  "sectionLimit"
      -]
    • 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 / outline / description
      Previous value: -"Every selectable section and its complete size."New value: +"Every selectable section with its size."
    • changedOutput schema / properties / outline / items / description
      Previous value: -"One section and its complete available size."New value: +"One section and its size."
    • changedOutput schema / properties / outline / items / properties / textLength / description
      Previous value: -"Complete text length in Unicode code points."New value: +"Total text length in code points."
    • addedOutput schema / properties / relatedSpeechesCall
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Speech search for the speeches the source links to this report (bet) or interpellation (ip); present when the record has a session. A resumed debate’s later segments can lack the link, and it can return none.",
      +  "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"
      +}
    • 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 / sectionPages / description
      Previous value: -"Independent counts and complete continuation for every selected array."New value: +"Counts and continuation for each selected array section."
    • changedOutput schema / properties / sectionPages / items / description
      Previous value: -"Independent pagination for one selected section."New value: +"Pagination for one selected section."
    • changedOutput schema / properties / sectionPages / items / properties / hasMore / description
      Previous value: -"Whether entries remain after this section page."New value: +"Whether entries remain."
    • changedOutput schema / properties / sectionPages / items / properties / limit / description
      Previous value: -"Applied page limit after response fitting."New value: +"Applied section limit, maximum 100."
    • changedOutput schema / properties / sectionPages / items / properties / nextCall / description
      Previous value: -"Complete continuation for this section only."New value: +"Continuation for this section only."
    • changedOutput schema / properties / sectionPages / items / properties / nextCall / properties / args / additionalProperties
      Previous value: -falseNew value: +{}
    • changedOutput schema / properties / sectionPages / items / properties / nextCall / properties / args / description
      Previous value: -"Complete normalized continuation arguments."New value: +"Complete normalized arguments for riksdag_get_document, valid against its input schema; pass back unchanged."
    • removedOutput schema / properties / sectionPages / items / properties / nextCall / properties / args / properties / documentId
      Removed value: -{
      -  "description": "Document ID from riksdag_search_documents, or unambiguous SFS YYYY:N identifier.",
      -  "minLength": 1,
      -  "type": "string"
      -}
    • removedOutput schema / properties / sectionPages / items / properties / nextCall / properties / args / properties / htmlLength
      Removed value: -{
      -  "description": "Explicit source HTML length in code points; defaults start at 8000 and fit the complete response; explicit lengths are honored.",
      -  "maximum": 9007199254740991,
      -  "minimum": 1,
      -  "type": "integer"
      -}
    • removedOutput schema / properties / sectionPages / items / properties / nextCall / properties / args / properties / htmlOffset
      Removed value: -{
      -  "default": 0,
      -  "description": "Source HTML offset in Unicode code points.",
      -  "maximum": 9007199254740991,
      -  "minimum": 0,
      -  "type": "integer"
      -}
    • removedOutput schema / properties / sectionPages / items / properties / nextCall / properties / args / properties / revision
      Removed value: -{
      -  "description": "Revision returned by a previous call; rejects changed records.",
      -  "type": "string"
      -}
    • removedOutput schema / properties / sectionPages / items / properties / nextCall / properties / args / properties / sectionLimit
      Removed value: -{
      -  "default": 20,
      -  "description": "Requested entries per selected array section; applied maximum 100.",
      -  "maximum": 9007199254740991,
      -  "minimum": 1,
      -  "type": "integer"
      -}
    • removedOutput schema / properties / sectionPages / items / properties / nextCall / properties / args / properties / sectionOffset
      Removed value: -{
      -  "default": 0,
      -  "description": "Offset applied independently to each selected array section.",
      -  "maximum": 9007199254740991,
      -  "minimum": 0,
      -  "type": "integer"
      -}
    • removedOutput schema / properties / sectionPages / items / properties / nextCall / properties / args / properties / sections
      Removed value: -{
      -  "description": "Select metadata, decisions, reservations, activities, properties, attachments, references, stakeholders, text or source_html. Omit for metadata, complete outline and first text page.",
      -  "items": {
      -    "type": "string"
      -  },
      -  "type": "array"
      -}
    • removedOutput schema / properties / sectionPages / items / properties / nextCall / properties / args / properties / textLength
      Removed value: -{
      -  "description": "Explicit text length in code points; defaults start at 8000 and fit the complete response; explicit lengths are honored.",
      -  "maximum": 9007199254740991,
      -  "minimum": 1,
      -  "type": "integer"
      -}
    • removedOutput schema / properties / sectionPages / items / properties / nextCall / properties / args / properties / textOffset
      Removed value: -{
      -  "default": 0,
      -  "description": "Text offset in Unicode code points.",
      -  "maximum": 9007199254740991,
      -  "minimum": 0,
      -  "type": "integer"
      -}
    • removedOutput schema / properties / sectionPages / items / properties / nextCall / properties / args / required
      Removed value: -[
      -  "documentId",
      -  "textOffset",
      -  "htmlOffset",
      -  "sectionOffset",
      -  "sectionLimit"
      -]
    • changedOutput schema / properties / sectionPages / items / properties / requestedLimit / description
      Previous value: -"Original requested section limit."New value: +"Requested section limit."
    • changedOutput schema / properties / sectionPages / items / properties / returnedCount / description
      Previous value: -"Actual returned section entries."New value: +"Entries returned."
    • changedOutput schema / properties / sectionPages / items / properties / totalCount / description
      Previous value: -"Complete entry count in this section."New value: +"Total entries in this section."
    • removedOutput schema / properties / sectionPages / items / properties / truncated
      Removed value: -{
      -  "description": "Whether response fitting shortened this section page.",
      -  "type": "boolean"
      -}
    • changedOutput schema / properties / sectionPages / items / required
      Previous value: -[
      -  "section",
      -  "totalCount",
      -  "offset",
      -  "limit",
      -  "requestedLimit",
      -  "truncated",
      -  "returnedCount",
      -  "hasMore"
      -]New value: +[
      +  "section",
      +  "totalCount",
      +  "offset",
      +  "limit",
      +  "requestedLimit",
      +  "returnedCount",
      +  "hasMore"
      +]
    • changedOutput schema / properties / sourceHtml / description
      Previous value: -"Separately selected original source HTML page."New value: +"Original source HTML page, selected separately."
    • changedOutput schema / properties / stakeholders / description
      Previous value: -"Selected page of source participants, retaining entries without an IID."New value: +"Selected source participants, including those without an IID."
    • changedOutput schema / properties / text / description
      Previous value: -"Selected canonical text page, unchanged on both surfaces."New value: +"Canonical text page, identical on both surfaces."
    • changedOutput schema / properties / textOffset / description
      Previous value: -"Returned text offset in Unicode code points."New value: +"Returned text offset, code points."
    • changedOutput schema / properties / textReturnedLength / description
      Previous value: -"Actual returned text code points."New value: +"Returned text code points."
    • changedOutput schema / properties / textTotalLength / description
      Previous value: -"Complete canonical text length in code points."New value: +"Total canonical text length, code points."
    • changedOutput schema / properties / truncated / description
      Previous value: -"At least one selected array section has more entries or a response-fitted page; follow its sectionPages continuation."New value: +"A selected array section has more entries; follow its sectionPages nextCall."
    • 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."
  2. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, and open-world, so the safety profile is covered. The description adds real behavioral context beyond that: long documents require continuation/paging calls, and SFS text is consolidated rather than a historical legal snapshot — a substantive caveat an agent would otherwise miss.

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?

Three tight sentences, front-loaded with purpose before caveats. The parenthetical about resumed debates lacking links is dense but earns its place; no filler sentences.

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?

With nine parameters, an output schema, and full annotation coverage, the description covers the essentials: what comes back, how to page, and the SFS semantic caveat. The only minor omission is the empty-sections outline behavior, which the schema already states.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so section selection, offsets, lengths, section limits, and revision rejection are already fully documented in structured fields. The description adds only light framing ("select sections", "follow continuation calls"), so it lands at the baseline for a fully documented schema.

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

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb+resource and enumerates exactly what is retrievable (status, decisions, linked records, text), so an agent knows this is a by-ID document reader rather than a search endpoint. It also distinguishes the SFS variant explicitly, noting that SFS text is consolidated published text rather than a point-in-time legal version.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives concrete operating guidance: pick sections, follow continuation calls for long reports or consolidated statutes, and use relatedSpeechesCall for committee reports and interpellations (with the caveat that resumed-debate later segments may lack the link). It does not explicitly say to obtain the documentId via riksdag_search_documents, though the schema does.

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.