Skip to main content
Glama

brazil-legislation-mcp-server

Brlaw Get Changes

brlaw_get_changes
Read-only

Trace acts affecting a federal norm or a selected provision, or earlier norms it changed. Group by act or provision, filter by dates, STF ruling class or Senado action, and continue with next_offset.

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

Input Schema

NameRequiredDescriptionDefault
normYesSenado ID, exact LexML URN, Portuguese citation, or nickname such as LGPD. For changed_by, optionally append a single provision such as Art. 55.
viewNoby_act groups by related act. by_article groups by affected norm and provision.by_act
limitNoRequested page size. Defaults to 25 and clamps to 200.
offsetNoZero-based offset. Pass next_offset to continue.
actionsNoPortuguese item action labels from brlaw_list_reference, such as Revogação. Exact spelling wins, otherwise case and accents are ignored for unique matches.
date_toNoInclusive latest signature date in YYYY-MM-DD form.
date_fromNoInclusive earliest signature date in YYYY-MM-DD form.
directionNochanged_by for later acts affecting this norm, changes for earlier affected norms, or both.changed_by
page_tokenNoOptional token from the previous page to verify that its result set is unchanged.
act_classesNoClasses of related acts to include. Add unclassified to include acts without enough classification evidence. other covers known classes outside the listed categories.
relation_kindsNoPortuguese relation labels from brlaw_list_reference. Exact spelling wins, otherwise case and accents are ignored for unique matches.

Output Schema

NameRequiredDescriptionDefault
rowsNoPaged relations grouped by act or provision.
errorNoPresent when the call failed. Absent on success.
foundNoWhether the selector resolved to one federal norm.
lexmlNoExact-URN LexML metadata or an availability result.
limitNoEffective maximum number of rows on this page.
totalNoTotal matching rows before paging.
offsetNoZero-based offset of this page.
parsedNoComponents recognized in the supplied selector.
reasonNoReason for an unresolved selector or unavailable result.
filtersNoEffective direction, view and selection filters.
norm_idNoSenado ID of the selected norm.
noticesNoPage-size adjustments, source constraints or search guidance.
guidanceNoHow to refine or retry the lookup.
provisionNoCanonical provision selected for incoming history.
truncatedNoWhether matching rows remain after this page.
candidatesNoPossible matches when the selector is ambiguous.
page_tokenNoResult-set token for the next request.
next_offsetNoOffset for the next page when more rows exist.
metadata_onlyNoTrue for records outside the federal legislation base.
unclassified_countNoNumber of distinct related act IDs without enough classification evidence, after other filters and before the class filter.
filter_may_exclude_unclassifiedNoWhether the requested class filter omits candidate acts whose actual class is unknown.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety and reach profile is covered. The description adds useful behavior beyond that: the grouping modes, filterable dimensions, and the fact that results are paged and continued via next_offset. It omits any mention of page_token consistency checking or result-set stability, and says nothing about result shape, though an output schema exists to cover that.

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, zero filler, with the core purpose front-loaded ahead of the capability list. The second sentence is telegraphic feature enumeration rather than prose, which is efficient but slightly dense to parse.

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?

For an 11-parameter tool with a full output schema and annotations, the description covers the essentials: direction, grouping, filtering, and pagination continuation. Minor gaps remain around page_token's role and what the trace yields structurally, but the structured fields fill those in.

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 every parameter is already documented, including the norm formats, view grouping, limit clamping, and date inclusivity. The description paraphrases these ('group by act or provision', 'filter by dates, STF ruling class or Senado action', 'continue with next_offset') but adds no syntax or semantics the schema lacks. Baseline 3 applies when 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: 'Trace acts affecting a federal norm or a selected provision, or earlier norms it changed.' That captures both directions of the relationship graph, which is the key distinguishing feature versus a plain norm-fetch tool. It does not name or contrast any sibling, so an agent must infer the boundary with brlaw_get_norm or brlaw_get_text.

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 object of the verb (acts affecting a norm, or norms it changed), which is enough to pick it for relationship tracing. However, there is no explicit when-to-use, when-not, or named alternative telling the agent to prefer this over brlaw_get_norm for the base norm itself.

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.