Skip to main content
Glama

Dokument abrufen

ris_dokument
Read-only

Fetch the complete text of an Austrian law or decision from RIS using a document number or direct URL after you have found it in search.

Instructions

Retrieve full text of a legal document.

Use this after searching to load the complete text of a specific law or decision.

Note: For long documents, content may be truncated. Use specific searches to narrow down.

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

Input Schema

NameRequiredDescriptionDefault
urlNoDirect URL to document content
dokumentnummerNoRIS document number (e.g., "NOR40052761") - from search results
response_formatNo"markdown" (default) or "json"markdown

Output Schema

NameRequiredDescriptionDefault
textYesThe document text, identical to the text content block — truncated at 25000 characters with a German notice when the document is longer
outlineNoJump targets of the document. Returned for a truncated markdown response whose outline is small enough to travel with it — a document that fits in one response has nothing to navigate to, and a statute-sized outline is fetched with the next section instead
source_urlNoRIS URL the document text was rendered from
attributionNoQuellenangabe nach CC BY 4.0
total_lengthYesLength of the string "text" was cut from — the full rendered document in the requested format; greater than the length of "text" when the document was truncated
dokumentnummerNoRIS document number of this document, echoed from the request

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. Changed1 schema field changedv1.6.1
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "dokumentnummer": {
      +      "description": "RIS document number of this document, echoed from the request",
      +      "type": "string"
      +    },
      +    "outline": {
      +      "description": "Jump targets of the document. Returned for a truncated markdown response whose outline is small enough to travel with it — a document that fits in one response has nothing to navigate to, and a statute-sized outline is fetched with the next section instead",
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "label": {
      +            "description": "Heading text",
      +            "type": "string"
      +          },
      +          "level": {
      +            "description": "Heading level 1-6 as marked up in the RIS source",
      +            "maximum": 9007199254740991,
      +            "minimum": -9007199254740991,
      +            "type": "integer"
      +          },
      +          "offset": {
      +            "description": "Character offset of the heading in the document text",
      +            "maximum": 9007199254740991,
      +            "minimum": -9007199254740991,
      +            "type": "integer"
      +          },
      +          "span": {
      +            "description": "Characters up to the next heading, or to the end of the text — tells a one-line metadata field from a real section",
      +            "maximum": 9007199254740991,
      +            "minimum": -9007199254740991,
      +            "type": "integer"
      +          }
      +        },
      +        "required": [
      +          "level",
      +          "label",
      +          "offset",
      +          "span"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "source_url": {
      +      "description": "RIS URL the document text was rendered from",
      +      "type": "string"
      +    },
      +    "text": {
      +      "description": "The document text, identical to the text content block — truncated at 25000 characters with a German notice when the document is longer",
      +      "type": "string"
      +    },
      +    "total_length": {
      +      "description": "Length of the string \"text\" was cut from — the full rendered document in the requested format; greater than the length of \"text\" when the document was truncated",
      +      "maximum": 9007199254740991,
      +      "minimum": -9007199254740991,
      +      "type": "integer"
      +    }
      +  },
      +  "required": [
      +    "text",
      +    "total_length"
      +  ],
      +  "type": "object"
      +}
  3. First observedv1.1.3

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=true, so the safety profile is covered. The description adds genuinely useful behavior beyond that: long-document truncation and the legal caveat that only authentic RIS Kundmachungen are binding and results are not legal advice. It says nothing about authentication, rate limits, or how truncation manifests in the response.

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 purpose is front-loaded in the first line, followed by usage, a caveat, and a disclaimer, with no filler sentences. The disclaimer is somewhat boilerplate but is legally meaningful for this domain, so it earns its place.

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 no explanation, and the description covers the key operational pitfall (truncation) plus the legal caveat. What is missing is parameter-selection guidance and a pointer to ris_dokument_abschnitt for partial retrieval, which matters given 13 sibling tools.

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 coverage is 100% and each parameter carries its own description, so the baseline of 3 applies. The description adds no guidance on the practically important question of choosing between 'url' and 'dokumentnummer' (all three parameters are optional), which is the main semantic gap the schema leaves open.

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?

The description states a specific verb and resource: 'Retrieve full text of a legal document', further narrowing to 'the complete text of a specific law or decision'. This separates it from the search-oriented siblings (ris_bundesrecht, ris_judikatur, etc.), but it never names ris_dokument_abschnitt, which is the closest alternative and presumably returns only a section rather than the full text.

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?

'Use this after searching to load the complete text' gives a clear when-to-use condition tied to the search siblings, and the truncation note advises narrowing with specific searches. It stops short of explicit exclusions, e.g. when to prefer ris_dokument_abschnitt for long documents instead of fighting truncation.

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