Entscheidsuche — Schweizer Gerichtsentscheide is an MCP server published by ch.entscheidsuche, hosted at mcp.entscheidsuche.ch. When last checked on 2026-11-24 it was working: it answers and lists its tools. It declares 9 tools, including search, semantic_search, keyword_search, search_by_case_number, fetch_document.
Suche in Schweizer Gerichtsentscheiden aller Instanzen (Bund, Kantone) in DE/FR/IT.
Nothing else in the archive shares these values.
Squares are this server's values; dots are other servers sharing them. A shared address or publisher is a lead, not proof of a common operator.
Inferred from the host name and headers: what a server runs on, not who runs it.
Default search for Swiss court decisions and case law on entscheidsuche.ch (Federal Supreme Court BGer/BGE and cantonal courts; German, French, Italian). Use this tool unless you need something specific. Describe the legal question or the facts in natural language, in any language — the search works by meaning (AI embedding search, same as `semantic_search`) and also finds decisions that use different words or are written in another language. Each hit comes with the passage of the decision that best matches the query. The tool switches to exact keyword search (same as `keyword_search`) automatically when the query is a case number or citation (e.g. '5A_396/2015', 'BGE 142 III 1'), contains a quoted phrase, Boolean operators or wildcards, is empty or '*', or when `sort`, `search_after` or `include_aggregations` is used. The response field `search_mode` says which search ran. Read the full text of a hit with `fetch` (or `fetch_document`), passing the hit's `id`. Filters are combined with AND. Hierarchy IDs (canton / court / chamber, e.g. 'CH_BGer', 'ZH_OG') are case-sensitive; take them from `list_hierarchy` or `list_facets`.
| Parameter | Type | Description |
|---|---|---|
| size | integer | Number of decisions to return (AI search: at most 50). |
| sort | string | Keyword search only: 'relevance' | 'date' (decision date) | 'scrapedate'. Any value other than 'relevance' switches to keyword search. |
| query | string | The legal question or facts in natural language (any language), or a case number / citation. |
| language | any | Preferred language (de, fr, it) for the displayed title and abstract. Does NOT filter — use `language_filter` for that. |
| hierarchy | any | Restrict to cantons, courts or chambers by hierarchy ID, e.g. ['CH_BGer'] or ['ZH_OG', 'BE']. Several IDs are combined with OR. |
| search_after | any | Keyword search only: cursor from `next_cursor` of the previous response. |
| scrape_date_to | any | Latest date the decision was added to the index (YYYY-MM-DD). |
| include_context | boolean | AI search only: also return, per hit, the larger section of the decision around the matching passage (up to about 6,000 characters each, field `context`). |
| language_filter | any | Only decisions written in these languages, e.g. ['fr']. |
| decision_date_to | any | Latest decision date (YYYY-MM-DD, inclusive). |
| scrape_date_from | any | Earliest date the decision was added to the index (YYYY-MM-DD). |
| decision_date_from | any | Earliest decision date (YYYY-MM-DD, inclusive). |
| include_aggregations | boolean | Keyword search only: include distributions over the results. |
{
"name": "search",
"title": "Search Swiss case law (default)",
"description": "Default search for Swiss court decisions and case law on entscheidsuche.ch (Federal Supreme Court BGer/BGE and cantonal courts; German, French, Italian). Use this tool unless you need something specific.\n\nDescribe the legal question or the facts in natural language, in any language — the search works by meaning (AI embedding search, same as `semantic_search`) and also finds decisions that use different words or are written in another language. Each hit comes with the passage of the decision that best matches the query.\n\nThe tool switches to exact keyword search (same as `keyword_search`) automatically when the query is a case number or citation (e.g. '5A_396/2015', 'BGE 142 III 1'), contains a quoted phrase, Boolean operators or wildcards, is empty or '*', or when `sort`, `search_after` or `include_aggregations` is used. The response field `search_mode` says which search ran.\n\nRead the full text of a hit with `fetch` (or `fetch_document`), passing the hit's `id`. Filters are combined with AND. Hierarchy IDs (canton / court / chamber, e.g. 'CH_BGer', 'ZH_OG') are case-sensitive; take them from `list_hierarchy` or `list_facets`.",
"inputSchema": {
"type": "object",
"$defs": {
"Language": {
"enum": [
"de",
"fr",
"it"
],
"type": "string",
"title": "Language",
"description": "Verfügbare Sprachen der Entscheide."
}
},
"title": "searchArguments",
"properties": {
"size": {
"type": "integer",
"title": "Size",
"default": 10,
"maximum": 100,
"minimum": 1,
"description": "Number of decisions to return (AI search: at most 50)."
},
"sort": {
"enum": [
"relevance",
"date",
"scrapedate"
],
"type": "string",
"title": "Sort",
"default": "relevance",
"description": "Keyword search only: 'relevance' | 'date' (decision date) | 'scrapedate'. Any value other than 'relevance' switches to keyword search."
},
"query": {
"type": "string",
"title": "Query",
"default": "*",
"description": "The legal question or facts in natural language (any language), or a case number / citation."
},
"language": {
"anyOf": [
{
"$ref": "#/$defs/Language"
},
{
"type": "null"
}
],
"default": null,
"description": "Preferred language (de, fr, it) for the displayed title and abstract. Does NOT filter — use `language_filter` for that."
},
"hierarchy": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "null"
}
],
"title": "Hierarchy",
"default": null,
"description": "Restrict to cantons, courts or chambers by hierarchy ID, e.g. ['CH_BGer'] or ['ZH_OG', 'BE']. Several IDs are combined with OR."
},
"search_after": {
"anyOf": [
{
"type": "array",
"items": {}
},
{
"type": "null"
}
],
"title": "Search After",
"default": null,
"description": "Keyword search only: cursor from `next_cursor` of the previous response."
},
"scrape_date_to": {
"anyOf": [
{
"type": "string",
"format": "date"
},
{
"type": "null"
}
],
"title": "Scrape Date To",
"default": null,
"description": "Latest date the decision was added to the index (YYYY-MM-DD)."
},
"include_context": {
"type": "boolean",
"title": "Include Context",
"default": false,
"description": "AI search only: also return, per hit, the larger section of the decision around the matching passage (up to about 6,000 characters each, field `context`)."
},
"language_filter": {
"anyOf": [
{
"type": "array",
"items": {
"$ref": "#/$defs/Language"
}
},
{
"type": "null"
}
],
"title": "Language Filter",
"default": null,
"description": "Only decisions written in these languages, e.g. ['fr']."
},
"decision_date_to": {
"anyOf": [
{
"type": "string",
"format": "date"
},
{
"type": "null"
}
],
"title": "Decision Date To",
"default": null,
"description": "Latest decision date (YYYY-MM-DD, inclusive)."
},
"scrape_date_from": {
"anyOf": [
{
"type": "string",
"format": "date"
},
{
"type": "null"
}
],
"title": "Scrape Date From",
"default": null,
"description": "Earliest date the decision was added to the index (YYYY-MM-DD)."
},
"decision_date_from": {
"anyOf": [
{
"type": "string",
"format": "date"
},
{
"type": "null"
}
],
"title": "Decision Date From",
"default": null,
"description": "Earliest decision date (YYYY-MM-DD, inclusive)."
},
"include_aggregations": {
"type": "boolean",
"title": "Include Aggregations",
"default": false,
"description": "Keyword search only: include distributions over the results."
}
}
},
"outputSchema": {
"type": "object",
"$defs": {
"ResultRef": {
"type": "object",
"title": "ResultRef",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Url",
"default": null
},
"title": {
"type": "string",
"title": "Title",
"default": ""
}
},
"description": "Kompakter Treffer-Verweis (id, title, url) für Clients, die genau dieses Format erwarten."
},
"SearchHit": {
"type": "object",
"title": "SearchHit",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Url",
"default": null,
"description": "Web page of the decision on entscheidsuche.ch (use this link for citations)."
},
"meta": {
"type": "string",
"title": "Meta",
"default": ""
},
"sort": {
"anyOf": [
{
"type": "array",
"items": {}
},
{
"type": "null"
}
],
"title": "Sort",
"default": null,
"description": "Sort values of the hit (for search_after)."
},
"text": {
"type": "string",
"title": "Text",
"default": "",
"description": "Excerpt from the decision. Keyword search: highlight snippet with the matched terms wrapped in <em>…</em>. Semantic search: the passage of the decision that best matches the query. `fetch_document`: the full text."
},
"court": {
"type": "string",
"title": "Court",
"default": "",
"description": "Court (derived from the ID)."
},
"score": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Score",
"default": null,
"description": "Semantic search only: similarity between the query and the best matching passage of this decision (higher is better)."
},
"title": {
"type": "string",
"title": "Title",
"default": ""
},
"canton": {
"type": "string",
"title": "Canton",
"default": ""
},
"is_pdf": {
"type": "boolean",
"title": "Is Pdf",
"default": false
},
"context": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Context",
"default": null,
"description": "Semantic search with `include_context=true` only: the larger section of the decision (up to about 6,000 characters) that contains the passage in `text`."
},
"abstract": {
"type": "string",
"title": "Abstract",
"default": ""
},
"scrape_date": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Scrape Date",
"default": null,
"description": "ISO date YYYY-MM-DD."
},
"document_url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Document Url",
"default": null,
"description": "Direct download link to the original document."
},
"original_url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Original Url",
"default": null,
"description": "URL of the original source web page."
},
"decision_date": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Decision Date",
"default": null,
"description": "ISO date YYYY-MM-DD."
},
"content_length": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Content Length",
"default": null,
"description": "Length of the indexed full text in characters. Only set by `fetch_document`."
},
"text_truncated": {
"type": "boolean",
"title": "Text Truncated",
"default": false,
"description": "True if the indexed full text was truncated by Elasticsearch at 100,000 characters. In that case `text` contains only the beginning of the decision; the complete document is available at `document_url`."
}
},
"description": "Ein einzelner Such-Treffer."
},
"AggregationBucket": {
"type": "object",
"title": "AggregationBucket",
"required": [
"key",
"count"
],
"properties": {
"key": {
"title": "Key"
},
"count": {
"type": "integer",
"title": "Count"
}
}
}
},
"title": "SearchResponse",
"required": [
"total",
"hits"
],
"properties": {
"hits": {
"type": "array",
"items": {
"$ref": "#/$defs/SearchHit"
},
"title": "Hits"
},
"note": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Note",
"default": null,
"description": "Remarks on how the query was executed, e.g. that it was not valid search syntax and was searched as plain terms."
},
"total": {
"type": "integer",
"title": "Total",
"description": "Keyword search: number of all matching decisions. Semantic search: number of decisions among the best-matching passages."
},
"results": {
"anyOf": [
{
"type": "array",
"items": {
"$ref": "#/$defs/ResultRef"
}
},
{
"type": "null"
}
],
"title": "Results",
"default": null,
"description": "Only set by the `search` tool: compact list (id, title, url) of the same decisions as in `hits`, in the same order."
},
"next_cursor": {
"anyOf": [
{
"type": "array",
"items": {}
},
{
"type": "null"
}
],
"title": "Next Cursor",
"default": null,
"description": "Cursor for the next page. Pass it again as `search_after` in the next request. None if there are no further results."
},
"search_mode": {
"type": "string",
"title": "Search Mode",
"default": "keyword",
"description": "Which search was executed: 'keyword' or 'semantic'."
},
"aggregations": {
"anyOf": [
{
"type": "object",
"additionalProperties": {
"type": "array",
"items": {
"$ref": "#/$defs/AggregationBucket"
}
}
},
{
"type": "null"
}
],
"title": "Aggregations",
"default": null
}
},
"description": "Antwort der Such-Tools."
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}AI search by meaning (semantic / embedding search) across Swiss court decisions on entscheidsuche.ch. Best for legal questions, descriptions of facts and concepts: write one or more full sentences instead of keywords, e.g. 'Can a landlord terminate the lease because his daughter wants to move in?'. Works across languages: a German query also finds French and Italian decisions. How it works: the query is compared with the passages of all decisions; the 100 best-matching passages are determined and grouped by decision. Results are ranked by similarity (`score`); `text` contains the best matching passage of each decision. There is no pagination, no other sort order and no Boolean syntax — use `keyword_search` for exact terms, `search_by_case_number` for case numbers. Filters are combined with AND. Hierarchy IDs (canton / court / chamber, e.g. 'CH_BGer', 'ZH_OG') are case-sensitive; take them from `list_hierarchy` or `list_facets`.
| Parameter | Type | Description |
|---|---|---|
| size | integer | Number of decisions to return (1–50). |
| query * | string | Legal question or description of the facts in natural language, ideally one or more full sentences. Any language. |
| language | any | Preferred language (de, fr, it) for the displayed title and abstract. Does NOT filter — use `language_filter` for that. |
| hierarchy | any | Restrict to cantons, courts or chambers by hierarchy ID, e.g. ['CH_BGer'] or ['ZH_OG', 'BE']. Several IDs are combined with OR. |
| scrape_date_to | any | Latest date the decision was added to the index (YYYY-MM-DD). |
| include_context |
Exact keyword (full-text) search across Swiss court decisions on entscheidsuche.ch. Finds decisions that contain the given words. Use it for specific terms, statute articles, names, quoted phrases, complete result lists, sorting by date and pagination. For legal questions in natural language prefer `semantic_search`. Search syntax (Lucene query string): - All terms must occur (default operator AND). - Phrase: "dringender Eigenbedarf" (double quotes). - Boolean operators in capitals between terms: AND, OR, NOT. - Wildcards: * and ? — '*' alone matches every decision. - Statute citations work as written: Art. 271 OR, Art. 8 ZGB. - Put case numbers in quotes ("5A_396/2015") or use `search_by_case_number`. If a query is not valid syntax it is searched as plain terms and the response says so in `note`. `text` contains a snippet with the matched terms in <em>…</em>. Filters are combined with AND. Hierarchy IDs (canton / court / chamber, e.g. 'CH_BGer', 'ZH_OG') are case-sensitive; take them from `list_hierarchy` or `list_facets`. Pagination: pass `next_cursor` of the response as `search_after` in the next call (same query, same sort).
| Parameter | Type | Description |
|---|---|---|
| size | integer | Results per page (1–100). |
| sort | string | Sort order: 'relevance' (default) | 'date' (decision date, newest first) | 'scrapedate' (date added to the index, newest first). |
| query | string | Search terms. "..." for phrases, AND/OR/NOT for Boolean operators, * and ? for wildcards. "*" matches everything. |
| language | any | Preferred language (de, fr, it) for the displayed title and abstract. Does NOT filter — use `language_filter` for that. |
| hierarchy | any |
Look up Swiss court decisions by case number, docket reference or BGE citation, e.g. 'BGE 142 III 1', '5A_396/2015' or 'ZB.2021.48'. The reference is searched as an exact phrase; the decision itself normally comes first, followed by decisions that cite it.
| Parameter | Type | Description |
|---|---|---|
| size | integer | Results per page (1–100). |
| sort | string | Sort order: 'relevance' (default) | 'date' (decision date, newest first) | 'scrapedate' (date added to the index, newest first). |
| language | any | Preferred language (de, fr, it) for the displayed title and abstract. Does NOT filter — use `language_filter` for that. |
| hierarchy | any | Restrict to cantons, courts or chambers by hierarchy ID, e.g. ['CH_BGer'] or ['ZH_OG', 'BE']. Several IDs are combined with OR. |
| case_number * | string | Case number (docket reference), BGE citation or judgment number, e.g. 'BGE 142 III 1' or '5A_396/2015'. |
| search_after | any | Cursor from `next_cursor` of the previous response. |
| scrape_date_to | any | Latest date the decision was added to the index (YYYY-MM-DD). |
| language_filter | any | Only decisions written in these languages, e.g. ['fr']. |
Fetch one Swiss court decision by its document ID and return its full text together with title, court, date and links. Use the `id` of a hit returned by one of the search tools. For very long decisions the text is capped at 100,000 characters; if `text_truncated` is true, the complete document is available at `document_url`.
| Parameter | Type | Description |
|---|---|---|
| id * | string | Document ID of a search hit, e.g. 'CH_BGer_005_5A-396-2015_2017-06-22'. |
| language | any | Preferred language (de, fr, it) for title and abstract. |
{
"name": "fetch_document",
"title": "Fetch decision (full text)",
"description": "Fetch one Swiss court decision by its document ID and return its full text together with title, court, date and links. Use the `id` of a hit returned by one of the search tools. For very long decisions the text is capped at 100,000 characters; if `text_truncated` is true, the complete document is available at `document_url`.",
"inputSchema": {
"type": "object",
"$defs": {
"Language": {
"enum": [
"de",
"fr",
"it"
],
"type": "string",
"title": "Language",
"description": "Verfügbare Sprachen der Entscheide."
}
},
"title": "fetch_documentArguments",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"title": "Id",
"description": "Document ID of a search hit, e.g. 'CH_BGer_005_5A-396-2015_2017-06-22'."
},
"language": {
"anyOf": [
{
"$ref": "#/$defs/Language"
},
{
"type": "null"
}
],
"default": null,
"description": "Preferred language (de, fr, it) for title and abstract."
}
}
},
"outputSchema": {
"type": "object",
"title": "SearchHit",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Url",
"default": null,
"description": "Web page of the decision on entscheidsuche.ch (use this link for citations)."
},
"meta": {
"type": "string",
"title": "Meta",
"default": ""
},
"sort": {
"anyOf": [
{
"type": "array",
"items": {}
},
{
"type": "null"
}
],
"title": "Sort",
"default": null,
"description": "Sort values of the hit (for search_after)."
},
"text": {
"type": "string",
"title": "Text",
"default": "",
"description": "Excerpt from the decision. Keyword search: highlight snippet with the matched terms wrapped in <em>…</em>. Semantic search: the passage of the decision that best matches the query. `fetch_document`: the full text."
},
"court": {
"type": "string",
"title": "Court",
"default": "",
"description": "Court (derived from the ID)."
},
"score": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Score",
"default": null,
"description": "Semantic search only: similarity between the query and the best matching passage of this decision (higher is better)."
},
"title": {
"type": "string",
"title": "Title",
"default": ""
},
"canton": {
"type": "string",
"title": "Canton",
"default": ""
},
"is_pdf": {
"type": "boolean",
"title": "Is Pdf",
"default": false
},
"context": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Context",
"default": null,
"description": "Semantic search with `include_context=true` only: the larger section of the decision (up to about 6,000 characters) that contains the passage in `text`."
},
"abstract": {
"type": "string",
"title": "Abstract",
"default": ""
},
"scrape_date": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Scrape Date",
"default": null,
"description": "ISO date YYYY-MM-DD."
},
"document_url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Document Url",
"default": null,
"description": "Direct download link to the original document."
},
"original_url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Original Url",
"default": null,
"description": "URL of the original source web page."
},
"decision_date": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Decision Date",
"default": null,
"description": "ISO date YYYY-MM-DD."
},
"content_length": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Content Length",
"default": null,
"description": "Length of the indexed full text in characters. Only set by `fetch_document`."
},
"text_truncated": {
"type": "boolean",
"title": "Text Truncated",
"default": false,
"description": "True if the indexed full text was truncated by Elasticsearch at 100,000 characters. In that case `text` contains only the beginning of the decision; the complete document is available at `document_url`."
}
},
"description": "Ein einzelner Such-Treffer."
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}Fetch one Swiss court decision by its document ID and return its full text together with title, court, date and links. Use the `id` of a hit returned by one of the search tools. For very long decisions the text is capped at 100,000 characters; if `text_truncated` is true, the complete document is available at `document_url`. Identical to `fetch_document`.
| Parameter | Type | Description |
|---|---|---|
| id * | string | Document ID of a search hit, e.g. 'CH_BGer_005_5A-396-2015_2017-06-22'. |
| language | any | Preferred language (de, fr, it) for title and abstract. |
{
"name": "fetch",
"title": "Fetch decision (alias of fetch_document)",
"description": "Fetch one Swiss court decision by its document ID and return its full text together with title, court, date and links. Use the `id` of a hit returned by one of the search tools. For very long decisions the text is capped at 100,000 characters; if `text_truncated` is true, the complete document is available at `document_url`. Identical to `fetch_document`.",
"inputSchema": {
"type": "object",
"$defs": {
"Language": {
"enum": [
"de",
"fr",
"it"
],
"type": "string",
"title": "Language",
"description": "Verfügbare Sprachen der Entscheide."
}
},
"title": "fetchArguments",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"title": "Id",
"description": "Document ID of a search hit, e.g. 'CH_BGer_005_5A-396-2015_2017-06-22'."
},
"language": {
"anyOf": [
{
"$ref": "#/$defs/Language"
},
{
"type": "null"
}
],
"default": null,
"description": "Preferred language (de, fr, it) for title and abstract."
}
}
},
"outputSchema": {
"type": "object",
"title": "SearchHit",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Url",
"default": null,
"description": "Web page of the decision on entscheidsuche.ch (use this link for citations)."
},
"meta": {
"type": "string",
"title": "Meta",
"default": ""
},
"sort": {
"anyOf": [
{
"type": "array",
"items": {}
},
{
"type": "null"
}
],
"title": "Sort",
"default": null,
"description": "Sort values of the hit (for search_after)."
},
"text": {
"type": "string",
"title": "Text",
"default": "",
"description": "Excerpt from the decision. Keyword search: highlight snippet with the matched terms wrapped in <em>…</em>. Semantic search: the passage of the decision that best matches the query. `fetch_document`: the full text."
},
"court": {
"type": "string",
"title": "Court",
"default": "",
"description": "Court (derived from the ID)."
},
"score": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Score",
"default": null,
"description": "Semantic search only: similarity between the query and the best matching passage of this decision (higher is better)."
},
"title": {
"type": "string",
"title": "Title",
"default": ""
},
"canton": {
"type": "string",
"title": "Canton",
"default": ""
},
"is_pdf": {
"type": "boolean",
"title": "Is Pdf",
"default": false
},
"context": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Context",
"default": null,
"description": "Semantic search with `include_context=true` only: the larger section of the decision (up to about 6,000 characters) that contains the passage in `text`."
},
"abstract": {
"type": "string",
"title": "Abstract",
"default": ""
},
"scrape_date": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Scrape Date",
"default": null,
"description": "ISO date YYYY-MM-DD."
},
"document_url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Document Url",
"default": null,
"description": "Direct download link to the original document."
},
"original_url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Original Url",
"default": null,
"description": "URL of the original source web page."
},
"decision_date": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Decision Date",
"default": null,
"description": "ISO date YYYY-MM-DD."
},
"content_length": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Content Length",
"default": null,
"description": "Length of the indexed full text in characters. Only set by `fetch_document`."
},
"text_truncated": {
"type": "boolean",
"title": "Text Truncated",
"default": false,
"description": "True if the indexed full text was truncated by Elasticsearch at 100,000 characters. In that case `text` contains only the beginning of the decision; the complete document is available at `document_url`."
}
},
"description": "Ein einzelner Such-Treffer."
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}Returns the hierarchy IDs of Swiss cantons, courts and chambers together with the number of decisions, optionally restricted to the decisions matching a keyword query. Use the IDs in the `hierarchy` filter of the search tools.
| Parameter | Type | Description |
|---|---|---|
| size | integer | Maximum number of entries. |
| query | string | Optional keyword query (same syntax as `keyword_search`). |
{
"name": "list_hierarchy",
"title": "List courts with decision counts",
"description": "Returns the hierarchy IDs of Swiss cantons, courts and chambers together with the number of decisions, optionally restricted to the decisions matching a keyword query. Use the IDs in the `hierarchy` filter of the search tools.",
"inputSchema": {
"type": "object",
"title": "list_hierarchyArguments",
"properties": {
"size": {
"type": "integer",
"title": "Size",
"default": 1000,
"maximum": 10000,
"minimum": 1,
"description": "Maximum number of entries."
},
"query": {
"type": "string",
"title": "Query",
"default": "*",
"description": "Optional keyword query (same syntax as `keyword_search`)."
}
}
},
"outputSchema": {
"type": "object",
"$defs": {
"HierarchyEntry": {
"type": "object",
"title": "HierarchyEntry",
"required": [
"id",
"count"
],
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"count": {
"type": "integer",
"title": "Count"
}
}
}
},
"title": "HierarchyResponse",
"required": [
"entries"
],
"properties": {
"entries": {
"type": "array",
"items": {
"$ref": "#/$defs/HierarchyEntry"
},
"title": "Entries"
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}Tree of all cantons, courts and chambers with their names in German, French and Italian. The `id` fields can be used in the `hierarchy` filter of the search tools.
No parameters.
{
"name": "list_facets",
"title": "Court tree with names (canton / court / chamber)",
"description": "Tree of all cantons, courts and chambers with their names in German, French and Italian. The `id` fields can be used in the `hierarchy` filter of the search tools.",
"inputSchema": {
"type": "object",
"title": "list_facetsArguments",
"properties": {}
},
"outputSchema": {
"type": "object",
"$defs": {
"FacetNode": {
"type": "object",
"title": "FacetNode",
"required": [
"id",
"label"
],
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"label": {
"$ref": "#/$defs/FacetLabel"
},
"children": {
"anyOf": [
{
"type": "array",
"items": {
"$ref": "#/$defs/FacetNode"
}
},
{
"type": "null"
}
],
"title": "Children",
"default": null
}
}
},
"FacetLabel": {
"type": "object",
"title": "FacetLabel",
"properties": {
"de": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "De",
"default": null
},
"en": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "En",
"default": null
},
"fr": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Fr",
"default": null
},
"it": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "It",
"default": null
}
}
}
},
"title": "FacetsResponse",
"required": [
"facets"
],
"properties": {
"facets": {
"type": "array",
"items": {
"$ref": "#/$defs/FacetNode"
},
"title": "Facets"
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}Version and configured endpoints of this MCP server for Swiss case law.
No parameters.
{
"name": "server_info",
"title": "Server info",
"description": "Version and configured endpoints of this MCP server for Swiss case law.",
"inputSchema": {
"type": "object",
"title": "server_infoArguments",
"properties": {}
},
"outputSchema": {
"type": "object",
"title": "server_infoDictOutput",
"additionalProperties": true
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}MCP server for entscheidsuche.ch — the open search engine for Swiss court decisions and case law (Schweizer Gerichtsentscheide, Rechtsprechung, jurisprudence suisse): Federal Supreme Court (BGer, BGE) and cantonal courts, in German, French and Italian. Tools: `search` is the default — describe the legal question in natural language (AI search by meaning). `semantic_search` is the same AI search without automatic switching. `keyword_search` finds exact words, phrases and Boolean expressions and supports sorting and pagination. `search_by_case_number` looks up case numbers and BGE citations. `fetch` / `fetch_document` return the full text of a decision. `list_hierarchy` and `list_facets` list cantons, courts and chambers for the `hierarchy` filter.
Names, descriptions and schemas were written by the server and are shown as data.
Pattern matches on what the server declares. They show what it says it can do, not what it does.
Too large to show here.
| boolean |
| AI search only: also return, per hit, the larger section of the decision around the matching passage (up to about 6,000 characters each, field `context`). |
| language_filter | any | Only decisions written in these languages, e.g. ['fr']. |
| decision_date_to | any | Latest decision date (YYYY-MM-DD, inclusive). |
| scrape_date_from | any | Earliest date the decision was added to the index (YYYY-MM-DD). |
| decision_date_from | any | Earliest decision date (YYYY-MM-DD, inclusive). |
{
"name": "semantic_search",
"title": "AI search by meaning (semantic search)",
"description": "AI search by meaning (semantic / embedding search) across Swiss court decisions on entscheidsuche.ch. Best for legal questions, descriptions of facts and concepts: write one or more full sentences instead of keywords, e.g. 'Can a landlord terminate the lease because his daughter wants to move in?'. Works across languages: a German query also finds French and Italian decisions.\n\nHow it works: the query is compared with the passages of all decisions; the 100 best-matching passages are determined and grouped by decision. Results are ranked by similarity (`score`); `text` contains the best matching passage of each decision. There is no pagination, no other sort order and no Boolean syntax — use `keyword_search` for exact terms, `search_by_case_number` for case numbers.\n\nFilters are combined with AND. Hierarchy IDs (canton / court / chamber, e.g. 'CH_BGer', 'ZH_OG') are case-sensitive; take them from `list_hierarchy` or `list_facets`.",
"inputSchema": {
"type": "object",
"$defs": {
"Language": {
"enum": [
"de",
"fr",
"it"
],
"type": "string",
"title": "Language",
"description": "Verfügbare Sprachen der Entscheide."
}
},
"title": "semantic_searchArguments",
"required": [
"query"
],
"properties": {
"size": {
"type": "integer",
"title": "Size",
"default": 10,
"maximum": 50,
"minimum": 1,
"description": "Number of decisions to return (1–50)."
},
"query": {
"type": "string",
"title": "Query",
"description": "Legal question or description of the facts in natural language, ideally one or more full sentences. Any language."
},
"language": {
"anyOf": [
{
"$ref": "#/$defs/Language"
},
{
"type": "null"
}
],
"default": null,
"description": "Preferred language (de, fr, it) for the displayed title and abstract. Does NOT filter — use `language_filter` for that."
},
"hierarchy": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "null"
}
],
"title": "Hierarchy",
"default": null,
"description": "Restrict to cantons, courts or chambers by hierarchy ID, e.g. ['CH_BGer'] or ['ZH_OG', 'BE']. Several IDs are combined with OR."
},
"scrape_date_to": {
"anyOf": [
{
"type": "string",
"format": "date"
},
{
"type": "null"
}
],
"title": "Scrape Date To",
"default": null,
"description": "Latest date the decision was added to the index (YYYY-MM-DD)."
},
"include_context": {
"type": "boolean",
"title": "Include Context",
"default": false,
"description": "AI search only: also return, per hit, the larger section of the decision around the matching passage (up to about 6,000 characters each, field `context`)."
},
"language_filter": {
"anyOf": [
{
"type": "array",
"items": {
"$ref": "#/$defs/Language"
}
},
{
"type": "null"
}
],
"title": "Language Filter",
"default": null,
"description": "Only decisions written in these languages, e.g. ['fr']."
},
"decision_date_to": {
"anyOf": [
{
"type": "string",
"format": "date"
},
{
"type": "null"
}
],
"title": "Decision Date To",
"default": null,
"description": "Latest decision date (YYYY-MM-DD, inclusive)."
},
"scrape_date_from": {
"anyOf": [
{
"type": "string",
"format": "date"
},
{
"type": "null"
}
],
"title": "Scrape Date From",
"default": null,
"description": "Earliest date the decision was added to the index (YYYY-MM-DD)."
},
"decision_date_from": {
"anyOf": [
{
"type": "string",
"format": "date"
},
{
"type": "null"
}
],
"title": "Decision Date From",
"default": null,
"description": "Earliest decision date (YYYY-MM-DD, inclusive)."
}
}
},
"outputSchema": {
"type": "object",
"$defs": {
"ResultRef": {
"type": "object",
"title": "ResultRef",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Url",
"default": null
},
"title": {
"type": "string",
"title": "Title",
"default": ""
}
},
"description": "Kompakter Treffer-Verweis (id, title, url) für Clients, die genau dieses Format erwarten."
},
"SearchHit": {
"type": "object",
"title": "SearchHit",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Url",
"default": null,
"description": "Web page of the decision on entscheidsuche.ch (use this link for citations)."
},
"meta": {
"type": "string",
"title": "Meta",
"default": ""
},
"sort": {
"anyOf": [
{
"type": "array",
"items": {}
},
{
"type": "null"
}
],
"title": "Sort",
"default": null,
"description": "Sort values of the hit (for search_after)."
},
"text": {
"type": "string",
"title": "Text",
"default": "",
"description": "Excerpt from the decision. Keyword search: highlight snippet with the matched terms wrapped in <em>…</em>. Semantic search: the passage of the decision that best matches the query. `fetch_document`: the full text."
},
"court": {
"type": "string",
"title": "Court",
"default": "",
"description": "Court (derived from the ID)."
},
"score": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Score",
"default": null,
"description": "Semantic search only: similarity between the query and the best matching passage of this decision (higher is better)."
},
"title": {
"type": "string",
"title": "Title",
"default": ""
},
"canton": {
"type": "string",
"title": "Canton",
"default": ""
},
"is_pdf": {
"type": "boolean",
"title": "Is Pdf",
"default": false
},
"context": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Context",
"default": null,
"description": "Semantic search with `include_context=true` only: the larger section of the decision (up to about 6,000 characters) that contains the passage in `text`."
},
"abstract": {
"type": "string",
"title": "Abstract",
"default": ""
},
"scrape_date": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Scrape Date",
"default": null,
"description": "ISO date YYYY-MM-DD."
},
"document_url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Document Url",
"default": null,
"description": "Direct download link to the original document."
},
"original_url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Original Url",
"default": null,
"description": "URL of the original source web page."
},
"decision_date": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Decision Date",
"default": null,
"description": "ISO date YYYY-MM-DD."
},
"content_length": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Content Length",
"default": null,
"description": "Length of the indexed full text in characters. Only set by `fetch_document`."
},
"text_truncated": {
"type": "boolean",
"title": "Text Truncated",
"default": false,
"description": "True if the indexed full text was truncated by Elasticsearch at 100,000 characters. In that case `text` contains only the beginning of the decision; the complete document is available at `document_url`."
}
},
"description": "Ein einzelner Such-Treffer."
},
"AggregationBucket": {
"type": "object",
"title": "AggregationBucket",
"required": [
"key",
"count"
],
"properties": {
"key": {
"title": "Key"
},
"count": {
"type": "integer",
"title": "Count"
}
}
}
},
"title": "SearchResponse",
"required": [
"total",
"hits"
],
"properties": {
"hits": {
"type": "array",
"items": {
"$ref": "#/$defs/SearchHit"
},
"title": "Hits"
},
"note": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Note",
"default": null,
"description": "Remarks on how the query was executed, e.g. that it was not valid search syntax and was searched as plain terms."
},
"total": {
"type": "integer",
"title": "Total",
"description": "Keyword search: number of all matching decisions. Semantic search: number of decisions among the best-matching passages."
},
"results": {
"anyOf": [
{
"type": "array",
"items": {
"$ref": "#/$defs/ResultRef"
}
},
{
"type": "null"
}
],
"title": "Results",
"default": null,
"description": "Only set by the `search` tool: compact list (id, title, url) of the same decisions as in `hits`, in the same order."
},
"next_cursor": {
"anyOf": [
{
"type": "array",
"items": {}
},
{
"type": "null"
}
],
"title": "Next Cursor",
"default": null,
"description": "Cursor for the next page. Pass it again as `search_after` in the next request. None if there are no further results."
},
"search_mode": {
"type": "string",
"title": "Search Mode",
"default": "keyword",
"description": "Which search was executed: 'keyword' or 'semantic'."
},
"aggregations": {
"anyOf": [
{
"type": "object",
"additionalProperties": {
"type": "array",
"items": {
"$ref": "#/$defs/AggregationBucket"
}
}
},
{
"type": "null"
}
],
"title": "Aggregations",
"default": null
}
},
"description": "Antwort der Such-Tools."
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}| Restrict to cantons, courts or chambers by hierarchy ID, e.g. ['CH_BGer'] or ['ZH_OG', 'BE']. Several IDs are combined with OR. |
| search_after | any | Cursor from `next_cursor` of the previous response. |
| scrape_date_to | any | Latest date the decision was added to the index (YYYY-MM-DD). |
| language_filter | any | Only decisions written in these languages, e.g. ['fr']. |
| decision_date_to | any | Latest decision date (YYYY-MM-DD, inclusive). |
| scrape_date_from | any | Earliest date the decision was added to the index (YYYY-MM-DD). |
| decision_date_from | any | Earliest decision date (YYYY-MM-DD, inclusive). |
| include_aggregations | boolean | Also return distributions of the results by court, language and date. |
{
"name": "keyword_search",
"title": "Keyword search (exact terms)",
"description": "Exact keyword (full-text) search across Swiss court decisions on entscheidsuche.ch. Finds decisions that contain the given words. Use it for specific terms, statute articles, names, quoted phrases, complete result lists, sorting by date and pagination. For legal questions in natural language prefer `semantic_search`.\n\nSearch syntax (Lucene query string):\n - All terms must occur (default operator AND).\n - Phrase: \"dringender Eigenbedarf\" (double quotes).\n - Boolean operators in capitals between terms: AND, OR, NOT.\n - Wildcards: * and ? — '*' alone matches every decision.\n - Statute citations work as written: Art. 271 OR, Art. 8 ZGB.\n - Put case numbers in quotes (\"5A_396/2015\") or use `search_by_case_number`.\nIf a query is not valid syntax it is searched as plain terms and the response says so in `note`.\n\n`text` contains a snippet with the matched terms in <em>…</em>. Filters are combined with AND. Hierarchy IDs (canton / court / chamber, e.g. 'CH_BGer', 'ZH_OG') are case-sensitive; take them from `list_hierarchy` or `list_facets`.\n\nPagination: pass `next_cursor` of the response as `search_after` in the next call (same query, same sort).",
"inputSchema": {
"type": "object",
"$defs": {
"Language": {
"enum": [
"de",
"fr",
"it"
],
"type": "string",
"title": "Language",
"description": "Verfügbare Sprachen der Entscheide."
}
},
"title": "keyword_searchArguments",
"properties": {
"size": {
"type": "integer",
"title": "Size",
"default": 20,
"maximum": 100,
"minimum": 1,
"description": "Results per page (1–100)."
},
"sort": {
"enum": [
"relevance",
"date",
"scrapedate"
],
"type": "string",
"title": "Sort",
"default": "relevance",
"description": "Sort order: 'relevance' (default) | 'date' (decision date, newest first) | 'scrapedate' (date added to the index, newest first)."
},
"query": {
"type": "string",
"title": "Query",
"default": "*",
"description": "Search terms. \"...\" for phrases, AND/OR/NOT for Boolean operators, * and ? for wildcards. \"*\" matches everything."
},
"language": {
"anyOf": [
{
"$ref": "#/$defs/Language"
},
{
"type": "null"
}
],
"default": null,
"description": "Preferred language (de, fr, it) for the displayed title and abstract. Does NOT filter — use `language_filter` for that."
},
"hierarchy": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "null"
}
],
"title": "Hierarchy",
"default": null,
"description": "Restrict to cantons, courts or chambers by hierarchy ID, e.g. ['CH_BGer'] or ['ZH_OG', 'BE']. Several IDs are combined with OR."
},
"search_after": {
"anyOf": [
{
"type": "array",
"items": {}
},
{
"type": "null"
}
],
"title": "Search After",
"default": null,
"description": "Cursor from `next_cursor` of the previous response."
},
"scrape_date_to": {
"anyOf": [
{
"type": "string",
"format": "date"
},
{
"type": "null"
}
],
"title": "Scrape Date To",
"default": null,
"description": "Latest date the decision was added to the index (YYYY-MM-DD)."
},
"language_filter": {
"anyOf": [
{
"type": "array",
"items": {
"$ref": "#/$defs/Language"
}
},
{
"type": "null"
}
],
"title": "Language Filter",
"default": null,
"description": "Only decisions written in these languages, e.g. ['fr']."
},
"decision_date_to": {
"anyOf": [
{
"type": "string",
"format": "date"
},
{
"type": "null"
}
],
"title": "Decision Date To",
"default": null,
"description": "Latest decision date (YYYY-MM-DD, inclusive)."
},
"scrape_date_from": {
"anyOf": [
{
"type": "string",
"format": "date"
},
{
"type": "null"
}
],
"title": "Scrape Date From",
"default": null,
"description": "Earliest date the decision was added to the index (YYYY-MM-DD)."
},
"decision_date_from": {
"anyOf": [
{
"type": "string",
"format": "date"
},
{
"type": "null"
}
],
"title": "Decision Date From",
"default": null,
"description": "Earliest decision date (YYYY-MM-DD, inclusive)."
},
"include_aggregations": {
"type": "boolean",
"title": "Include Aggregations",
"default": false,
"description": "Also return distributions of the results by court, language and date."
}
}
},
"outputSchema": {
"type": "object",
"$defs": {
"ResultRef": {
"type": "object",
"title": "ResultRef",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Url",
"default": null
},
"title": {
"type": "string",
"title": "Title",
"default": ""
}
},
"description": "Kompakter Treffer-Verweis (id, title, url) für Clients, die genau dieses Format erwarten."
},
"SearchHit": {
"type": "object",
"title": "SearchHit",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Url",
"default": null,
"description": "Web page of the decision on entscheidsuche.ch (use this link for citations)."
},
"meta": {
"type": "string",
"title": "Meta",
"default": ""
},
"sort": {
"anyOf": [
{
"type": "array",
"items": {}
},
{
"type": "null"
}
],
"title": "Sort",
"default": null,
"description": "Sort values of the hit (for search_after)."
},
"text": {
"type": "string",
"title": "Text",
"default": "",
"description": "Excerpt from the decision. Keyword search: highlight snippet with the matched terms wrapped in <em>…</em>. Semantic search: the passage of the decision that best matches the query. `fetch_document`: the full text."
},
"court": {
"type": "string",
"title": "Court",
"default": "",
"description": "Court (derived from the ID)."
},
"score": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Score",
"default": null,
"description": "Semantic search only: similarity between the query and the best matching passage of this decision (higher is better)."
},
"title": {
"type": "string",
"title": "Title",
"default": ""
},
"canton": {
"type": "string",
"title": "Canton",
"default": ""
},
"is_pdf": {
"type": "boolean",
"title": "Is Pdf",
"default": false
},
"context": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Context",
"default": null,
"description": "Semantic search with `include_context=true` only: the larger section of the decision (up to about 6,000 characters) that contains the passage in `text`."
},
"abstract": {
"type": "string",
"title": "Abstract",
"default": ""
},
"scrape_date": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Scrape Date",
"default": null,
"description": "ISO date YYYY-MM-DD."
},
"document_url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Document Url",
"default": null,
"description": "Direct download link to the original document."
},
"original_url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Original Url",
"default": null,
"description": "URL of the original source web page."
},
"decision_date": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Decision Date",
"default": null,
"description": "ISO date YYYY-MM-DD."
},
"content_length": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Content Length",
"default": null,
"description": "Length of the indexed full text in characters. Only set by `fetch_document`."
},
"text_truncated": {
"type": "boolean",
"title": "Text Truncated",
"default": false,
"description": "True if the indexed full text was truncated by Elasticsearch at 100,000 characters. In that case `text` contains only the beginning of the decision; the complete document is available at `document_url`."
}
},
"description": "Ein einzelner Such-Treffer."
},
"AggregationBucket": {
"type": "object",
"title": "AggregationBucket",
"required": [
"key",
"count"
],
"properties": {
"key": {
"title": "Key"
},
"count": {
"type": "integer",
"title": "Count"
}
}
}
},
"title": "SearchResponse",
"required": [
"total",
"hits"
],
"properties": {
"hits": {
"type": "array",
"items": {
"$ref": "#/$defs/SearchHit"
},
"title": "Hits"
},
"note": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Note",
"default": null,
"description": "Remarks on how the query was executed, e.g. that it was not valid search syntax and was searched as plain terms."
},
"total": {
"type": "integer",
"title": "Total",
"description": "Keyword search: number of all matching decisions. Semantic search: number of decisions among the best-matching passages."
},
"results": {
"anyOf": [
{
"type": "array",
"items": {
"$ref": "#/$defs/ResultRef"
}
},
{
"type": "null"
}
],
"title": "Results",
"default": null,
"description": "Only set by the `search` tool: compact list (id, title, url) of the same decisions as in `hits`, in the same order."
},
"next_cursor": {
"anyOf": [
{
"type": "array",
"items": {}
},
{
"type": "null"
}
],
"title": "Next Cursor",
"default": null,
"description": "Cursor for the next page. Pass it again as `search_after` in the next request. None if there are no further results."
},
"search_mode": {
"type": "string",
"title": "Search Mode",
"default": "keyword",
"description": "Which search was executed: 'keyword' or 'semantic'."
},
"aggregations": {
"anyOf": [
{
"type": "object",
"additionalProperties": {
"type": "array",
"items": {
"$ref": "#/$defs/AggregationBucket"
}
}
},
{
"type": "null"
}
],
"title": "Aggregations",
"default": null
}
},
"description": "Antwort der Such-Tools."
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}| decision_date_to | any | Latest decision date (YYYY-MM-DD, inclusive). |
| scrape_date_from | any | Earliest date the decision was added to the index (YYYY-MM-DD). |
| decision_date_from | any | Earliest decision date (YYYY-MM-DD, inclusive). |
| include_aggregations | boolean | Also return distributions of the results by court, language and date. |
{
"name": "search_by_case_number",
"title": "Search by case number",
"description": "Look up Swiss court decisions by case number, docket reference or BGE citation, e.g. 'BGE 142 III 1', '5A_396/2015' or 'ZB.2021.48'. The reference is searched as an exact phrase; the decision itself normally comes first, followed by decisions that cite it.",
"inputSchema": {
"type": "object",
"$defs": {
"Language": {
"enum": [
"de",
"fr",
"it"
],
"type": "string",
"title": "Language",
"description": "Verfügbare Sprachen der Entscheide."
}
},
"title": "search_by_case_numberArguments",
"required": [
"case_number"
],
"properties": {
"size": {
"type": "integer",
"title": "Size",
"default": 20,
"maximum": 100,
"minimum": 1,
"description": "Results per page (1–100)."
},
"sort": {
"enum": [
"relevance",
"date",
"scrapedate"
],
"type": "string",
"title": "Sort",
"default": "relevance",
"description": "Sort order: 'relevance' (default) | 'date' (decision date, newest first) | 'scrapedate' (date added to the index, newest first)."
},
"language": {
"anyOf": [
{
"$ref": "#/$defs/Language"
},
{
"type": "null"
}
],
"default": null,
"description": "Preferred language (de, fr, it) for the displayed title and abstract. Does NOT filter — use `language_filter` for that."
},
"hierarchy": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "null"
}
],
"title": "Hierarchy",
"default": null,
"description": "Restrict to cantons, courts or chambers by hierarchy ID, e.g. ['CH_BGer'] or ['ZH_OG', 'BE']. Several IDs are combined with OR."
},
"case_number": {
"type": "string",
"title": "Case Number",
"description": "Case number (docket reference), BGE citation or judgment number, e.g. 'BGE 142 III 1' or '5A_396/2015'."
},
"search_after": {
"anyOf": [
{
"type": "array",
"items": {}
},
{
"type": "null"
}
],
"title": "Search After",
"default": null,
"description": "Cursor from `next_cursor` of the previous response."
},
"scrape_date_to": {
"anyOf": [
{
"type": "string",
"format": "date"
},
{
"type": "null"
}
],
"title": "Scrape Date To",
"default": null,
"description": "Latest date the decision was added to the index (YYYY-MM-DD)."
},
"language_filter": {
"anyOf": [
{
"type": "array",
"items": {
"$ref": "#/$defs/Language"
}
},
{
"type": "null"
}
],
"title": "Language Filter",
"default": null,
"description": "Only decisions written in these languages, e.g. ['fr']."
},
"decision_date_to": {
"anyOf": [
{
"type": "string",
"format": "date"
},
{
"type": "null"
}
],
"title": "Decision Date To",
"default": null,
"description": "Latest decision date (YYYY-MM-DD, inclusive)."
},
"scrape_date_from": {
"anyOf": [
{
"type": "string",
"format": "date"
},
{
"type": "null"
}
],
"title": "Scrape Date From",
"default": null,
"description": "Earliest date the decision was added to the index (YYYY-MM-DD)."
},
"decision_date_from": {
"anyOf": [
{
"type": "string",
"format": "date"
},
{
"type": "null"
}
],
"title": "Decision Date From",
"default": null,
"description": "Earliest decision date (YYYY-MM-DD, inclusive)."
},
"include_aggregations": {
"type": "boolean",
"title": "Include Aggregations",
"default": false,
"description": "Also return distributions of the results by court, language and date."
}
}
},
"outputSchema": {
"type": "object",
"$defs": {
"ResultRef": {
"type": "object",
"title": "ResultRef",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Url",
"default": null
},
"title": {
"type": "string",
"title": "Title",
"default": ""
}
},
"description": "Kompakter Treffer-Verweis (id, title, url) für Clients, die genau dieses Format erwarten."
},
"SearchHit": {
"type": "object",
"title": "SearchHit",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Url",
"default": null,
"description": "Web page of the decision on entscheidsuche.ch (use this link for citations)."
},
"meta": {
"type": "string",
"title": "Meta",
"default": ""
},
"sort": {
"anyOf": [
{
"type": "array",
"items": {}
},
{
"type": "null"
}
],
"title": "Sort",
"default": null,
"description": "Sort values of the hit (for search_after)."
},
"text": {
"type": "string",
"title": "Text",
"default": "",
"description": "Excerpt from the decision. Keyword search: highlight snippet with the matched terms wrapped in <em>…</em>. Semantic search: the passage of the decision that best matches the query. `fetch_document`: the full text."
},
"court": {
"type": "string",
"title": "Court",
"default": "",
"description": "Court (derived from the ID)."
},
"score": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Score",
"default": null,
"description": "Semantic search only: similarity between the query and the best matching passage of this decision (higher is better)."
},
"title": {
"type": "string",
"title": "Title",
"default": ""
},
"canton": {
"type": "string",
"title": "Canton",
"default": ""
},
"is_pdf": {
"type": "boolean",
"title": "Is Pdf",
"default": false
},
"context": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Context",
"default": null,
"description": "Semantic search with `include_context=true` only: the larger section of the decision (up to about 6,000 characters) that contains the passage in `text`."
},
"abstract": {
"type": "string",
"title": "Abstract",
"default": ""
},
"scrape_date": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Scrape Date",
"default": null,
"description": "ISO date YYYY-MM-DD."
},
"document_url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Document Url",
"default": null,
"description": "Direct download link to the original document."
},
"original_url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Original Url",
"default": null,
"description": "URL of the original source web page."
},
"decision_date": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Decision Date",
"default": null,
"description": "ISO date YYYY-MM-DD."
},
"content_length": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Content Length",
"default": null,
"description": "Length of the indexed full text in characters. Only set by `fetch_document`."
},
"text_truncated": {
"type": "boolean",
"title": "Text Truncated",
"default": false,
"description": "True if the indexed full text was truncated by Elasticsearch at 100,000 characters. In that case `text` contains only the beginning of the decision; the complete document is available at `document_url`."
}
},
"description": "Ein einzelner Such-Treffer."
},
"AggregationBucket": {
"type": "object",
"title": "AggregationBucket",
"required": [
"key",
"count"
],
"properties": {
"key": {
"title": "Key"
},
"count": {
"type": "integer",
"title": "Count"
}
}
}
},
"title": "SearchResponse",
"required": [
"total",
"hits"
],
"properties": {
"hits": {
"type": "array",
"items": {
"$ref": "#/$defs/SearchHit"
},
"title": "Hits"
},
"note": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Note",
"default": null,
"description": "Remarks on how the query was executed, e.g. that it was not valid search syntax and was searched as plain terms."
},
"total": {
"type": "integer",
"title": "Total",
"description": "Keyword search: number of all matching decisions. Semantic search: number of decisions among the best-matching passages."
},
"results": {
"anyOf": [
{
"type": "array",
"items": {
"$ref": "#/$defs/ResultRef"
}
},
{
"type": "null"
}
],
"title": "Results",
"default": null,
"description": "Only set by the `search` tool: compact list (id, title, url) of the same decisions as in `hits`, in the same order."
},
"next_cursor": {
"anyOf": [
{
"type": "array",
"items": {}
},
{
"type": "null"
}
],
"title": "Next Cursor",
"default": null,
"description": "Cursor for the next page. Pass it again as `search_after` in the next request. None if there are no further results."
},
"search_mode": {
"type": "string",
"title": "Search Mode",
"default": "keyword",
"description": "Which search was executed: 'keyword' or 'semantic'."
},
"aggregations": {
"anyOf": [
{
"type": "object",
"additionalProperties": {
"type": "array",
"items": {
"$ref": "#/$defs/AggregationBucket"
}
}
},
{
"type": "null"
}
],
"title": "Aggregations",
"default": null
}
},
"description": "Antwort der Such-Tools."
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}