fr_code_toc

Pack: france-legi · 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/fr_code_toc for the schema, then POST the same URL with its arguments for the data.

Table of contents of a French code in force (parties, livres, titres, chapitres, sections) with the article numbers under each heading, from DILA’s LEGI consolidated base. depth controls how many levels come back; pass a section_id from a previous answer to expand one branch. Use to browse the structure of the Code civil, Code du travail, Code de commerce, etc., or to list the articles of a chapter.

Parameters

NameTypeRequiredDescription
section_idstringnoOptional LEGISCTA id of a section to expand (from a previous fr_code_toc answer).
depthnumbernoLevels to return below the starting point, 1-8 (default 2).

Example call

Arguments

{
  "code": "Code civil",
  "depth": 2
}

curl

curl -X POST https://gateway.pipeworx.io/france-legi/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"fr_code_toc","arguments":{"code":"Code civil","depth":2}}}'

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('fr_code_toc', {
  "code": "Code civil",
  "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 france-legi pack
{
  "mcpServers": {
    "france-legi": {
      "url": "https://gateway.pipeworx.io/france-legi/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build October 11, 2026