Skip to main content
Glama
Portugal Legal Research MCP Server

Portugal Legal Research MCP Server

by jurisatlas

Search Case Law

search_case_law

Search Portuguese court decisions and binding precedents across STJ, Constitutional Court, STA, and Tribunais da Relação; filter by court, legal issue, party, or ECLI and return matching judgments.

Instructions

Search Portugal (PT) court decisions and binding precedents via DGSI Bases Jurídico-Documentais (dgsi.pt) & Jurisprudência CSTJ/TC and open national judicial archives (Supported courts: Supremo Tribunal de Justiça (STJ), Tribunal Constitucional, Supremo Tribunal Administrativo (STA), Tribunais da Relação).

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": {
      "query": "<query>"
    },
    "name": "search_case_law"
  }
}

Input Schema

NameRequiredDescriptionDefault
courtNoOptional court filter (Supremo Tribunal de Justiça (STJ), Tribunal Constitucional, Supremo Tribunal Administrativo (STA), Tribunais da Relação).
limitNoMaximum number of judgments to return.
queryYesLegal issue, keywords, party name, or ECLI/case number.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It does add useful behavioral context by disclosing the aggregation sources and the coverage boundary (only the named courts are supported), which an agent needs to judge completeness of results. It says nothing about whether hits are metadata, snippets or full text (get_legal_document_markdown exists as a sibling, hinting at a two-step flow that is never stated), nor about rate limits or latency across multiple upstream sources.

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 the verb and scope first, and no filler. The cost is a redundant parenthetical court list that duplicates the schema's court description almost verbatim, adding length without new information.

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?

With an output schema present, return-value documentation is covered, and the source/coverage disclosure is a genuine asset for a federated search tool. What is missing for a tool of this complexity is the relationship to siblings — particularly whether this is the broad discovery search versus the tiered court-decision search, and whether a follow-up call to get_legal_document_markdown is required to read a decision.

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%, with all three parameters documented including defaults and the 1-50 limit bound, so the schema already does the heavy lifting. The description's only parameter-relevant content is the list of supported courts, which merely restates the court parameter's own description without adding filter syntax, matching behavior, or how query strings are interpreted (keywords vs ECLI vs party name).

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 ("Search") and a well-defined resource (Portuguese court decisions and binding precedents), naming the underlying sources (dgsi.pt, CSTJ/TC, open judicial archives) and the courts covered. It stops short of differentiating from the sibling search_tiered_court_decisions, which on name alone appears to cover overlapping territory, so an agent cannot tell from this text which search tool to pick.

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 implied by scope: the tool is for Portuguese case law, limited to the four listed court families. There is no explicit statement of when to prefer it over search_tiered_court_decisions or search_legislation, and no guidance on when it is the wrong choice (e.g. non-Portuguese jurisdictions, or legislation lookup).

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