Skip to main content
Glama

brazil-parliament-mcp-server

Search Brazilian Bills

brparl_search_bills
Read-onlyIdempotent

Find bills in Câmara dos Deputados and Senado Federal by type, number, identifier year, Portuguese keywords, author, or presentation dates. Use author_state for Câmara and in_progress for Senado. Set year to search older records. Call brparl_get_bill with an identifier or chamber and ID for status and history.

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

Input Schema

NameRequiredDescriptionDefault
typeNoBill type abbreviation such as PL, PEC, or PLP.
yearNoFour-digit year in the bill identifier.
limitNoResults per page. Defaults to 25 and caps at 100.
authorNoBill author name.
numberNoPositive bill number such as 2338 or 2.338, with an optional Senado reissue sequence such as 2163-41.
offsetNoZero-based result offset.
chamberNoSelect Câmara, Senado, or both chambers.both
subjectNoSubject code from brparl_list_reference with topic=subjects. Select the code’s chamber. Published classification coverage varies by period.
end_dateNoInclusive presentation end day in YYYY-MM-DD. Pass start_date too.
keywordsNoPortuguese keywords describing the bill.
author_idNoMember ID from brparl_search_members. Select that member’s chamber.
norm_yearNoFour-digit year of the law generated by a Senado process.
start_dateNoInclusive presentation start day in YYYY-MM-DD. Pass end_date too.
in_progressNoFilter Senado processes by whether they remain in progress.
norm_numberNoSenado generated law number as a string, such as 14133 or 14.133.
author_stateNoCâmara author state abbreviation, such as SP.

Output Schema

NameRequiredDescriptionDefault
errorNoPresent when the call failed. Absent on success.
itemsNoRecords in the requested result page.
limitNoApplied page size.
totalNoCombined matching record count, or null when unknown.
noticeNoApplied limit, partial availability, or follow-up guidance.
offsetNoZero-based offset applied to the page.
sourcesNoOfficial sources credited for this result.
coverageNoCounts and availability by chamber.
attributionNoPublic bodies credited for the source records.
next_offsetNoNext combined offset, or null when unavailable or exhausted.
continuationNoChamber-specific continuation when a combined offset is unavailable.
offset_basisNoChamber whose offsets apply when global alignment is unavailable.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/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 value beyond that by disclosing chamber-specific parameter applicability and the natural follow-up call to brparl_get_bill, though it says nothing about result volume, pagination behavior, or coverage limits across chambers.

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?

Three front-loaded sentences with no filler: capability, chamber-specific parameter rules, then next-step routing. The only weak line is 'Set year to search older records,' which is terse to the point of being ambiguous about how year interacts with the identifier.

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 16-parameter, all-optional search tool with an output schema and annotations, the description covers the searchable facets, chamber scoping, and the follow-up path adequately. It does not explain how multiple filters combine or whether keywords match full text, which are the remaining gaps an agent would face.

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 coverage is 100%, so the schema already documents all 16 parameters in detail. The description's chamber pairing hints (author_state/Câmara, in_progress/Senado) largely restate what the schema descriptions say, and the note about year is ambiguous since year is a component of the bill identifier rather than a general recency filter.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The first sentence names a specific verb (Find) and resource (bills) and enumerates the searchable facets: type, number, identifier year, Portuguese keywords, author, and presentation dates, plus the two chambers covered. It is clearly distinguishable from brparl_get_bill, which the description explicitly routes to for details.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

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

It gives concrete routing guidance: use author_state for Câmara, in_progress for Senado, and call brparl_get_bill with an identifier or chamber+ID for status and history. It lacks explicit when-not-to-use guidance or a statement about combining filters, so it falls short of a full 5.

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.