ch_bger_search

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_search for the schema, then POST the same URL with its arguments for the data.

Search published decisions of the Swiss Federal Supreme Court (Bundesgericht, Lausanne), 2000 onward, by free text. Query in the language of the decision (German, French or Italian), e.g. “Persönlichkeitsschutz Presse”, “protection des données”. Returns file number (e.g. 1C 489/2008), decision date, deciding department, subject area, the topic line the court publishes, a relevance score and the id for ch_bger_get. Words are ANDed; the court reports exact and partial match counts separately. Pass department to narrow to public law, private law, criminal or social insurance.

Parameters

NameTypeRequiredDescription
querystringyesFree-text words (German/French/Italian). Prefix a word with + to require it exactly.
departmentstringnoRestrict to a field of law: public_law, private_law, criminal, social_insurance (default all).
date_fromstringnoISO date YYYY-MM-DD; decisions on or after.
date_tostringnoISO date YYYY-MM-DD; decisions on or before.
pagenumbernoResult page, 10 per page (default 1).
limitnumbernoMax results from the page, 1-10 (default 10).

Example call

Arguments

{
  "query": "Datenschutz Auskunft",
  "department": "public_law",
  "limit": 3
}

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_search","arguments":{"query":"Datenschutz Auskunft","department":"public_law","limit":3}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('ch_bger_search', {
  "query": "Datenschutz Auskunft",
  "department": "public_law",
  "limit": 3
});

Response shape

FieldTypeDescription
queryobject
data_as_ofstring
exact_matchesnumber | null
partial_matchesnumber | null
countnumber
resultsarray
empty_reasonstring
notestring
sourcestring
Full JSON Schema
{
  "type": "object",
  "properties": {
    "query": {
      "type": "object",
      "properties": {
        "text": {
          "type": "string"
        },
        "department": {
          "type": "string"
        },
        "date_from": {
          "type": [
            "string",
            "null"
          ]
        },
        "date_to": {
          "type": [
            "string",
            "null"
          ]
        },
        "page": {
          "type": "number"
        }
      },
      "additionalProperties": true
    },
    "data_as_of": {
      "type": "string"
    },
    "exact_matches": {
      "type": [
        "number",
        "null"
      ]
    },
    "partial_matches": {
      "type": [
        "number",
        "null"
      ]
    },
    "count": {
      "type": "number"
    },
    "results": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "file_number": {
            "type": "string"
          },
          "decision_date": {
            "type": [
              "string",
              "null"
            ]
          },
          "department": {
            "type": [
              "string",
              "null"
            ]
          },
          "subject": {
            "type": [
              "string",
              "null"
            ]
          },
          "topic": {
            "type": [
              "string",
              "null"
            ]
          },
          "relevance_percent": {
            "type": [
              "number",
              "null"
            ]
          },
          "url": {
            "type": "string"
          }
        },
        "additionalProperties": true
      }
    },
    "empty_reason": {
      "type": "string"
    },
    "note": {
      "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