gesetze_structure

Pack: de-gesetze · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)

No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/gesetze_structure for the schema, then POST the same URL with its arguments for the data.

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.

Parameters

NameTypeRequiredDescription
section_idstringnoOptional structural-heading id (Gliederungskennzahl) from a previous gesetze_structure answer, to expand one branch.
depthnumbernoHeading levels to return below the starting point, 1-8 (default 2).
provision_limitnumbernoMax provisions listed per heading before has_more_provisions, 10-400 (default 100).

Example call

Arguments

{
  "law": "GG",
  "depth": 2
}

curl

curl -X POST https://gateway.pipeworx.io/de-gesetze/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"gesetze_structure","arguments":{"law":"GG","depth":2}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('gesetze_structure', {
  "law": "GG",
  "depth": 2
});

Connect

Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:

{
  "mcpServers": {
    "pipeworx": {
      "url": "https://pipeworx.io/mcp"
    }
  }
}
Connect to just the de-gesetze pack
{
  "mcpServers": {
    "de-gesetze": {
      "url": "https://gateway.pipeworx.io/de-gesetze/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build October 16, 2026