Skip to main content
Glama

Switzerland Law

Ch Law Get

ch_law_get
Read-onlyIdempotent

Fetch one Swiss federal act: its record and consolidated text. id is an SR number from ch_law_search (e.g. "235.1" for the Federal Act on Data Protection) or an Official Compilation reference like "2022/491". Returns title, short title, SR number, AS reference, adoption and entry-into-force dates, in-force status, the date of the consolidated version returned (the version applicable today) and the text. Pass article (e.g. "6", "66a") for one article only; without it the text is capped at max_chars with a list of chapters. lang picks the language (de, fr, it, en when available). The consolidated text is informative as published; the legal force lies with the Official Compilation.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "id": "235.1",
      "lang": "de",
      "article": "6"
    },
    "name": "ch_law_get"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesSR number (e.g. "235.1") or AS reference "year/number" (e.g. "2022/491")
langNoText language (default de)
articleNoArticle number, e.g. "6", "66a", "7bis"
max_charsNoCap on returned text when no article is given (default 20000, max 100000)

Output Schema

NameRequiredDescriptionDefault
idNo
eliNo
urlNo
hintNo
langNo
textNo
foundNo
titleNo
sourceNo
statusNo
adoptedNo
articleNo
matchesNo
citationNo
contentsNo
sr_numberNo
truncatedNo
data_as_ofNo
short_titleNo
total_charsNo
as_referenceNo
empty_reasonNo
article_countNo
in_force_fromNo
article_headingNo
version_applicable_fromNo
version_applicable_untilNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Beyond the readOnly/idempotent/openWorld annotations, it discloses real behavioral traits: truncation at max_chars with a chapter list fallback, that the returned text is the version applicable today, that 'en' is only available sometimes, and that the consolidated text is informative rather than legally binding. It does not describe failure modes for an invalid id or unknown article, which keeps it at 4.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with purpose, then identifier formats, then per-parameter behavior, then the legal caveat — a logical order with no filler. It is a dense block of long clauses, and the enumerated return fields partly duplicate the output schema, which keeps it from a 5.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a read-only fetch tool with full schema coverage and an output schema, the description covers everything an agent needs: accepted id formats, article selection, language availability, truncation behavior, and the legal-status caveat on the returned text.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds the interaction between article and max_chars (the cap applies only when no article is given) and qualifies the lang enum with 'en when available' — meaning the schema alone does not convey.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb and resource ('Fetch one Swiss federal act: its record and consolidated text'), and identifies the identifier source as ch_law_search, which cleanly separates it from the sibling search tool.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Establishes the search-then-fetch workflow by telling the agent that id comes from ch_law_search, and explains when to pass article (single-article retrieval) versus omitting it (capped text plus chapter list). It never states an explicit exclusion or a case where another tool should be preferred instead, so it stops short of a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.