Skip to main content
Glama

BTGPactual MCP

openfinance_get_account_balance

Read-onlyIdempotent

Returns the latest available balance per account id (GET /accounts/:id/balance). This is the freshest balance the provider can serve, but it is a SNAPSHOT anchored to the connection's last upstream sync: the updateDateTime/updatedAt in each row is that sync instant, NOT a to-the-second live read. If a movement that just happened is not reflected yet, or the balance disagrees with the sum of openfinance_list_transactions, run openfinance_force_sync to pull fresh data and then re-read. Pass account_ids as an array (1–50). CREDIT accounts may return Pluggy BALANCE_FETCH_ERROR (provider could not fetch it) or BALANCE_CONSENT_ERROR (the institution refused it because the consent lacks the balance permission — reconnecting the bank restores it) — those rows include a structured warning instead of throwing. When the financial institution is temporarily unavailable upstream (5xx) or the connector is not Open Finance, the row DEGRADES to the last-synced balance with realtime: false, updatedAt and a warning instead of an error. Response shape: { results: [...], errors: [{ id, status, message }] }.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
account_idsYes

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Added
  2. Removed
  3. Added
  4. Removed
  5. Added
  6. Removed
  7. Added
  8. Removed
  9. Added
  10. Removed
  11. Added
  12. Removed
  13. Added
  14. Removed
  15. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, and the description adds substantial context beyond them: snapshot freshness semantics, the meaning of updateDateTime/updatedAt, specific error codes (BALANCE_FETCH_ERROR, BALANCE_CONSENT_ERROR) with structured warnings, the consent-recovery path, and row-degradation behavior on upstream 5xx errors. This is exactly the kind of behavioral nuance an agent cannot infer from annotations alone.

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 carries distinct operational content: purpose, freshness semantics, remediation workflow, parameter bounds, credit-account error modes, and degradation behavior. It is front-loaded with the core purpose and organized so that an agent can scan to the relevant clause. No filler or redundancy.

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?

Given there is no output schema, the description does a good job of revealing partial return shape (rows contain updateDateTime/updatedAt, error rows carry a structured warning, degraded rows appear instead of throwing). The main remaining gap is the successful response payload for a normal row (exact balance field name and currency), which an agent would likely need to discover empirically. For a simple single-parameter read tool with rich error handling, this is nearly complete.

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 carries the full burden for the single parameter. It adds the critical constraint 'Pass account_ids as an array (1–50)', which is the most operationally important detail beyond the schema's bare 'array of strings'. However, it does not state where the account IDs come from (e.g., openfinance_list_accounts) or provide an example, so the guidance is strong but not exhaustive.

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 opens with a specific verb and resource: 'Returns the latest available balance per account id (GET /accounts/:id/balance).' It explicitly clarifies that this is a snapshot anchored to the last upstream sync, not a live read, which sharply distinguishes it from sibling tools like openfinance_list_transactions and openfinance_force_sync. An agent can immediately know what this tool does and what its key limitation is.

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 when-to-use and when-to-escalate guidance: if a recent movement is missing or the balance disagrees with the sum of openfinance_list_transactions, the agent is told to run openfinance_force_sync and then re-read. It also names the conditions under which the tool returns structured warnings instead of throwing, so the caller can handle CREDIT-account error cases appropriately.

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

A3.9/5.0
Disambiguation4/5

The openfinance_* family is well-decomposed by resource (accounts, transactions, bills, investments, loans, connections) and by action (list, get, update, sync, disconnect), and the highly detailed descriptions make each tool's boundaries clear. A few pairs can be confused at a glance (list_accounts vs. get_account_balance, list_transactions vs. list_transactions_by_item, connect vs. toolkit_info), but the semantics are ultimately distinguishable.

Naming Consistency3/5

The openfinance_* group follows a strong and consistent verb_noun pattern (list_transactions, get_item_status, force_sync). However, the platform-level tools are a mixed bag—authenticate, connect, marketplace, toolkit_info, show_version, report_bug—so there is no single predictable naming scheme across the whole server.

Tool Count3/5

At 25 tools, the server is at the heavy/borderline boundary, though most of the surface area is genuinely needed for Open Finance reads and connection lifecycle management. Some functions overlap (list_accounts returns balances that get_account_balance also exposes), making the set feel slightly bloated and closer to a two-in-one platform (Open Finance + marketplace).

Completeness4/5

The server covers the full Open Finance discovery and connectivity lifecycle: search, reconnect, force sync, provider health, accounts, transactions, credit cards, investments, loans, and category correction. Gaps like initiating a new connection or executing financial movements are handled through connect URLs rather than direct tools, so the unavoidable dead-end is likely workable and the core read/aggregate domain is well covered.