Skip to main content
Glama

Verify Citation

verify_citation

Validates Swiss legal citations against official registries to confirm format and live existence, preventing AI-hallucinated references.

Instructions

No-Hallucination Citation Verifier for Switzerland (CH). Validates format and live existence of legal citations (e.g., 'BGE 149 III 12 or SR 220 (OR/CO)') against official Switzerland 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., 'BGE 149 III 12 or SR 220 (OR/CO)').

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden, and it does disclose the key trait that this performs a LIVE existence check against external registries, not merely a regex format check — a meaningful distinction. It also constrains scope to Switzerland and names the identifier families (ECLI/ELI), but leaves open what happens for non-CH or ambiguous citations and whether lookups are rate-limited or cached.

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?

A single sentence, front-loaded with the scope and the action, with no filler. The opening label is slightly redundant with the title but immediately establishes jurisdiction before the verb, which is efficient.

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?

The tool is simple (one required parameter) and an output schema exists, so return-value explanation is unnecessary; the description covers purpose, scope, and data sources adequately. The remaining gap is edge-case behavior — invalid, non-Swiss, or partially matching citations — which matters for a verification tool with zero annotation coverage.

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 coverage is 100% and there is only one parameter, so the schema already defines 'citation' fully; the description's example ('BGE 149 III 12 or SR 220 (OR/CO)') largely duplicates the schema's own example. The additional value is confirmation that ECLI, ELI, case citations, and statute references are all accepted inputs.

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 and resource — 'Validates format and live existence of legal citations' — plus a clear jurisdictional scope (Switzerland/CH) and the registries consulted (official Swiss, ECLI/ELI). This is readily distinguishable from the sibling search_* tools, which retrieve documents rather than check whether a citation exists.

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 statement 'to prevent AI-hallucinated citations' implies when an agent should call it (after generating or receiving a citation), but there is no explicit when-to-use clause, no exclusion (e.g., behavior for non-CH citations), and no sibling named as an alternative. Usage is inferred rather than stated.

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