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

NameTypeRequiredDescription
idstringyesDecision id from ch_bger_search (date plus file number), e.g. “2008-11-11-1C_489-2008”.
max_charsnumbernoMax characters to return (default 12000, max 40000).
offsetnumbernoCharacter 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

FieldTypeDescription
idstring
foundboolean
file_numberstring | null
decision_datestring | null
total_charsnumber
offsetnumber
returned_charsnumber
has_moreboolean
next_offsetnumber | null
textstring | null
empty_reasonstring
notestring
citation_urlstring
data_as_ofstring
sourcestring
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.

Regenerated from source · build November 15, 2026