ch_bger_get
Pack: ch-bger · 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/ch_bger_get for the schema, then POST the same URL with its arguments for the data.
Fetch one Federal Supreme Court decision by id (from ch_bger_search, e.g. “2008-11-11-1C_489-2008”): the published decision text, paged with max_chars/offset. The text is the court’s published, anonymised version in the original language.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | yes | Decision id from ch_bger_search (date plus file number), e.g. “2008-11-11-1C_489-2008”. |
max_chars | number | no | Max characters to return (default 12000, max 40000). |
offset | number | no | Character offset for paging (default 0). |
Example call
Arguments
{
"id": "2008-11-11-1C_489-2008",
"max_chars": 1500
}
curl
curl -X POST https://gateway.pipeworx.io/ch-bger/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"ch_bger_get","arguments":{"id":"2008-11-11-1C_489-2008","max_chars":1500}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('ch_bger_get', {
"id": "2008-11-11-1C_489-2008",
"max_chars": 1500
});
Response shape
| Field | Type | Description |
|---|---|---|
id | string | |
found | boolean | |
file_number | string | null | |
decision_date | string | null | |
total_chars | number | |
offset | number | |
returned_chars | number | |
has_more | boolean | |
next_offset | number | null | |
text | string | null | |
empty_reason | string | |
note | string | |
citation_url | string | |
data_as_of | string | |
source | string |
Full JSON Schema
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"found": {
"type": "boolean"
},
"file_number": {
"type": [
"string",
"null"
]
},
"decision_date": {
"type": [
"string",
"null"
]
},
"total_chars": {
"type": "number"
},
"offset": {
"type": "number"
},
"returned_chars": {
"type": "number"
},
"has_more": {
"type": "boolean"
},
"next_offset": {
"type": [
"number",
"null"
]
},
"text": {
"type": [
"string",
"null"
]
},
"empty_reason": {
"type": "string"
},
"note": {
"type": "string"
},
"citation_url": {
"type": "string"
},
"data_as_of": {
"type": "string"
},
"source": {
"type": "string"
}
},
"additionalProperties": true
}
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 ch-bger pack
{
"mcpServers": {
"ch-bger": {
"url": "https://gateway.pipeworx.io/ch-bger/mcp"
}
}
}
See Getting Started for client-specific install steps.