Skip to main content
Glama

brazil-parliament-mcp-server

Search Brazilian Quota Expenses

brparl_search_expenses
Read-onlyIdempotent

Read one Brazilian deputy’s CEAP or senator’s CEAPS quota receipts, with totals by category and supplier over the full filtered set. Amounts are BRL and descriptions are in Portuguese. Find the member ID with brparl_search_members.

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": {
      "chamber": "<chamber>",
      "member_id": "<member_id>"
    },
    "name": "brparl_search_expenses"
  }
}

Input Schema

NameRequiredDescriptionDefault
yearNoFour-digit quota accounting year. Defaults to the last six months in Câmara or the current year in Senado.
limitNoResults per page. Defaults to 25 and caps at 100.
monthNoQuota accounting month, 1 through 12.
offsetNoZero-based result offset.
chamberYesChamber of the member.
member_idYesPositive parliamentary member ID from brparl_search_members.
supplier_idNoSupplier CNPJ in either chamber, or CPF in Câmara, with or without punctuation.

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.
noticeNoEmpty-page guidance, source availability and page-size notices.
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.
grand_totalNoAmount in BRL with two decimal places.
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.
totals_by_typeNoAll expense-category totals for the complete query.
totals_by_supplierNoAll supplier totals for the complete query.
senado_yearly_totalsNoOfficial full-year Senado quota summary when published, independent of receipt filters.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent and open-world, so safety is covered. The description adds genuinely non-obvious behavior — totals are computed over the full filtered set, not just the current page — plus currency and language of the returned text. It says nothing about pagination limits or empty-result behavior, though those are partly in the schema.

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 the core capability front-loaded, followed by output-format notes and the prerequisite. Nothing is padded and no sentence duplicates the schema.

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

Completeness5/5

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

For a filtered read with a full output schema and fully documented parameters, the description supplies the remaining essentials: chamber-specific data source, currency, language, aggregation scope and the ID lookup path. An agent has everything needed to call it correctly on the first attempt.

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%, including defaults, ranges and the CNPJ/CPF pattern, so the baseline is 3. The description's mention of brparl_search_members as the member_id source repeats what the schema description already states, adding no new parameter meaning.

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?

Names a specific verb (read) and resource (CEAP/CEAPS quota receipts) and scopes it to one member, explicitly distinguishing the two chambers' expense systems. It also states what the response contains (totals by category and supplier), so the agent knows this is not a raw line-item dump.

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?

Gives a clear prerequisite: obtain the member ID via brparl_search_members, which prevents a common failure mode on the required member_id field. It does not state when not to use it (e.g., versus brparl_get_member for non-expense data), so it stops short of full alternative routing.

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.