Skip to main content
Glama

Verify Citation

verify_citation

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

Instructions

No-Hallucination Citation Verifier for New Zealand (NZ). Validates format and live existence of legal citations (e.g., '[2024] NZSC 5 or [2023] NZCA 120') against official New Zealand 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., '[2024] NZSC 5 or [2023] NZCA 120').

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

A3.7/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, and it does disclose useful behavior: verification goes against live official NZ and ECLI/ELI registries, so calls involve external lookups rather than pure local parsing. It does not say what happens when a citation is malformed, not found, or when the registry is unavailable, nor does it mention latency or rate limits.

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?

Two sentences, front-loaded with the core capability, with no filler. The opening 'No-Hallucination Citation Verifier for New Zealand (NZ)' partly restates the name and title, a minor redundancy.

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 single-parameter tool with an output schema covering return values, the description gives enough scope: jurisdiction, citation formats, and the authoritative sources checked. It falls short only on outcome semantics, i.e. how invalid or unverifiable citations are surfaced.

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 the single parameter already documents the accepted forms, including ECLI and statute references. The description's examples duplicate those in the schema rather than adding new meaning such as accepted formatting variants or normalization behavior.

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?

States a specific verb ('validates format and live existence') and resource ('legal citations (NZ)') with concrete examples of the citation formats accepted. It is clearly distinguishable from the sibling search_* and get_* tools, which retrieve documents rather than verify them.

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 stated goal, 'prevent AI-hallucinated citations,' implies the use case of checking a citation before relying on it, but there is no explicit when-to-use or when-not-to-use guidance. No alternative is named for the case where a citation should be looked up rather than verified.

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