Skip to main content
Glama

fedlex_search_laws

Read-onlyIdempotent

Search the Swiss Systematic Collection of Federal Law by title to find consolidated laws, ordinances, and agreements. Retrieves SR number, abbreviation, status, and link.

Instructions

Durchsucht die Systematische Rechtssammlung (SR) des Bundes nach Erlasstiteln und liefert SR-Nummer, Abkürzung, Status und Link. Juristische/verwaltungsbezogene Recherche: konsolidiertes Bundesrecht (Gesetze, Verordnungen, Vereinbarungen) per Stichwort finden. Sucht nur im Titel, nicht im Volltext. Standardmässig nur in Kraft stehende Erlasse (in_force_only=true). Liefert einen strukturierten Envelope (results + markdown). keywords='Datenschutz', language='de'

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
paramsYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
toolYes
countYes
sourceNoFedlex, Schweizerische Bundeskanzlei (fedlex.admin.ch)
licenseNoFreie Wiederverwendung gemäss fedlex.admin.ch/de/broadcasters
messageNo
resultsYes
markdownYes
match_typeYes
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false. The description adds valuable behavioral context: searches only titles (not full text), defaults to in_force_only=true, and returns a structured envelope. No contradictions with annotations.

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

Conciseness5/5

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

The description is concise, front-loading the purpose, and uses structured XML tags for use_case and important_notes. Every sentence provides value, with no wasted words.

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?

For a search tool with 4 parameters and an output schema, the description covers the main use case, important behavioral notes, and return envelope structure. It is complete enough given the existence of an output schema and annotations.

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 0%, but the input schema itself provides detailed descriptions for each parameter (keywords, limit, language, in_force_only). The description adds an example but does not significantly enhance parameter understanding beyond the schema. Baseline of 3 is appropriate.

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 states the verb 'Durchsucht' (searches) the resource 'Systematische Rechtssammlung (SR)' by title and lists the returned fields (SR-Nummer, Abkürzung, Status, Link). This clearly distinguishes it from sibling tools like fedlex_search_gazette or fedlex_search_treaties.

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?

The description includes a <use_case> tag specifying legal/administrative research and an <important_notes> section clarifying title-only search and default in_force_only=true. It does not explicitly state when not to use, but the context is clear enough.

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

Install Server

Other Tools

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/malkreide/fedlex-mcp'

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