Skip to main content
Glama

Fedlex Connector

Server Details

Search Swiss federal legislation: laws, articles, amendments via the Fedlex SPARQL endpoint.

Status
Healthy
Last Tested
Transport
Streamable HTTP
URL

Glama MCP Gateway

Connect through Glama MCP Gateway for full control over tool access and complete visibility into every call.

MCP client
Glama
MCP server

Full call logging

Every tool call is logged with complete inputs and outputs, so you can debug issues and audit what your agents are doing.

Tool access control

Enable or disable individual tools per connector, so you decide what your agents can and cannot do.

Managed credentials

Glama handles OAuth flows, token storage, and automatic rotation, so credentials never expire on your clients.

Usage analytics

See which tools your agents call, how often, and when, so you can understand usage patterns and catch anomalies.

100% free. Your data is private.

Tool Definition Quality

Score is being calculated. Check back soon.

Available Tools

4 tools
get_articleInspect

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.

ParametersJSON Schema
NameRequiredDescriptionDefault
dateNoConsolidation date in YYYY-MM-DD format. Defaults to the latest available version.
articleYesArticle number (e.g. '3', '28a', '41')
languageNoLanguage (default: de)
rs_numberYesRS/SR number (e.g. '210' for CC, '220' for CO, '311.0' for CP)
get_law_textInspect

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.

ParametersJSON 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)
list_amendmentsInspect

List consolidation version dates for a Swiss federal act. Returns the dates each consolidated version took effect.

ParametersJSON Schema
NameRequiredDescriptionDefault
sinceNoStart date in YYYY-MM-DD format (default: 1 year ago)
languageNoLanguage for amendment titles (default: de)
rs_numberYesRS/SR number
search_by_titleInspect

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.

ParametersJSON Schema
NameRequiredDescriptionDefault
queryYesKeywords to match against act titles (e.g. 'code civil', 'protection des données')
languageNoLanguage for results (default: de)

Discussions

No comments yet. Be the first to start the discussion!

Try in Browser

Your Connectors

Sign in to create a connector for this server.

Resources