Skip to main content
Glama

openfinance_list_investments

Read-onlyIdempotent

Returns the investment portfolio for a connection (broker or bank with INVESTMENTS product enabled): FIIs, stocks, ETFs, fixed income (CDB/LCI/LCA/Tesouro), mutual funds, retirement (previdência) and COE. Each row carries balance, amount, amountOriginal, amountProfit, lastMonthRate / annualRate / lastTwelveMonthsRate (when available), dueDate, issuer, ISIN, etc. Returns { total:0, results:[], warning } instead of throwing when INVESTMENTS isn't enabled (403) or other upstream errors. DATA INTEGRITY: when MULTIPLE positions come back as TOTAL_WITHDRAWAL with balance/quantity 0 at once (mass zeroing), the tool cross-checks each position's own transaction history upstream; if the zeroing is contradicted (BUY with no sale/redemption/transfer) the response carries data_integrity_warning and the affected rows are flagged integrity:'suspect_zeroed' — treat those balances as UNAVAILABLE (likely a temporary connector failure publishing zeros), never as real R$0, and do NOT sum them into the portfolio.

Bulk support: accepts item_ids for batched execution.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
itemNo
pageNo
typeNo
item_idNo
item_idsNo
page_sizeNo

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already indicate read-only, non-destructive behavior. The description adds critical details: error handling (graceful fallback on 403), data integrity cross-checking, suspect-zero row flagging, and instructions to treat those as unavailable. This goes well beyond annotations and is highly valuable.

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?

The description is front-loaded with purpose and returns a wealth of detail. While comprehensive, it could be slightly more concise by separating parameter documentation. Overall, every sentence contributes value.

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?

The description covers core behavior, error handling, and data integrity. However, without an output schema, it only partially lists return fields. Parameter documentation is incomplete. For a complex tool, this is good but not exhaustive.

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

Parameters2/5

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

With 0% schema coverage, the description must explain parameters. It only mentions 'item_ids' for bulk support and implicitly uses 'type' via the enum, but does not document 'item', 'page', 'page_size', or 'item_id'. This leaves AI agents guessing about half the parameters.

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 starts with a clear verb ('Returns') and specifies the resource ('investment portfolio for a connection'), listing all investment types covered. It distinguishes from siblings like 'openfinance_list_investment_transactions' by focusing on portfolio holdings rather than transactions.

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?

The description provides context on when to use the tool (for connections with INVESTMENTS enabled) and mentions bulk execution via item_ids. However, it does not explicitly state when not to use this tool or compare directly with sibling tools, which is a minor gap.

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
Disambiguation3/5

The openfinance_* family is mostly well-differentiated by resource type, but several tools overlap in purpose: openfinance_get_account_balance, openfinance_get_accounts_detail, and openfinance_list_accounts all return account/balance data, and openfinance_list_transactions versus openfinance_list_transactions_by_item have similar scopes. The marketplace tool also bundles many sub-actions (search, invoke, install, subscribe, report_bug, prompt library) into one tool, and duplicates the standalone report_bug tool. Detailed descriptions help, but an agent could easily misselect among the account and transaction variants.

Naming Consistency4/5

Naming is largely consistent: the finance tools follow a clear openfinance_verb_noun pattern (list_accounts, get_account_balance, force_sync, update_transaction_category). There are minor singular/plural inconsistencies (get_account_balance vs get_accounts_detail, get_credit_card_bill vs list_credit_card_bills) and generic platform verbs like authenticate/connect/marketplace that follow a different style, but the overall pattern is predictable and readable.

Tool Count3/5

25 tools is at the upper boundary of what feels manageable for a server covering platform management, marketplace operations, and a broad Open Finance data domain. The count is defensible given the many resource types (accounts, transactions, bills, loans, investments, connections), but it is heavy and the marketplace tool alone packs a dozen sub-capabilities into one entry, making the surface feel larger than 25 discrete tools.

Completeness5/5

The Open Finance surface is quite complete: connection lifecycle (list, connect, disconnect, force sync, status, provider status), account and balance reads, transactions with categorization support, credit card bills with payment status, loans, investments, and investment transactions. Platform concerns like authentication, versioning, toolkit state, marketplace search/install/invoke, and bug reporting are also covered, leaving no obvious dead ends for the server's stated purpose.