Skip to main content
Glama

Ler norma ou dispositivo

leis_obter
Read-onlyIdempotent

Reads Brazilian legal norms by path, URN, or citation, returning whole text paginated by article or a specific provision, and flags repealed text, pending completeness, or ambiguous citations.

Instructions

Lê uma norma por caminho, URN ou citação, inteira (paginada por artigo) ou só um dispositivo. Omite redações tachadas por padrão e avisa. Avisa também quando a fonte marca a norma como sem vigor e quando a integralidade do texto está pendente. Se a citação for ambígua, devolve candidatos.

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": {
      "referencia": "<referencia>"
    },
    "name": "leis_obter"
  }
}

Input Schema

NameRequiredDescriptionDefault
ufNoUF, para desempatar uma citação de norma estadual ou municipal.
blocoNoBloco da norma quando a numeração recomeça, por exemplo adct na Constituição. Use o índice ou parte do título.
alineaNoAlínea: a, b, c.
artigoNoArtigo, por exemplo 5, 5º, 4-A ou 1.000. Tem precedência sobre o artigo da citação. Com outro artigo, o parágrafo, o inciso e a alínea da citação não valem.
cursorNoCursor da resposta anterior, para a próxima página. Use sem mudar os outros parâmetros.
esferaNoEsfera, para desempatar uma citação.
incisoNoInciso em romano ou número: XI ou 11.
formatoNoresumido: campos essenciais e ementa curta. completo: todos os metadados do índice.resumido
paragrafoNoParágrafo: 2, 2º ou único.
referenciaYesCaminho do acervo (campo caminho de leis_buscar), URI leis://, URN LexML ou citação: "Lei 8.078/1990", "LC 123/2006", "CF art. 5º, XI", "ADCT art. 10", "Constituição do Estado de SP", "CDC art. 49", "Súmula 7 do STJ".
incluir_tachadoNotrue mostra as redações tachadas (antigas ou revogadas). O padrão omite e avisa.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.3.1
    • changedInput schema / properties / artigo / description
      Previous value: -"Artigo, por exemplo 5, 5º, 4-A ou 1.000. Tem precedência sobre o artigo da citação."New value: +"Artigo, por exemplo 5, 5º, 4-A ou 1.000. Tem precedência sobre o artigo da citação. Com outro artigo, o parágrafo, o inciso e a alínea da citação não valem."
    • changedInput schema / properties / referencia / description
      Previous value: -"Caminho do acervo (campo caminho de leis_buscar), URI leis://, URN LexML ou citação: \"Lei 8.078/1990\", \"LC 123/2006\", \"CF art. 5º, XI\", \"ADCT art. 10\", \"CDC art. 49\", \"Súmula 7 do STJ\"."New value: +"Caminho do acervo (campo caminho de leis_buscar), URI leis://, URN LexML ou citação: \"Lei 8.078/1990\", \"LC 123/2006\", \"CF art. 5º, XI\", \"ADCT art. 10\", \"Constituição do Estado de SP\", \"CDC art. 49\", \"Súmula 7 do STJ\"."
  2. First observedv0.1.0

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive, closed-world), and the description adds substantive behavior on top: strikethrough/revoked wording is omitted by default with a warning, out-of-force status is flagged, pending text completeness is flagged, and ambiguous citations return candidates. These are exactly the non-obvious traits an agent must anticipate when interpreting results. The pagination-by-article framing also signals incremental retrieval.

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?

Four short sentences, front-loaded with the verb and reference forms, then the notable behaviors. No filler, no restatement of the title or annotations. Each sentence contributes a distinct, decision-relevant fact.

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 read tool with no output schema, the description covers the modes, the ambiguity fallback, and the warning behaviors, which is what an agent needs to call and interpret it. Minor gap: it does not mention how continuation works (cursor reuse, unchanged parameters) in prose, leaving that entirely to the schema.

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 adds real meaning beyond the fields: "inteira (paginada por artigo)" explains what the cursor pages over, and "só um dispositivo" frames the artigo/paragrafo/inciso/alinea group as a disambiguating path. It does not restate the article-precedence rule, but that is already fully documented in the schema.

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?

"Lê uma norma por caminho, URN ou citação" names a specific verb and resource and enumerates the three accepted reference forms. It also states the two output modes (whole norm paginated by article, or a single provision), which makes the retrieval shape unmistakable and separable from the search siblings. It stops short of naming leis_buscar or otherwise explicitly contrasting behavior with a sibling.

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 rather than prescribed: the agent infers it should call this when it already has a path, URN, or citation in hand. The description does say what happens when a citation is ambiguous (candidates are returned), which is a useful routing signal toward re-invocation. There is no explicit when-to-use/when-not guidance versus leis_buscar or leis_facetas.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.