Skip to main content
Glama

Verify Citation

verify_citation

Validates Swedish legal citations and ECLI/ELI references against official registries to confirm format and live existence, preventing AI-hallucinated citations.

Instructions

No-Hallucination Citation Verifier for Sweden (SE). Validates format and live existence of legal citations (e.g., 'NJA 2024 s. 10 or SFS 2024:12') against official Sweden and ECLI/ELI registries to prevent AI-hallucinated citations.

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": {
      "citation": "<citation>"
    },
    "name": "verify_citation"
  }
}

Input Schema

NameRequiredDescriptionDefault
citationYesCase citation, ECLI, or statute reference to verify (e.g., 'NJA 2024 s. 10 or SFS 2024:12').

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it does disclose the important behavioral fact of a live registry lookup against external sources, implying network dependence. It omits what happens on partial or inconclusive matches, latency/rate-limit exposure, and that it is a non-destructive read.

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

Conciseness4/5

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

A single dense sentence, front-loaded with the jurisdiction and validation verb followed by registry details. The leading 'No-Hallucination Citation Verifier for Sweden (SE)' mildly restates the tool and title rather than adding information.

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 one-parameter, read-only verification tool with full schema coverage and an output schema covering return values, the description supplies the necessary scope and source registries. The remaining gap is failure-mode behavior, which is modest 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?

Only one parameter with 100% schema coverage, so the schema already documents the citation string; the description reinforces it with the same example formats (NJA 2024 s. 10, SFS 2024:12) but adds no new syntax or edge-case meaning beyond that.

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?

States a specific verb+resource pair ('Validates format and live existence of legal citations') with jurisdiction (Sweden/SE) and concrete registry targets (official Sweden, ECLI/ELI). It is clearly distinct from the search_* siblings, though it never names them, which keeps it just short of a 5.

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?

The purpose clause ('to prevent AI-hallucinated citations') implies when to call it, but there is no explicit when-to-use/when-not statement and no guidance on whether to call search_case_law or search_legislation first when a citation is unknown. Usage must be inferred.

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