Skip to main content
Glama

brazil-legislation-mcp-server

Brlaw Search Norms

brlaw_search_norms
Read-only

Search Portuguese ementas (official summaries) and apelidos (nicknames) across indexed Brazilian federal norms. Browse Senado live by omitting query and setting both signature year bounds to the same year or both dates within one year. On a temporary Senado failure, use the completed index when it covers that year. Use brlaw_lookup_citation for a specific citation and next_offset to continue a search.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "brlaw_search_norms"
  }
}

Input Schema

NameRequiredDescriptionDefault
sortNoRelevance defaults for text queries, newest otherwise.
limitNoRequested page size. Defaults to 25 and clamps to 200.
queryNoAccent-insensitive Portuguese search in ementas and nicknames. Separate required words with spaces, use uppercase OR between alternatives, double quotes for adjacent words, word* for a prefix, and -word to exclude a word from its alternative. Each alternative requires at least one positive term.
typesNoSenado type codes from brlaw_list_reference, in any case. Family siglas such as LEI also select their subtypes. Citation abbreviations such as MP, LC, DL and EC read as MPV, LCP, DEL and EMC.
ementaNoReturn full ementas or excerpts of up to 32 words. When omitted, excerpt STF ruling headnotes and keep other ementas full.
numberNoExact norm number, with optional Portuguese thousands separators.
offsetNoZero-based offset. Pass next_offset to continue.
date_toNoLatest ISO signature date.
year_toNoLast signature year, inclusive.
date_fromNoEarliest ISO signature date. Omit year bounds when using dates.
year_fromNoFirst signature year, inclusive.
page_tokenNoOptional token from the previous page to verify that its result set is unchanged.

Output Schema

NameRequiredDescriptionDefault
rowsNoFederal norm summaries in the requested order. Ementas may contain excerpts with an ellipsis at each shortened end.
errorNoPresent when the call failed. Absent on success.
limitNoEffective maximum number of rows on this page.
totalNoTotal matching rows before paging.
offsetNoZero-based offset of this page.
sourceNoSource used for this page.
filtersNoEffective filters and ordering for the current search.
noticesNoPage-size adjustments, source constraints or search guidance.
coverageNoIndex coverage when the search uses the local index.
truncatedNoWhether matching rows remain after this page.
page_tokenNoResult-set token for the next request.
next_offsetNoOffset for the next page when more rows exist.
observed_atNoWhen the live year list was observed.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already cover read-only and open-world, so the description's added value is the dual-source behavior: a live Senado backend plus a completed index with a defined fallback on transient failure. That is real information an agent cannot get from the annotations, though the description never explains index coverage limits or what a failure response looks like.

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?

Four tight sentences with no filler, and the live-versus-index behavior is front-loaded after the purpose statement. The browse instruction is a long, clause-stacked sentence that takes a second pass 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?

With 12 optional parameters, an output schema, and full annotation coverage, the description supplies the one thing structured fields cannot: which data source is queried and what to do when it fails. It stops short of describing result shape or how the two sources differ in coverage, but the output schema carries the return values.

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, and the description earns a point by explaining that omitting query plus matched year bounds switches the tool into a browsing mode. It does not add anything about sort, ementa modes, or limit clamping, but those are already documented in the schema.

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?

"Search Portuguese ementas (official summaries) and apelidos (nicknames) across indexed Brazilian federal norms" names a concrete verb, two specific searchable fields, and a bounded corpus. An agent can distinguish this from brlaw_get_norm or brlaw_get_text without opening any schema.

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

Usage Guidelines5/5

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

Gives explicit routing rules: browse live Senado by omitting query and pinning both year bounds to one year, fall back to the completed index on temporary Senado failure, and use brlaw_lookup_citation for a specific citation. Pagination continuation via next_offset is also stated, leaving little to inference.

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.