Skip to main content
Glama

Banco do Brasil MCP

openfinance_get_credit_card_bill

Read-onlyIdempotent

Returns bill-level detail for one or more credit card bills by id (GET /bills/:id): dueDate, billClosingDate (when the cycle closed — the boundary that defines which purchases belong to this bill), totalAmount, financeCharges and payments[] (id, paymentDate, amount, valueType, paymentMode). ITEMIZED PURCHASES (OPT-IN): the bank's bill payload has no transactions in it — they live on the card ACCOUNT. Pass include_transactions:true (plus account_id of the credit card, since the bill itself carries no account reference) and each row also gets transactions[], transactions_count, transactions_sum and reconciles_with_total, already matched to that bill. Always check transactions_basis: bill_id = exact (the bank tagged each transaction with this bill — the normal case for CLOSED bills), date_window = ESTIMATE (confidence:'low', window echoed in transactions_window) used when the connector tags no billId or the bill is still open (PENDING lines get no billId until the cycle closes), unavailable = no link possible. Opt-in because it costs an extra full transaction scan of the account. Whatever the basis, the bill's own totalAmount is authoritative — do NOT rebuild it by summing transactions. Without the opt-in the response carries a transactions_hint; you can also fetch them yourself via openfinance_list_transactions with the credit card account_id and a from/to range ending at billClosingDate. Pass bill_ids as an array — use openfinance_list_credit_card_bills first to discover ids. { results, errors } batch shape. NOTE: Pluggy does NOT return a paid/status field. In Brazilian Open Finance, payments[] reflects payments registered during THIS bill's billing cycle — typically the payment of the PREVIOUS bill (do NOT assume this bill was paid just because payments[] is non-empty). To check paid status, prefer openfinance_list_credit_card_bills which derives payment_status via cross-bill match.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bill_idsYes
account_idNo
transactions_detailNo
include_transactionsNo

TDQS

A4.9/5.0
Behavior5/5

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

Annotations only cover safety and idempotency, so the description carries substantial weight. It discloses key behavioral nuances: transactions are not in the bill payload, opt-in cost, transactions_basis semantics, the authoritative nature of totalAmount, and the non-obvious meaning of payments[] in Brazilian Open Finance. No annotation contradiction exists; the description adds rich context.

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?

The description is long but every sentence earns its place, given the nuance of the endpoint. It is structured logically: base fields, optional transaction enrichment, transaction basis explanation, important payment caveat, and pointers to sibling tools. The density is justified and well front-loaded.

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?

With no output schema and zero schema description coverage, this description carries the full explanatory burden. It covers return fields, batch shape, transaction linking logic, authoritative amount handling, an extra scan cost, and how to derive payment status. This is exhaustive enough for an agent to invoke the tool correctly without external documentation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate. It clearly explains bill_ids as an array requiring prior list discovery, account_id as the credit card account needed for transaction inclusion, and include_transactions including its cost and effects. However, the transactions_detail enum parameter is not explained in the description, leaving one of four parameters underspecified.

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 description immediately states the action and resource: returns bill-level detail for one or more credit card bills by id. It names the specific fields returned and explicitly differentiates from sibling tools by noting that list tool should be used for discovery and list transactions for fetching transactions separately. This is clear and high-signal.

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

Usage Guidelines5/5

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

The description gives explicit usage direction: call openfinance_list_credit_card_bills first to discover ids, optionally pass include_transactions to enrich responses, or use openfinance_list_transactions for manual transaction fetching. It also warns when not to assume paid status and points to the sibling tool that derives payment_status. This is excellent routing guidance.

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.

TDQS

A4/5.0
Disambiguation4/5

Most tools target distinct resources and operations (balance, accounts, loans, investments, connections, provider status), but credit card bill handling is split across three overlapping tools (get_credit_card_bill, list_credit_card_bills, list_transactions), which could cause misselection. The platform-level tools (authenticate, connect, marketplace, etc.) are clearly distinct from the finance tools.

Naming Consistency3/5

The openfinance_* tools mostly follow a verb_noun snake_case pattern (list_accounts, get_account_balance, update_transaction_category), but a few deviate (openfinance_provider_status, openfinance_search_bank_connectors). The non-prefixed platform tools break the pattern entirely with mixed styles: verbs (connect, authenticate), nouns (marketplace), and noun_verb (report_bug, show_version).

Tool Count3/5

At 25 tools, this sits at the high end of reasonable scope. Each Open Finance tool maps to a specific endpoint or workflow, and the platform tools are needed for the MCP meta-layer, but the sheer number makes the set feel heavy and harder to navigate.

Completeness4/5

The Open Finance surface is thorough: connection lifecycle, accounts, balances, transactions, credit card bills, loans, investments, categories, and provider health. Minor gaps exist (e.g., no webhook management, no bulk CSV export), but core workflows are well covered and there are no dead ends.