Skip to main content
Glama
JayTheSkier

Fedlex Connector

by JayTheSkier

get_law_text

Retrieve official Swiss federal act text from Fedlex by RS number, with optional section and language selection. Use this to find and cite the exact legal provisions for Swiss law questions.

Instructions

Retrieve the official consolidated text of a Swiss federal act (or a specific title/chapter) directly from Fedlex (fedlex.admin.ch). This is the PRIMARY tool for answering Swiss law questions — always start here. Fetch the full act or a specific section, then locate relevant provisions in the returned text. Prefer this over get_article unless you already know the exact article number.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNoPage number for paginated results (default: 1). Large acts are split across multiple pages.
sectionNoLimit to a specific title, chapter, or part (e.g. 'Titre huitième', 'Zweiter Teil'). If omitted, returns the full act.
languageNoLanguage (default: de)
rs_numberYesRS/SR number (e.g. '210' for CC, '220' for CO)

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv1.0.0

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden and does well: it clarifies that the tool fetches official consolidated text, can target a full act or a section, and instructs the agent to 'locate relevant provisions in the returned text.' It does not describe error cases or rate limits, but this is a read-only retrieval tool and the core behavior is clearly disclosed.

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?

The description is appropriately sized and front-loaded with the core purpose. It contains a small amount of redundancy—'Fetch the full act or a specific section' partially repeats the first sentence and the schema—but each sentence still contributes useful usage or workflow context, so it earns a score above baseline.

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

Completeness4/5

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

Given four parameters, a full schema, and no output schema, the description provides enough context to call the tool correctly: source, primary use case, section behavior, and how to process the returned text. It does not mention fallback to search_by_title when rs_number is unknown, but the schema and sibling list make this recoverable.

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

Parameters3/5

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

Schema description coverage is 100%, so the baseline is 3; the schema already explains rs_number, section, language, and page with examples. The description adds minor reinforcement by mentioning 'specific title/chapter' and 'full act or a specific section,' but it does not materially extend the parameter meaning beyond the schema.

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?

The description uses a specific verb-resource pair: 'Retrieve the official consolidated text of a Swiss federal act' and names the exact source, Fedlex. It further distinguishes this tool from siblings by declaring itself the 'PRIMARY tool for answering Swiss law questions' and explicitly prefers it over get_article unless an exact article number is known.

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

Usage Guidelines5/5

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

The description gives direct when-to-use guidance: 'always start here' for Swiss law questions, and states the condition for choosing get_article instead ('unless you already know the exact article number'). This is explicit enough for an agent to route correctly without opening other tool schemas.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/JayTheSkier/fedlex-connector'

If you have feedback or need assistance with the MCP directory API, please join our Discord server