Skip to main content
Glama

Gesetze Structure

gesetze_structure
Read-onlyIdempotent

Table of contents of a German federal law or ordinance (Bücher/Abschnitte/Titel/Kapitel) with the §/Art. provisions listed under each heading, from Gesetze im Internet. depth controls how many heading levels come back; pass a section_id from a previous answer to expand one branch. A branch with more provisions than provision_limit says so (has_more_provisions) rather than truncating silently. Use to browse a law's structure or list the provisions of one chapter.

Input Schema

NameRequiredDescriptionDefault
lawYesThe law or ordinance: its official abbreviation ("BGB", "StGB", "HGB", "BDSG", "GG", "ZPO", "EStG") or (if unambiguous) its official title ("Bürgerliches Gesetzbuch"). Call gesetze_search first if unsure.
depthNoHeading levels to return below the starting point, 1-8 (default 2).
section_idNoOptional structural-heading id (Gliederungskennzahl) from a previous gesetze_structure answer, to expand one branch.
provision_limitNoMax provisions listed per heading before has_more_provisions, 10-400 (default 100).

Schema Changelog

Changes observed during successful MCP inspections.

  1. 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, non-destructive, so the safety burden is light. The description adds real behavioral context beyond that: section_id expands a single branch, depth controls hierarchy levels, and branches exceeding provision_limit explicitly flag has_more_provisions rather than truncating silently. No return-format details, but the truncation contract is valuable disclosure.

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 what the tool returns before the parameter behavior. No filler; each sentence adds actionable information. Slightly dense but appropriately sized for a four-parameter browsing 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?

No output schema exists, so the description carries return-value burden, and it does so adequately: it names the heading hierarchy, the provision list, and the has_more_provisions sentinel. Branch-expansion and truncation semantics are covered; minor gaps around ordering or default-return shape remain but are not blocking.

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%, so the baseline is 3. The description earns above baseline by explaining the inter-parameter behavior: depth controls heading-level count, section_id must come from a previous answer and is used to expand one branch, and provision_limit interacts with has_more_provisions.

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+resource: returns the table of contents (Bücher/Abschnitte/Titel/Kapitel) of a German federal law with §/Art. provisions under each heading, sourced from Gesetze im Internet. Clearly distinguishable from gesetze_search (search) and gesetze_provision (single provision), though it does not explicitly name those siblings.

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 clear use contexts: 'browse a law's structure or list the provisions of one chapter,' and the schema adds 'Call gesetze_search first if unsure.' No explicit when-not-to-use exclusions or named alternatives within the description itself, but the intended triggers are unambiguous.

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.