Skip to main content
Glama

Dokumentabschnitt

ris_dokument_abschnitt
Read-only

Fetch a single section from a document already open in the RIS viewer for widget display; use ris_dokument instead for full-text retrieval.

Instructions

Return one section of a document already open in the RIS document viewer. Intended for the viewer widget, not for direct use — for the full text of a document use ris_dokument.

Rechtsverbindlich sind nur die authentischen Kundmachungen im RIS; diese Ergebnisse sind keine Rechtsberatung.

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

Input Schema

NameRequiredDescriptionDefault
urlNoDirect URL of the open document, for documents opened by URL rather than by number
offsetNoCharacter offset into the document text; 0 returns the first section and the outline
dokumentnummerNoRIS document number of the open document - from the ris_dokument call that opened it

Output Schema

NameRequiredDescriptionDefault
textYesThe requested section of the document text
outlineNoJump targets of the document. Only returned for offset 0; empty when the document has no headings
source_urlNoRIS URL the document text was rendered from
attributionNoQuellenangabe nach CC BY 4.0
next_offsetYesOffset to request for the following section, or null at the end of the document
total_lengthYesLength of the complete document text — compare across calls to detect that the document was re-fetched and offsets shifted
dokumentnummerNoRIS document number of the document this section belongs to

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.9.0
    • addedOutput schema / properties / attribution
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Quellenangabe nach CC BY 4.0",
      +  "properties": {
      +    "license": {
      +      "type": "string"
      +    },
      +    "source_url": {
      +      "type": "string"
      +    },
      +    "text": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "text",
      +    "license",
      +    "source_url"
      +  ],
      +  "type": "object"
      +}
  2. Addedv1.6.1

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint, destructiveHint=false), so the bar is lower, and the description adds a genuinely important stateful precondition: the document must already be open in the viewer, and the document number comes from the ris_dokument call that opened it. It does not say what happens if no document is open or how sections are chained across calls, 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?

The operational content is two tightly written sentences with the viewer-only constraint front-loaded and the alternative tool named second-chance in the same breath. The trailing legal disclaimer ('Rechtsverbindlich sind nur die authentischen Kundmachungen…') does not help an agent select or invoke the tool, though it may be a required notice.

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?

An output schema exists, so return values need not be explained, and the description covers the essential precondition, the alternative tool, and the offset-based paging implied by the schema. The only gap is error/pagination behavior when the document is not open or the offset is past the end.

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% and the schema already documents url, offset (including '0 returns the first section and the outline') and dokumentnummer. The description adds only the provenance hint that the document number comes from the opening ris_dokument call, which is useful but marginal — baseline 3 applies when the schema does the heavy lifting.

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?

Names a specific verb and resource ('Return one section of a document') and scopes it precisely to a document 'already open in the RIS document viewer'. It also explicitly distinguishes itself from the sibling ris_dokument, which returns full text, so an agent can route correctly without opening any schema.

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

Usage Guidelines5/5

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

Gives an explicit when-not ('Intended for the viewer widget, not for direct use') and names the alternative tool plus the condition that selects it ('for the full text of a document use `ris_dokument`'). Nothing about tool selection is left to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.