Skip to main content
Glama

brazil-legislation-mcp-server

Brlaw Get Norm

brlaw_get_norm
Read-only

Get one federal norm by Senado ID, URN, citation or nickname. Inspect its ementa (official summary), Senado publications, subject indexing and change counts. Pass publication_id to brlaw_get_text for an exact edition, or request consolidated text to check for a Senado, Câmara or Planalto compilation.

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": {
      "norm": "<norm>"
    },
    "name": "brlaw_get_norm"
  }
}

Input Schema

NameRequiredDescriptionDefault
normYesSenado ID, exact LexML URN, Portuguese citation, or nickname such as LGPD.
include_lexmlNoInclude exact-URN LexML metadata, the bill of origin and doctrine citations when available.
lexml_doctrine_limitNoMaximum LexML doctrine rows on this page. Defaults to 10.
lexml_doctrine_offsetNoZero-based offset in the doctrine table. Continue with lexml.doctrine.next_offset.

Output Schema

NameRequiredDescriptionDefault
urlNoOfficial norm record.
urnNoLexML Uniform Resource Name.
normNoNormalized federal norm metadata and aliases.
errorNoPresent when the call failed. Absent on success.
foundNoWhether the selector resolved to one federal norm.
lexmlNoExact-URN LexML metadata or an availability result.
parsedNoComponents recognized in the supplied selector.
reasonNoReason for an unresolved selector or unavailable result.
classesNoSubject classes.
catalogoNoSenado catalog descriptors.
guidanceNoHow to refine or retry the lookup.
indexacaoNoSubject indexing phrases.
provisionNoProvision parsed from the citation.
truncatedNoWhether more LexML doctrine rows follow. Present when the requested LexML record is available.
candidatesNoPossible matches when the selector is ambiguous.
observacaoNoSenado record note.
publicationsNoOfficial publications including record and text IDs, source dates and URLs.
metadata_onlyNoTrue for records outside the federal legislation base.
text_versionsNoText-bearing Senado publications available by ID. Consolidated lookup can also check Planalto when a Câmara or Senado compilation is unavailable.
changes_summaryNoCount and newest related act for each direction and relation kind.
record_updated_atNoMetadata update date. Later changes to the graph can postdate it.
latest_related_act_dateNoNewest signature date recorded among related acts.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and openWorldHint, so safety is covered; the description adds real value by describing the payload (official summary, publications, subject indexing, change counts) and by noting pagination continuation via lexml.doctrine.next_offset. It stops short of stating rate limits or what is included only conditionally, but the annotation bar is lower here.

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 front-loaded sentences with no filler: the primary capability first, then the sibling routing. The trailing clause about consolidated text is slightly vague rather than wasteful, so it is efficient but not flawless.

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 only one required parameter, an output schema present, and full schema description coverage, the description supplies what an agent still needs: accepted identifier forms, the shape of the returned data, and how to hand off to brlaw_get_text. The unelaborated 'consolidated text' request is the only loose end.

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 coverage is 100%, so norm, include_lexml, and the doctrine limit/offset are already documented, and the baseline of 3 applies. The description corroborates the identifier formats but does not add meaning to include_lexml or the doctrine pagination parameters beyond what the schema says, and it references a publication_id that is not one of this tool's inputs.

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 ('Get one federal norm') plus the accepted identifier forms (Senado ID, URN, citation, nickname), and lists what the response contains (ementa, Senado publications, subject indexing, change counts). It also implicitly separates itself from brlaw_get_text, which it names explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives concrete routing: use brlaw_get_text with a publication_id for an exact edition, and this tool for the consolidated view. The alternative is named with the condition that selects it, though the phrase 'request consolidated text' is not tied to any visible parameter, leaving a small ambiguity about how that request is expressed.

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.