Skip to main content
Glama

brazil-legislation-mcp-server

Brlaw Lookup Citation

brlaw_lookup_citation
Read-only

Resolve Portuguese legal citations, nicknames and LexML URNs in input order. Indexed summaries include coverage. Use the returned Senado ID and provision with brlaw_get_text. A non-federal URN can return LexML metadata only.

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": {
      "citations": "<citations>"
    },
    "name": "brlaw_lookup_citation"
  }
}

Input Schema

NameRequiredDescriptionDefault
citationsYesCitation strings such as Lei 13.709/2018, art. 7º, I or ADI 6587. Resolves the first 25 and lists any remaining inputs.

Output Schema

NameRequiredDescriptionDefault
errorNoPresent when the call failed. Absent on success.
resultsNoPer-input resolution status, parsed components, norm summary, or recovery details.
unprocessedNoInputs after the first 25, preserved for a follow-up call.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations cover safety (readOnlyHint, openWorldHint), and the description adds real behavioral context beyond them: summaries carry coverage information, and a non-federal URN degrades to LexML metadata only. The truncation/batching behavior (first 25, remainder listed) is disclosed in the schema rather than here, so it is not double-counted.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences with the core action front-loaded, followed by the downstream use and then the edge case. No filler or repeated information.

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 return-value description is unnecessary, and the tool is a single-parameter resolver whose scope, ordering, next step, and partial-result behavior are all covered. The only gap is what happens for citations that resolve to nothing, which is only obliquely implied by 'lists any remaining inputs'.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds meaning beyond the schema by stating results come back 'in input order' and that mixed input types (citation strings, nicknames, URNs) are accepted in the same array. That clarifies observable output ordering and items semantics that the schema does not spell out.

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 and resource: 'Resolve Portuguese legal citations, nicknames and LexML URNs in input order.' It names exactly what input forms are accepted, which distinguishes it from sibling tools like brlaw_search_norms (query-based) and brlaw_get_text (fetch by ID).

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?

It gives a clear downstream handoff ('Use the returned Senado ID and provision with brlaw_get_text'), which implies this is the resolution step preceding text retrieval. However, it never states when to prefer this over brlaw_search_norms or brlaw_get_norm for an ambiguous reference, so the agent must infer the routing.

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.