Skip to main content
Glama

buscar_norma

Read-onlyIdempotent

Find Brazilian legal norms by reference, number, type, year, sphere, or state and return header metadata, validity status, wording type, repository path, and official source link.

Instructions

Localiza uma norma e devolve metadados do cabeçalho (título, ementa, data), vigencia (estado segundo o acervo, sem presumir vigência), redacao (compilada ou original), caminho no repositório e link oficial da fonte.

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": "buscar_norma"
  }
}

Input Schema

NameRequiredDescriptionDefault
ufNoUF, para normas estaduais (ex.: 'SP').
anoNoAno (4 dígitos).
tipoNoTipo: 'lei', 'lei complementar', 'decreto-lei', 'decreto', 'medida provisória', 'emenda constitucional' ou nome do diretório ('leis-ordinarias').
esferaNofederal, estaduais, municipais, reguladores, jurisprudencia ou tratados.
limiteNoMáximo de resultados (1 a 50).
numeroNoNúmero da norma (alternativa a `referencia`).
referenciaNoReferência livre: 'Lei 8.245/91', '8245/1991', '8.245', 'LC 123/2006', 'DL 5.452', ou apelido ('CDC', 'CLT', 'código civil', 'constituição').

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and openWorldHint, so the safety profile is covered. The description adds real value beyond them by flagging that `vigencia` reflects the acervo's state and must not be read as presumed validity, and by characterizing `redacao` as compiled vs. original — non-obvious semantic caveats an agent would otherwise miss.

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?

A single front-loaded sentence that opens with the verb and then lists payload fields; dense but every clause carries information. The long enumeration of return fields is slightly redundant given an output schema exists.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Return shape, safety profile and the vigencia caveat are all covered, and an output schema is present. However, for a tool with seven optional filters and zero required parameters, the description gives no hint about how filters combine or what an empty result means, leaving a meaningful behavioral gap.

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% and each of the seven optional filters is already documented (including the referencia-as-alternative-to-numero note). The description mentions no parameters at all, so it adds nothing beyond the schema; baseline 3 applies.

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?

Uses a specific verb and resource ('Localiza uma norma') and enumerates what comes back — header metadata, `vigencia`, `redacao`, repository path and official link — which implicitly contrasts with siblings that return text (buscar_texto, ler_artigo). It never names or explicitly distinguishes itself from `listar_normas`, so differentiation is left to inference.

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?

The returned-metadata emphasis implies this is the lookup step before fetching full text, but there is no explicit 'use this when… / use buscar_texto or listar_normas instead' guidance, and no statement about what to do when nothing matches.

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

Deploy Server

Other Tools