Switzerland Law

liveGovernmentLegalTechnology

Switzerland law -- Fedlex, the Swiss Confederation's publication platform for federal law (published by the Federal Chancellery): the Classified Compilation (SR, Systematische Rechtssammlung) and the Official Compilation (AS, Amtliche Sammlung).

2tools
0msauth
free tier50 calls/day

Tools

ch_law_get

Fetch one Swiss federal act: its record and consolidated text. id is an SR number from ch_law_search (e.g. "235.1" for the Federal Act on Data Protection) or an Official Compilation reference like "20

No parameters required.

▶Try it

Test with curl

The gateway speaks JSON-RPC 2.0 over HTTP POST. You can test any pack directly from the terminal.

List available tools
bash
curl -X POST https://gateway.pipeworx.io/switzerland-law/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
Call a tool
bash
curl -X POST https://gateway.pipeworx.io/switzerland-law/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"ch_law_search","arguments":{}}}'

Use with the SDK

Install @pipeworx/sdk to call tools from any TypeScript/Node project.

TypeScript
import { Pipeworx } from '@pipeworx/sdk';
const px = new Pipeworx();
const result = await px.call("ch_law_search", {});
ask_pipeworx
// Or ask in plain English:
const answer = await px.ask("switzerland law -- fedlex, the swiss confederation's publication platform for federal law (published by the federal chancellery): the classified compilation (sr, systematische rechtssammlung) and the official compilation (as, amtliche sammlung)");