Skip to main content
Glama
Portugal Legal Research MCP Server

Portugal Legal Research MCP Server

by jurisatlas

Search Legislation

search_legislation

Search Portuguese national legislation by keywords, statute title, or number via Diário da República Eletrónico, with optional year and result-limit filters.

Instructions

Search Portugal (PT) national legislation (statutes, acts, codes, regulations, official gazette) via Diário da República Eletrónico (diariodarepublica.pt) and live national legal archives.

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_legislation"
  }
}

Input Schema

NameRequiredDescriptionDefault
yearNoOptional enactment year filter.
limitNoMaximum number of results to return.
queryYesKeywords or statute title/number to search in Portugal legislation.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose something useful beyond the schema by naming the upstream sources and describing them as "live national legal archives," hinting at freshness, but it says nothing about coverage limits, language of the corpus, rate limits, or whether results are full-text matches or title matches.

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 with the jurisdiction and resource type up front and the source citation trailing as supporting detail. The parenthetical enumeration is dense but each item genuinely narrows the corpus, so there is little waste.

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?

With an output schema present and full parameter coverage, the description only needs to establish what corpus is searched and where it comes from, which it does. The remaining gap is search-behavior detail such as match semantics and result ordering, which is minor for a simple three-parameter search tool.

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%, so year, limit and query are already documented in the schema with defaults and bounds. The description adds only a light gloss on what query should contain ("statute title/number"), matching the schema's own wording, so the baseline of 3 applies.

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 pairs a specific verb ("Search") with a precisely scoped resource: Portugal national legislation, enumerated as statutes, acts, codes, regulations and official gazette, plus the named source (diariodarepublica.pt). That enumeration implicitly separates it from the case-law siblings, though it never names them, so the differentiation is inferable 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?

There is no explicit when-to-use or when-not-to-use guidance and no alternative is named; the agent must infer from "national legislation" that search_case_law and search_tiered_court_decisions cover judicial materials instead. Usage is implied by the resource scope rather than spelled out.

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