Skip to main content
Glama
Portugal Legal Research MCP Server

Portugal Legal Research MCP Server

by jurisatlas

Verify Citation

verify_citation

Verify Portuguese legal citation format and live existence against official Portugal and ECLI/ELI registries to prevent AI-hallucinated citations.

Instructions

No-Hallucination Citation Verifier for Portugal (PT). Validates format and live existence of legal citations (e.g., 'ECLI:PT:STJ:2024:123.22.0T8LSB.L1.S1 or Diário da República') against official Portugal 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:PT:STJ:2024:123.22.0T8LSB.L1.S1 or Diário da República').

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

B3.3/5.0
Behavior2/5

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

With no annotations at all, the description carries the full behavioral burden, and it leaves critical traits undisclosed. It says validation happens against live official registries but does not say what happens when a citation fails verification (error vs. a negative verdict), how long an external lookup takes, or whether it fails gracefully if a registry is unreachable.

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?

It is a single front-loaded sentence with no filler, and the capability comes first. The example citation is duplicated verbatim from the input schema, which is slight waste, but overall it is efficiently sized for a one-parameter tool.

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?

An output schema exists, so the return values do not need explaining, and the domain and registries are identified. The remaining gap is failure semantics for unverifiable or hallucinated citations, which is the single most important behavior for a verification tool and is not addressed.

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 description coverage is 100% and there is only one required parameter, so the schema already documents it fully. The description's only added meaning is by example (ECLI string, Diário da República reference), which restates the schema's own example verbatim rather than clarifying accepted input formats or normalization.

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 gives a specific verb+resource pair ('Validates format and live existence of legal citations'), scoped to Portugal and to ECLI/ELI and Diário da República registries. That is clearly different in kind from the sibling search_* tools, though no sibling is named explicitly, so the differentiation is inferred rather than stated.

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 intent ('to prevent AI-hallucinated citations') implies the usage context: verify a citation you already have before relying on it. However, there is no explicit when-to-use guidance, no statement of prerequisites, and no pointer to alternatives such as search_case_law for discovering citations you do not yet have.

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