Skip to main content
Glama

brazil-legislation-mcp-server

Brlaw Get Text

brlaw_get_text
Read-only

Read consolidated or as-published federal legislation, including available translations. Select an exact publication ID from brlaw_get_norm. Text over 24,000 characters returns an outline: pass its section IDs back with the same edition, or select provisions by address. Inspect the served publication and dated amendment evidence.

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

Input Schema

NameRequiredDescriptionDefault
normYesSenado ID, exact LexML URN, Portuguese citation, or nickname such as LGPD.
versionNoText version. Defaults to consolidated. Omit when selecting a publication ID.
articlesNoArticle or provision addresses in request order. The first 10 are processed.
languageNoText language. Defaults to Portuguese or the language of the explicit publication.
sectionsNoSection IDs from the outline for the same source version. Omit when selecting provisions.
publication_idNoExact publication ID returned by brlaw_get_norm for this norm.
include_supersededNoShow struck Planalto text as historical markup. Defaults to false.

Output Schema

NameRequiredDescriptionDefault
urlNoURL of the actual text read.
kindNoWhole text, outline, selected provisions or sections, or an unavailable edition.
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.
sourceNoPublisher and kind of selected text.
norm_idNoResolved Senado ID.
noticesNoSource, translation, and republication notices.
guidanceNoHow to refine or retry the lookup.
markdownNoComplete reformatted official text for a whole-document response.
sectionsNoAvailable section IDs, headings, article ranges and sizes.
provisionNoProvision parsed from the citation.
candidatesNoPossible matches when the selector is ambiguous.
selectionsNoPer-address or section result, text, and supporting evidence.
observed_atNoTime this text was retrieved.
source_dateNoDate of the source used for comparison.
alternativesNoOther official publications recorded by the Senado.
metadata_onlyNoTrue for records outside the federal legislation base.
publication_idNoSenado publication record identifier.
served_versionNoActual text version, including any fallback.
served_languageNoLanguage of the official text.
acts_after_sourceNoLater recorded wording changes, or the reason comparison is unavailable.
requested_versionNoRequested text version. publication means an explicitly selected publication ID.
source_date_basisNoPublisher metadata supporting source_date.
remaining_articlesNoUnprocessed article selectors for another call.
requested_languageNoRequested language, including the default.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations only declare readOnly and openWorld; the description adds genuinely useful behavior beyond them — the 24,000-character outline fallback, the requirement to keep the same edition when re-requesting sections, and the availability of translations and superseded markup. Missing auth, rate-limit, or error disclosures keep it short of a 5.

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 compact sentences, front-loaded with purpose and then the call-sequencing rules; little waste. Phrases like 'dated amendment evidence' are slightly compressed jargon but still informative.

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 a 7-parameter read tool with an output schema and full annotation coverage, the description covers the hard parts: ID sourcing, large-result handling, edition consistency, and translations. Edge cases such as conflicting sections/articles input or invalid norm errors are left unaddressed.

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 a 3 is the baseline, but the description adds real meaning: it ties publication_id to brlaw_get_norm, explains that sections must come from the outline of the same edition, and describes selecting provisions by address for articles. These cross-parameter constraints are not evident from the schema alone.

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 (Read) and resource (consolidated or as-published federal legislation), and adds scope detail (translations, served publication, amendment evidence) that distinguishes it from brlaw_get_norm and brlaw_get_changes. An agent can identify this as the text-retrieval step without opening the schema.

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?

Explicitly routes the agent: publication IDs come from brlaw_get_norm, and oversized texts require a follow-up call passing outline section IDs back with the same edition. It does not state when to prefer this over brlaw_get_changes for amendment history, but the sequencing context is clear.

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.