Skip to main content
Glama

Search the legal register

search
Read-onlyIdempotent

Search Swedish, EU, Nordic and US legal sources. Returns connector results with id, title, text, url and metadata. Use fetch with the returned id to read the full node.

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"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYesSearch term, statute number, case reference or CELEX id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and a closed-world profile, so the safety bar is low. Beyond that, the description discloses the shape of the returned connector records (id, title, text, url, metadata) and the chaining contract with fetch, which annotations cannot convey. It omits result limits, ranking or pagination behavior.

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 with no filler: capability, return shape, and next step, in that order. Nothing needs trimming 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?

With no output schema, the description responsibly covers the return fields and the fetch handoff, which is what an agent needs to act. It is slightly thin on result volume and whether coverage differs per jurisdiction, but nothing essential for correct invocation is missing.

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?

There is a single required parameter with full schema coverage, and the schema already enumerates acceptable query forms (search term, statute number, case reference, CELEX id). The description adds jurisdiction breadth but no syntax, sizing or matching semantics beyond the schema, so the baseline applies.

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 uses a specific verb ('Search') plus the resource domain ('Swedish, EU, Nordic and US legal sources'), so an agent knows it is a cross-jurisdiction retrieval tool. However, a sibling is literally named 'search_legal_sources', and the description never distinguishes this tool from it, so the scope boundary is left ambiguous.

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?

It gives a concrete follow-up workflow: 'Use `fetch` with the returned id to read the full node,' which tells the agent when to move on rather than issuing repeated searches. It stops short of stating when not to use this tool or how it relates to the similarly named search_legal_sources sibling.

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