Ch Law Get
ch_law_getFetch 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 "2022/491". Returns title, short title, SR number, AS reference, adoption and entry-into-force dates, in-force status, the date of the consolidated version returned (the version applicable today) and the text. Pass article (e.g. "6", "66a") for one article only; without it the text is capped at max_chars with a list of chapters. lang picks the language (de, fr, it, en when available). The consolidated text is informative as published; the legal force lies with the Official Compilation.
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": {
"id": "235.1",
"lang": "de",
"article": "6"
},
"name": "ch_law_get"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | SR number (e.g. "235.1") or AS reference "year/number" (e.g. "2022/491") | |
| lang | No | Text language (default de) | |
| article | No | Article number, e.g. "6", "66a", "7bis" | |
| max_chars | No | Cap on returned text when no article is given (default 20000, max 100000) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| eli | No | ||
| url | No | ||
| hint | No | ||
| lang | No | ||
| text | No | ||
| found | No | ||
| title | No | ||
| source | No | ||
| status | No | ||
| adopted | No | ||
| article | No | ||
| matches | No | ||
| citation | No | ||
| contents | No | ||
| sr_number | No | ||
| truncated | No | ||
| data_as_of | No | ||
| short_title | No | ||
| total_chars | No | ||
| as_reference | No | ||
| empty_reason | No | ||
| article_count | No | ||
| in_force_from | No | ||
| article_heading | No | ||
| version_applicable_from | No | ||
| version_applicable_until | No |