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 declare readOnlyHint, idempotentHint, and destructiveHint, but the description adds significant behavioral context: graceful handling of 403 by returning a warning structure, data integrity cross-checking for mass zeroing, and explicit instruction to treat suspect_zeroed balances as unavailable rather than real R$0. This goes well beyond what annotations provide.

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 the core purpose, then provides a detailed data integrity warning and bulk support note. It is somewhat long but information-dense; each sentence adds value, though the data integrity section could be condensed without losing essential guidance.

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 complex tool with no output schema, the description covers return structure, error handling, data integrity, and bulk execution. However, it lacks parameter semantics and explicit alternative-tool guidance, leaving some usage gaps.

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?

Schema description coverage is 0%, so the description must compensate, but it only mentions item_ids for bulk execution. Parameters like item, page, type, item_id, and page_size are left unexplained, with no details on filtering or pagination semantics.

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 uses the specific verb 'Returns' and identifies the resource as 'investment portfolio for a connection', enumerating asset types (FIIs, stocks, ETFs, fixed income, mutual funds, retirement, COE). This clearly distinguishes it from sibling tools like openfinance_list_investment_transactions, which focus on transactions rather than the portfolio.

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?

Provides clear context by specifying that it targets connections with the INVESTMENTS product enabled and notes bulk execution via item_ids. However, it does not explicitly mention alternatives or when to use list_investment_transactions instead, so it lacks explicit exclusions.

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

The openfinance_* tools are mostly distinct by resource and action, but several pairs create ambiguity: openfinance_get_item_status vs openfinance_provider_status, openfinance_list_transactions vs openfinance_list_transactions_by_item, and the monolithic marketplace tool overlaps with top-level report_bug and toolkit_info. Descriptions do clarify the differences, but an agent selecting by name alone could easily choose the wrong tool.

Naming Consistency3/5

The openfinance_* family follows a mostly consistent verb_noun pattern (list_accounts, get_balance, update_transaction_category), which is good. However, top-level tools mix bare verbs, nouns, and verb_noun forms (authenticate, connect, marketplace, show_version, toolkit_info), and openfinance_provider_status breaks the verb-first pattern. The naming is readable but not uniform across the whole set.

Tool Count3/5

25 tools sits right at the heavy boundary, though the server covers two domains: mcp.ai platform management and Open Finance data access. Some tools could be consolidated (list_transactions vs list_transactions_by_item, get_item_status vs provider_status), and marketplace is a monolithic super-tool that bundles many sub-capabilities. Overall the count is defensible but slightly bloated.

Completeness4/5

The Open Finance surface is thorough: accounts, balances, transactions, credit card bills, loans, investments, connection management, sync, category updates, and provider health are all covered. Minor gaps exist, such as no investment detail beyond the list and connection actions being URL-based rather than first-class tools, but there are no dead ends for typical read/aggregation workflows.