Fedlex Connector
Server Details
Search Swiss federal legislation: laws, articles, amendments via the Fedlex SPARQL endpoint.
- Status
- Healthy
- Last Tested
- Transport
- Streamable HTTP
- URL
- Repository
- JayTheSkier/fedlex-connector
- GitHub Stars
- 6
- Server Listing
- Fedlex Connector
TDQS
Each tool has a clear, non-overlapping purpose: fetching specific articles, retrieving full law text, listing consolidation dates, and searching by title. No ambiguity.
All tools follow a consistent lowercase verb_noun pattern (get_article, get_law_text, list_amendments, search_by_title), making them easy to understand and remember.
With 4 tools, the server is well-scoped for its purpose of accessing Swiss federal legislation. Each tool provides essential functionality without redundancy.
The tools cover finding a law by title, retrieving full text, accessing specific articles, and listing version dates. A minor gap is the lack of article content search, but descriptions guide agents to use get_law_text for that.
Available Tools
4 toolsget_articleAInspect
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.
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Consolidation date in YYYY-MM-DD format. Defaults to the latest available version. | |
| article | Yes | Article number (e.g. '3', '28a', '41') | |
| language | No | Language (default: de) | |
| rs_number | Yes | RS/SR number (e.g. '210' for CC, '220' for CO, '311.0' for CP) |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations provided, but description implies read-only retrieval and emphasizes exact match, which is transparent. Does not cover error cases or output format, but sufficient for a simple tool.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Two sentences, no wasted words, front-loaded with main purpose followed by usage guidance. Highly efficient.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
With no output schema, description could mention return format, but the tool is simple. Covers purpose and usage well, slight gap on expected output.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 100%, so baseline 3. Description adds minimal value beyond schema, only rephrasing article parameter example. No additional meaning for other parameters.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool retrieves a single article by exact article number, and distinguishes it from sibling tool get_law_text by specifying the exact use case.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Explicitly tells when to use (exact article number known) and when not to use (searching for provisions), and names the alternative tool get_law_text.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
get_law_textAInspect
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.
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number for paginated results (default: 1). Large acts are split across multiple pages. | |
| section | No | Limit to a specific title, chapter, or part (e.g. 'Titre huitième', 'Zweiter Teil'). If omitted, returns the full act. | |
| language | No | Language (default: de) | |
| rs_number | Yes | RS/SR number (e.g. '210' for CC, '220' for CO) |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations provided, and description does not disclose behavioral traits like read-only nature, error handling, or what happens with invalid RS numbers. It focuses on usage rather than behavior.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Description is concise with two main sentences and a usage hint, but could be slightly more structured to separate behavior from usage.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a text retrieval tool with no output schema, it covers when to use, parameter details, and pagination, though it does not specify the output format.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
All 4 parameters have schema descriptions, and the description adds value by explaining pagination (page parameter), giving examples for section, and noting language default.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool retrieves official consolidated Swiss federal law text from Fedlex, and explicitly distinguishes it from siblings like get_article by advising preference unless exact article known.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Explicit guidance: 'always start here', 'Prefer this over get_article unless you already know the exact article number', and mentions pagination for large acts.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
list_amendmentsAInspect
List consolidation version dates for a Swiss federal act. Returns the dates each consolidated version took effect.
| Name | Required | Description | Default |
|---|---|---|---|
| since | No | Start date in YYYY-MM-DD format (default: 1 year ago) | |
| language | No | Language for amendment titles (default: de) | |
| rs_number | Yes | RS/SR number |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the full burden. It implies a safe read operation by saying 'List' and 'returns dates', but does not disclose authentication requirements, rate limits, or that it is non-destructive. Basic behavior is disclosed.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is two concise sentences with no redundancy. It efficiently conveys the tool's purpose and output without wasted words.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the simple nature of listing dates and the absence of an output schema, the description adequately explains what is returned. It could mention the output format but is sufficient for a straightforward list tool.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The input schema covers all three parameters with descriptions, so baseline is 3. The tool description adds no extra meaning beyond the schema, such as examples or format constraints for 'since'.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool lists consolidation version dates for a Swiss federal act, specifying the verb 'List' and the resource (dates). It distinguishes from siblings by focusing on version dates rather than full text or articles.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides clear context that the tool is for listing version dates, implying it should be used when dates are needed versus text or search. However, it does not explicitly exclude other use cases or mention sibling tools.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
search_by_titleAInspect
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.
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Keywords to match against act titles (e.g. 'code civil', 'protection des données') | |
| language | No | Language for results (default: de) |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden. It discloses that the tool searches titles only and returns only in-force acts. This is sufficient given the read-only nature of a search tool. It could be improved by mentioning any limits (e.g., pagination, result ordering) but is already transparent.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is two sentences, front-loaded with the core action and purpose. Every sentence adds value: first sentence states the domain and action, second sentence clarifies utility and limitations. No wasted words.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given there is no output schema and only two parameters, the description is fairly complete. It explains the scope (Swiss federal legislation, Fedlex), the purpose, and the constraints (titles only, in force). However, it does not specify the format of the results (e.g., list of RS numbers with titles), which would help an agent understand the return value.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The input schema has 100% description coverage, so the baseline is 3. The description adds context about searching titles only and returning in-force acts, which is already implied by the schema descriptions. It does not add significant new semantics beyond what the schema provides.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool searches Swiss federal legislation titles in the Classified Compilation on Fedlex. It specifies the purpose: find the RS number of a law when you know its name but not its number. It distinguishes from siblings by noting it searches titles only, not article content, and returns only acts currently in force.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description explicitly states when to use the tool: to find the RS number of a law when you know its name. It also explains what it does not do (searches titles only, not article content). However, it does not explicitly mention when not to use it or directly compare to siblings (get_article, get_law_text, list_amendments), which would provide fuller guidance.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
4 tool updates
- Changed
get_article1 field changed- changed
Input schema / properties / language / descriptionPrevious value: -"Language (default: fr)"New value: +"Language (default: de)"
- Changed
get_law_text1 field changed- changed
Input schema / properties / language / descriptionPrevious value: -"Language (default: fr)"New value: +"Language (default: de)"
- Changed
list_amendments1 field changed- changed
Input schema / properties / language / descriptionPrevious value: -"Language for amendment titles (default: fr)"New value: +"Language for amendment titles (default: de)"
- Changed
search_by_title1 field changed- changed
Input schema / properties / language / descriptionPrevious value: -"Language for results (default: fr)"New value: +"Language for results (default: de)"
4 tool updates
- First observed
get_article - First observed
get_law_text - First observed
list_amendments - First observed
search_by_title
Frequently Asked Questions
Claiming proves that you control a remote MCP connector. It does not move, proxy, or interrupt the server.
Open the connector listing, choose Claim ownership, and sign in to Glama.
Complete one verification method:
GitHub identity – fastest for official registry listings. For a namespace such as
io.github.alice/server, link the matching GitHub user, then choose Claim with GitHub. An organization namespace such asio.github.acme/serveralso needs that organization to have installed the Glama AI GitHub App and approved its permissions, because GitHub discloses organization membership only to apps it has installed. Use HTTP or DNS when it has not.HTTP challenge – works when you can deploy a public file. Generate a token, publish the exact JSON Glama shows at
/.well-known/glama.jsonon the same origin as the connector, then choose Check HTTP challenge.DNS challenge – works when you control DNS but cannot change the server. Generate a token, create the exact TXT record Glama shows, wait for it to propagate, then choose Check DNS challenge.
After verification, Glama sends a confirmation email and gives you access to listing details, thumbnails, health checks, and analytics. Keep the HTTP file or DNS record in place: Glama periodically checks it and ownership remains verified while the token is discoverable.
The HTTP ownership file has this structure:
{
"$schema": "https://glama.ai/mcp/schemas/connector.json",
"claim": "glama_claim_..."
}Claim tokens are opaque, stable, and bound to the signed-in Glama account. They contain no email address or other personal information. If Glama can no longer discover a verified HTTP or DNS token, it starts a seven-day grace period before removing claim-based access. Restore the same token during that period to keep ownership verified. Never publish an email address, Glama session token, GitHub token, or connector credential as ownership proof.
If verification fails, confirm that you copied the current token exactly. The HTTP file must be public, return valid JSON with a successful HTTP response, and stay on the connector's origin. DNS changes may need more time to propagate. A claim cannot transfer to a different origin or hostname: if the connector target changes, Glama starts the grace period and the new target must be claimed separately after the previous claim is released.
For a connector linked to the official MCP Registry, registry updates continue to replace its name, description, and URL by default. After claiming, open Manage connector and enable Use Glama listing details as the source of truth if edits made on Glama should be preserved. Categories and thumbnails are always managed on Glama; registry linkage and technical connection settings continue to sync.
Control your server's listing on Glama, including description and metadata
Access analytics and receive server usage reports
Get monitoring and health status updates for your server
Feature your server to boost visibility and reach more users
To improve your MCP server's ranking:
Claim ownership of the server listing
Complete the server profile with an accurate description and thumbnail
Provide a test profile so Glama can connect to and evaluate the server
Keep tool definitions clear and complete to earn a high Tool Definition Quality Score (TDQS)
Route real usage through the Glama Gateway; more recorded successful server uses also improve the ranking
For users:
Full audit trail – every tool call is logged with inputs and outputs for compliance and debugging
Granular tool control – enable or disable individual tools per connector to limit what your AI agents can do
Centralized credential management – store and rotate API keys and OAuth tokens in one place
Change alerts – get notified when a connector changes its schema, adds or removes tools, or updates tool definitions, so nothing breaks silently
For server owners:
Proven adoption – public usage metrics on your listing show real-world traction and build trust with prospective users
Tool-level analytics – see which tools are being used most, helping you prioritize development and documentation
Direct user feedback – users can report issues and suggest improvements through the listing, giving you a channel you would not have otherwise
The connector status is unhealthy when Glama is unable to successfully connect to the server. This can happen for several reasons:
The server is experiencing an outage
The URL of the server is wrong
Credentials required to access the server are missing or invalid
If you are the owner of this MCP connector and would like to make modifications to the listing, including providing test credentials for accessing the server, please contact support@glama.ai.
Discussions
No comments yet. Be the first to start the discussion!
Related MCP Connectors
Swiss federal law (Fedlex) and political data (LINDAS) for agents, every answer with sources
Search EU legislation, CJEU case law, and treaties; traverse CELLAR graph; browse EuroVoc concepts.
Temporal search and comparison for official Luxembourg and reviewed EU law, with provenance.
Search UK Acts, Statutory Instruments, and legislation with full text retrieval
Related MCP Servers
- AlicenseAqualityAmaintenanceMCP server for Swiss federal legislation metadata via Fedlex, enabling search and retrieval of act details with ELI URIs, SR numbers, and multilingual support.3Apache 2.0
- AlicenseAqualityBmaintenanceEnables searching and retrieving Czech legal acts from the e-Sbirka database via SPARQL, including metadata and full consolidated text with verifiable citations.3Apache 2.0
- AlicenseNot gradedqualityAmaintenanceSearch EU legislation, CJEU case law, and treaties; traverse the CELLAR relationship graph; resolve EuroVoc concepts via MCP.3616Apache 2.0
- AlicenseNot gradedqualityDmaintenanceProvides offline full-text search across 35,000+ Swiss laws from all cantons and federal level using SQLite FTS5 indexing. Enables querying laws, articles, and metadata through natural language.1MIT
Glama MCP Gateway
Add one secure layer between your agents and this server.