Skip to main content
Glama

Search Brazilian federal legislation

search_legislation
Read-onlyIdempotent

Search Olhary's stored federal legislation by text, optionally within one normaId. Returns cited passages. Check the official text before relying on a passage for a legal decision.

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": {
      "query": "<query>"
    },
    "name": "search_legislation"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
queryYes
normaIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world. The description adds real context beyond them: results are "stored" corpus passages with citations, and the corpus should not be treated as authoritative for legal decisions. That accuracy/verification caveat is exactly the kind of behavioral disclosure annotations cannot carry.

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 with no filler: capability first, return shape second, caveat last. The scoping option and the verification warning are each stated in a single clause, and nothing is repeated from the schema or annotations.

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 low-complexity, read-only, three-parameter search with no output schema, the definition covers capability, return shape, and a reliance caveat adequately. The gaps are "limit" (absent entirely) and the unexplained nature of normaId, which matter modestly rather than fatally.

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 0%, so the description carries the burden, and it partially does: "query" is identified as free text and "normaId" as an optional scoping filter. However, it never explains what a normaId is (identifier format, where to obtain it) nor mentions the third parameter "limit" at all, leaving the default (12) and maximum (50) undocumented anywhere.

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?

The description pairs a specific verb ("Search") with a specific resource ("Olhary's stored federal legislation") and states the retrieval mode ("by text, optionally within one normaId"). Scope words like "federal legislation" and "cited passages" make it reasonably distinguishable from siblings such as search_municipalities or search_procurements, though it never names an alternative explicitly.

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: narrowing by normaId is described, and the closing sentence sets a reliance condition ("Check the official text before relying on a passage for a legal decision"). There is no explicit when-to-use/when-not-to-use guidance or routing to sibling tools for other corpora, so an agent must infer boundaries from the resource name.

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.

Resources