Skip to main content
Glama

Get a legal source

get_legal_source
Read-onlyIdempotent

Fetch one row from the register by its layer and identifier: a Swedish statute (se), a guiding decision (praxis), an EU act (eu), a US rule (us) or a finance glossary term (finance). Includes identifiers, dates, official source URL and related sources.

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": {
      "layer": "<layer>",
      "id": "<id>"
    },
    "name": "get_legal_source"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesSlug or id, e.g. 'kamerabevakningslagen', 'nja-2019-s-638', 'gdpr-2016-679', 'inflation'.
langNoLanguage for labels.sv
layerYesWhich register layer the identifier belongs to.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent and closed-world, so the safety profile is covered. The description goes beyond that by disclosing the payload shape ('identifiers, dates, official source URL and related sources'), which is valuable given there is no output schema; it does not say what happens when an id is missing or whether demand-driven layer mismatch errors occur.

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?

Two sentences, no filler, and the core operation plus its key is front-loaded before the layer enumeration. Every clause carries information an agent needs to construct the call.

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 simple read-only lookup with full annotation and schema coverage, the description supplies enough: what it returns, the accepted layers, and that it is record-scoped. Missing only failure behavior for unknown or mismatched identifiers, which is a minor gap given the tool's simplicity.

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%, so the baseline is 3. The description earns more by glossing each enum value of `layer`, which the schema only labels generically as 'which register layer the identifier belongs to' — the mappings to statute/praxis/EU act/US rule/glossary term are real added meaning. The `lang` parameter is not addressed, keeping it below 5.

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 a specific verb (fetch) and resource (one row from the register) and pins the lookup key to layer + identifier. Enumerating the five layers with glosses (se = Swedish statute, praxis = guiding decision, eu = EU act, us = US rule, finance = glossary term) makes it unmistakable that this is a single-record lookup, not a search.

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: the phrase 'by its layer and identifier' signals that this tool requires an already-known id, which implies search_legal_sources is the path when you don't have one. There is no explicit when-to-use/when-not clause and no sibling is named, so the agent must infer the routing.

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