Ch Law Search
ch_law_searchSearch Swiss federal legislation (Fedlex, Federal Chancellery) by title word, abbreviation or SR number, in German, French, Italian or English: e.g. query "Datenschutz" lang "de", query "protection des donnees" lang "fr", abbreviation "DSG", or sr_number "235.1" (the Classified Compilation number). By default only acts in force today are returned (in_force_only=false adds repealed and not-yet-in-force acts). Returns id (the SR number, usable in ch_law_get), title, short title, SR number, AS (Official Compilation) reference, entry-into-force date, status and link; 25 per page, use page to continue. Federal law only, no cantonal law and no EU law.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"lang": "de",
"query": "Datenschutz"
},
"name": "ch_law_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | Language of the title search and of the titles returned (default de) | |
| page | No | Page number, 1-based (default 1) | |
| query | No | Word(s) from the title in the chosen language, all must match, e.g. "Datenschutz" or "protection des donnees" | |
| sr_number | No | Classified Compilation (SR) number, e.g. "235.1" (use instead of query) | |
| abbreviation | No | Official short title, e.g. "DSG", "ZGB", "StGB", "LPD" | |
| in_force_only | No | Only acts in force today (default true) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | ||
| page | No | ||
| count | No | ||
| query | No | ||
| source | No | ||
| results | No | ||
| next_page | No | ||
| sr_number | No | ||
| data_as_of | No | ||
| abbreviation | No | ||
| empty_reason | No | ||
| in_force_only | No |