Skip to main content
Glama

resolve_legal_citation

Resolve uma citação legal (URN LexML, número de lei, ou trecho do título) contra o corpus oficial sincronizado pelo dpo2u-legal-worker. Retorna o documento normalizado + content_hash + aggregate_hash da jurisdição para uso em attestations on-chain.

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": {
      "jurisdiction": "<jurisdiction>",
      "citation": "<citation>"
    },
    "name": "resolve_legal_citation"
  }
}

Input Schema

NameRequiredDescriptionDefault
citationYesA citação a buscar. Pode ser: (a) URN LexML completo (`urn:lex:br:federal:lei:2018-08-14;13709`), (b) número de lei (`13709` ou `Lei 13.709`), (c) trecho do título (`Plano Nacional de Educação`).
includeTextNoSe true (default), retorna o texto completo do documento. Se false, retorna apenas metadados + content_hash (resposta ~100x menor).
jurisdictionYesCódigo DPO2U da jurisdição (LGPD, GDPR, MICAR, DPDP, APPI, PIPA, PDP-ID, Malaysia-PDPA, Vietnam-Decree-13, PDPA-SG, PIPEDA, CCPA, LFPDPPP, POPIA, PDPL-UAE, BriberyAct-UK).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/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. It does disclose meaningful behavior beyond the schema: resolution happens against an officially synchronized corpus maintained by dpo2u-legal-worker, and the response includes a normalized document plus content_hash and aggregate_hash scoped to the jurisdiction. It omits failure modes (unknown citation, jurisdiction mismatch), any authorization requirements, and whether results are cached or deterministic.

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 action and the accepted input forms, then the return contract and downstream use. Every clause carries information; no filler. Slightly dense but well ordered.

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?

There is no output schema, so the description usefully states what comes back (normalized document, content_hash, aggregate_hash). For a tool with three fully documented parameters this is close to sufficient, but the absence of any statement about miss/ambiguity behavior leaves a real gap for an agent that must decide whether to retry or report failure.

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 the schema already documents all three parameters, including the three accepted citation formats and the ~100x payload reduction from includeText=false. The description restates the citation formats without adding syntax, precedence, or edge-case guidance beyond the schema. Baseline 3 is appropriate since the schema does the heavy lifting.

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 and resource ("Resolve uma citação legal") and enumerates the accepted citation forms (URN LexML, law number, title fragment). It also names the authoritative source corpus, so an agent knows this is a lookup/normalization tool rather than a general legal search. It does not explicitly contrast itself with any sibling, keeping it 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 implied by the stated purpose: resolving a citation and obtaining hashes for on-chain attestations. That downstream framing gives the agent a real reason to pick this tool over a generic query. However, there is no explicit when-not guidance, no statement about what to do if the citation is not found, and no named alternative within the sibling set.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources