Fedlex Connector
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| PORT | No | Port for HTTP mode. If not set, server runs in stdio mode. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| search_by_titleA | Search Swiss federal legislation titles in the Classified Compilation (RS/SR) on Fedlex. Use to find the RS number of a law when you know its name but not its number. Searches titles only, not article content. Returns only acts currently in force. |
| get_articleA | Retrieve a single article when you already know the EXACT article number (e.g. from a cross-reference). Do NOT call this tool repeatedly to search for provisions — use get_law_text instead to fetch the full act or a section and locate relevant articles in the text. |
| get_law_textA | 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. |
| list_amendmentsA | List consolidation version dates for a Swiss federal act. Returns the dates each consolidated version took effect. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 4 tools
Each tool has a clear, distinct purpose: searching by title, listing version dates, fetching an exact article, and retrieving full law text. The descriptions explicitly steer agents away from using get_article when get_law_text is more appropriate.
list_amendments, get_article, and get_law_text all follow a clean verb_noun pattern. search_by_title is a minor deviation with the preposition 'by', but it remains predictable and readable.
Four tools is well-scoped for a legal retrieval connector: discover a law, fetch its text, fetch a specific article, and check amendment dates. Each tool earns its place with no redundant overlap.
The core Swiss law research workflow is covered: find an act by title, retrieve the consolidated text, get a specific article, and list version dates. Missing historical version text retrieval and full-text cross-law search are minor gaps rather than blocking issues.