Skip to main content
Glama

search_legislation

Search Danish statutes and regulations by keyword with support for boolean operators, phrase search, and prefix matching. Returns provisions with snippets and relevance scores.

Instructions

Search Danish statutes and regulations by keyword.

Searches provision text using FTS5 with BM25 ranking. Supports boolean operators (AND, OR, NOT), phrase search ("exact phrase"), and prefix matching (term*).

Returns matched provisions with snippets, relevance scores, and document metadata.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesSearch query in Danish or English. Supports FTS5 syntax.
document_idNoFilter to a specific statute by document ID (e.g., "2018:218")
statusNoFilter by document status
as_of_dateNoOptional historical date filter (YYYY-MM-DD). Returns versions valid on that date.
limitNoMaximum results (default: 10, max: 50)
Behavior4/5

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

Describes search mechanism (FTS5 with BM25 ranking), supported syntax, and output format. Since annotations are absent, the description carries the full burden and does well, though it omits rate limits or auth requirements.

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?

Four sentences, each serving a clear purpose: purpose, technical detail, syntax, output. No wasted words, well-structured.

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?

Sufficient for a search tool: explains what is returned (snippets, scores, metadata) and all parameters are described. Missing pagination details but not critical.

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

Parameters4/5

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

Schema coverage is 100%, baseline 3. The description adds value by detailing query syntax (boolean operators, phrases, prefix) beyond the schema's 'FTS5 syntax' note.

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?

Clearly states the tool searches Danish statutes and regulations by keyword, distinguishing it from sibling tools like search_case_law and search_eu_implementations.

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 implies usage for Danish statutory/regulatory text but does not explicitly state when not to use or mention alternatives. The context is clear enough given sibling names.

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/Ansvar-Systems/Danish-law-mcp'

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