Skip to main content
Glama

Search legal sources

search_legal_sources
Read-onlyIdempotent

Literal search across the register: Swedish statutes (SFS), guiding decisions from HD and HFD, EU acts (CELEX), US rules (CFR/USC) and finance glossary terms. Returns identifiers, titles and official source URLs. No generated text.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "query": "<query>"
    },
    "name": "search_legal_sources"
  }
}

Input Schema

NameRequiredDescriptionDefault
areaNoRestrict Swedish statutes to one competence area.
langNoLanguage for labels.sv
limitNoMaximum number of rows.
queryYesSearch term, statute number, case reference or CELEX id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and openWorldHint=false, so safety is covered. The description adds genuinely new behavioral context: the return shape (identifiers, titles, official URLs) and the explicit promise that no generated text is produced, which sets correct expectations for an agent. It says nothing about result limits or ranking, which is a minor gap.

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?

Three short sentences: scope first, return shape second, negative constraint last. No filler, no restatement of the title, and the most decision-relevant information is front-loaded.

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 four-parameter read-only search with full schema coverage and annotations, the definition supplies scope, source coverage, and return format, which is close to everything an agent needs. Only the interaction with get_legal_source (when to search vs. fetch directly) is unaddressed.

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 100%, with area and lang enums and limit bounds fully documented inline, so the schema already carries parameter meaning. The description adds no syntax or format guidance beyond what the schema states, which is the expected baseline-3 case rather than a deficiency.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb ('literal search') and enumerates the exact resource families covered (SFS, HD/HFD decisions, CELEX, CFR/USC, glossary), plus what comes back. It implicitly separates itself from get_legal_source by emphasizing keyword-literal matching, but never names that sibling outright, so an agent must infer the boundary.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied: 'literal search' suggests keyword, statute-number, or CELEX lookup rather than conceptual questions, which nudges an agent toward it for lookups and away from article_question. There is no explicit when-to-use, when-not-to-use, or named alternative, so the routing decision is left to inference.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources