get_cantonal_law
ChatGPTFetch full metadata for a Swiss cantonal law document from LexFind.ch by LexFind ID. Output: systematic number, title, canton, active status, and original_url to the official source (HTML or PDF). Use search_cantonal_law first to find the document ID.
get_entscheidsuche_citations
ChatGPTFind all cases and statutes cited by a Swiss court decision. Builds a citation chain or network of related jurisprudence. Fetches the decision body and parses all BGE/ATF/DTF references and docket numbers. Returns a deduplicated list.
get_entscheidsuche_document
ChatGPTFetch the full text of a Swiss court decision (ruling, judgment, Entscheid). Accepts a case signature, BGE/ATF/DTF citation, or docket number like 6B_123/2022. WARNING: format=json returns metadata only (no ruling text). Always specify format=text to answer questions about case content. signature accepts an Entscheidsuche internal ID or a citation like 6B_123/2022 or BGE 127 IV 10. format: text (decision body, default) | json (metadata only) | html (raw HTML, paginated). Use offset and max_chars for paging text/html. Response includes has_more and next_offset.
get_fedlex_article
ChatGPTFetch one article from a Swiss federal statute by statute ELI URI or version URI. article accepts values like 28, 28a, or Art. 28. Use as_of (YYYY-MM-DD) for historical retrieval, or version_uri to pin one exact version. Obtain version_uri from list_fedlex_versions (choose an entry with has_text=true). For historical comparison: call list_fedlex_versions to identify applicable version URIs, then call get_fedlex_article twice — once with version_uri for the historical version, once without for current. as_of accepts YYYY-MM-DD; for year-level queries use end-of-year (e.g. 2015-12-31). If you only have a statute name, call resolve_fedlex_statute first.
get_fedlex_outline
ChatGPTReturn a compact statute outline for a Swiss federal statute. Input accepts a statute alias or exact ELI URI; you may also pass version_uri directly. Use as_of (YYYY-MM-DD) for historical structure, or version_uri to pin one exact version. Output is optimized for token efficiency: - overview_text: high-level structure (book/part/title/chapter) - article_numbers: flat list of article labels (e.g. Art. 1, Art. 28a) If machine-readable text is unavailable, call list_fedlex_versions and choose a version with has_text=true.
get_fedlex_text
ChatGPTRead the full consolidated text of a Swiss federal statute (law). Requires a Fedlex ELI URI; call resolve_fedlex_statute first if you only have a name or abbreviation. Use offset and max_chars for paging. The response includes has_more and next_offset. Use as_of (YYYY-MM-DD) for the version in force on a date, or version_uri to pin one exact version. Obtain version_uri from list_fedlex_versions (choose an entry with has_text=true). If you only have a statute name, call resolve_fedlex_statute first.
list_cantonal_law_changes
ChatGPTList recent changes to a canton's (or CH / INTLEX) legislation from LexFind.ch, newest first. Each entry: change_date, change_type (new, version, total_revision, formless, abrogated, removed), the affected law (id, systematic number, title) and version dates. 15 entries per page; pass next_offset as offset for the next page. hide_formless skips editorial-only changes. Use it for "what changed lately in canton X"; then get_cantonal_law or list_cantonal_law_versions for details.
list_cantonal_law_versions
ChatGPTList the dated version history of a Swiss cantonal/federal law from LexFind.ch, newest first. Output per version: version_id, type (new, version, total_revision, formless = editorial only), is_current, active_since, inactive_since, title, category and lexfind_url (PDF of that version). Use it to find which version applied at a date: the version with the latest active_since on or before that date. Pass a version_id to get_cantonal_law to inspect it. Dates are dd.mm.yyyy. Coverage and exact in-force dates depend on what the canton published; verify against the official source for critical use. Use search_cantonal_law first to find the document ID.
list_fedlex_versions
ChatGPTList consolidation versions of a Swiss federal statute on Fedlex (newest first). Each entry includes date_applicability, version_uri, has_text, and is_current. Pass version_uri directly to get_fedlex_text or get_fedlex_article to retrieve that exact historical version. Only versions with has_text=true have machine-readable text; the others will fail text or article retrieval. eli_uri must be an exact Fedlex ELI URI. Use resolve_fedlex_statute first if needed.
resolve_fedlex_statute
ChatGPTLook up a Swiss federal law by name, abbreviation, or SR number and get its canonical Fedlex ELI URI. Input: compact alias, SR reference, or short title fragment. Natural language queries are not supported. German aliases: OR, ZGB, BV, StGB, DSG. French aliases: CO, CC, CPP, CPC, LPD. Italian aliases: CO, CC, CP. SR references always work: SR 220 (OR/CO), SR 210 (ZGB/CC), SR 311.0 (StGB/CP), SR 235.1 (DSG/LPD). Output: ranked statute matches with ELI URI, title, and Fedlex URL. Use this first when you do not yet have an ELI URI.
search_cantonal_law
ChatGPTSearch Swiss cantonal and federal legislation via LexFind.ch. Covers all 26 cantons plus the Confederation (CH), 33,000+ texts including laws, ordinances, and decrees. cantons: one or more two-letter codes (ZH, BE, GE, CH for federal). Omit to search all jurisdictions. When multiple cantons are provided, the server performs one search per canton, merges results in input canton order, then paginates. Output: systematic number, title, jurisdiction, and direct source URL per result. Use get_cantonal_law to retrieve full metadata for a result by its LexFind ID.
search_entscheidsuche
ChatGPTSearch Swiss case law on entscheidsuche.ch. Output: ranked court decisions matching the query. Search is keyword-based, not semantic vector search, so concise legal keywords, citations, docket numbers, and exact terms work better than long natural-language prompts. Supports filtering by court, canton, language, and date range. Federal courts: CH_BGer (Supreme Court, all rulings), CH_BGE (published BGE, 1954 onwards), CH_BGB (published BGE before 1954), CH_BVGE (Administrative), CH_BSTG (Criminal), CH_PATG (Patent). Cantonal examples: ZH_OG, ZH_VG, BE_OG, BE_VG, GE_CJ, VD_TC, BS_APG, AG_OG. Leading case law is the BGE (amtliche Sammlung), the published collection that carries precedential weight, and it lives in CH_BGE and CH_BGB. Keyword relevance ranks short cantonal decisions above the much longer BGE ones, so a topical search without filters typically returns no BGE at all: set courts to CH_BGE (add CH_BGB for decisions before 1954) whenever you want leading decisions rather than whatever happened to match the words. If the first search is too broad or empty, refine recursively: shorten the query, swap in exact legal keywords, or add filters before fetching documents. Use get_entscheidsuche_document to retrieve the full text of a result.