Skip to main content
Glama

Ler norma ou dispositivo

leis_obter
Read-onlyIdempotent

Reads Brazilian legislation by path, URN, or citation, returning a full article-paginated norm or one provision; ambiguous citations return candidates and revoked text is omitted with a warning.

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. Se a citação for ambígua, devolve candidatos.

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.
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", "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. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so the safety profile is covered; the description adds real behavior beyond that: struck-through text is omitted by default with a warning, pagination is per article, and ambiguous citations return candidate matches instead of failing. It does not say what a paginated response contains beyond the cursor reference.

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?

Three short sentences, front-loaded with the core action and mode, then the default omission behavior, then the ambiguity fallback. No filler.

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 full schema coverage and annotations, the description covers the key decision points (reference forms, whole-norm vs. article, struck-text default, ambiguity). The main gap is return shape — e.g., that the response carries a next cursor — which is left to the parameter docs.

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 (uf, esfera, bloco, artigo precedence, cursor, incluir_tachado) is already documented in the schema. The description only restates the reference forms and the pagination mode, adding no syntax or precedence detail beyond what the schema provides — baseline 3.

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?

States a specific verb (lê) and resource (norma/dispositivo) plus the accepted reference forms (caminho, URN, citação) and the two read modes (inteira paginada por artigo vs. dispositivo isolado). It does not name the sibling leis_buscar in the description itself, so differentiation from search is only implied (the path link appears in 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 Guidelines3/5

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

Usage is implied: this is the retrieval tool for a known norm, as opposed to searching. The ambiguous-citation fallback ('devolve candidatos') tells the agent what happens but not explicitly when to prefer leis_buscar over this tool or how to recover from ambiguity. No explicit exclusions.

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