Letra da Lei

Documentation

Tools

The tools are grouped by source, the way they appear in your assistant. You don't need to memorize them: the assistant picks and calls the right tool based on your question.

buscar_artigos

Semantic search over federal legislation. Returns the most relevant articles with text, their position in the law, and identifiers to dig deeper.

  • -query (required): natural-language question or keywords, in Portuguese.
  • -area: filter by legal area(s) (e.g. 'tributario').
  • -norma: filter by a specific law (e.g. 'CDC', 'CF-1988').
  • -limit: number of results (default 5, max 10).

explorar_contexto

Navigates a law's index (sections and articles) and, for an article, shows its mapped relations: cites, cited by, and amends.

  • -search_id: explore the section containing an article (a handle from buscar_artigos).
  • -norma + section_id: navigate a law's structure by section.
  • -limit / offset: pagination of the section's articles.