Skip to main content
Glama

Verify Citation

verify_citation

Validates the format and live existence of Spanish legal citations against official BOE and ECLI/ELI registries to prevent AI-hallucinated references.

Instructions

No-Hallucination Citation Verifier for Spain (ES). Validates format and live existence of legal citations (e.g., 'ECLI:ES:TS:2024:150 or BOE-A-2024-1234') against official Spain 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., 'ECLI:ES:TS:2024:150 or BOE-A-2024-1234').

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

A3.6/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full behavioral burden, and it does disclose the key trait: this performs a live lookup against external official Spain and ECLI/ELI registries, not just a syntactic check. It does not say what happens when a citation is well-formed but nonexistent, nor whether failures surface as errors or a negative result, leaving a modest gap.

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 front-loaded sentence that leads with the verifier's role and jurisdiction before the rationale. The example citations duplicate what the input schema already shows, which is the only wasted content.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need no explanation, and the description correctly covers jurisdiction scope and the live-registry behavior. What remains unaddressed for a network-dependent verification tool is the outcome contract for invalid versus unverifiable citations, and whether it is safe/idempotent to call repeatedly.

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?

The single parameter is already fully described in the schema (100% coverage) with the same ECLI/BOE-A examples, so the description adds essentially nothing new about it. Baseline 3 applies when the schema does the documentation work; no extra constraints such as format rules or length are contributed here.

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+resource pair ('Validates format and live existence of legal citations') and pins the scope to Spain (ES) with concrete examples (ECLI, BOE-A). It is clearly distinguishable from the search_/list_/get_ siblings by virtue of being a verification step, but it never explicitly contrasts itself with them, so it falls 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?

Usage is only implied: the phrase 'to prevent AI-hallucinated citations' suggests calling it before relying on or emitting a citation. There is no explicit statement of when to use it versus search_case_law/search_legislation, no exclusions (e.g., non-Spanish citations), and no stated prerequisites for the calling agent.

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