Skip to main content
Glama

Banco PAN MCP

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

Schema Changelog

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

  1. Added
  2. Removed
  3. Changed2 schema fields changed
    • addedInput schema / properties / item_id
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / item_ids
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
  4. Added
  5. Removed
  6. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already declare readOnlyHint and non-destructive; description adds critical details about data integrity handling, mass zeroing checks, and warning flags, providing transparency beyond annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Description is front-loaded with the main purpose but then dives into a lengthy data integrity section that could be simplified or moved to a separate note. The technical details make it verbose.

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?

Covers return format ({ total, results, warning }) and error handling well. However, lacks details on pagination (page, page_size) and parameter interaction, leaving some gaps given the complexity and no output schema.

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 coverage is 0%, but description only explains item_ids briefly. Other parameters (page, page_size, type, item, item_id) lack any description of their purpose, format, or constraints, leaving ambiguity.

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?

Description clearly states it returns the investment portfolio for a connection, listing various types (FIIs, stocks, ETFs, etc.). The verb 'Returns' and specific resource are well-defined, and the tool is distinct from siblings like openfinance_list_accounts.

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 context for when to use (INVESTMENTS enabled) and mentions bulk support. However, it does not explicitly differentiate from openfinance_list_investment_transactions or give when-not-to-use scenarios.

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

The tools are mostly distinct, covering authentication, marketplace navigation, Open Finance data retrieval (accounts, transactions, bills, loans, investments), and status/connector management. Some overlap exists between openfinance_list_transactions and openfinance_list_transactions_by_item (both return transactions, but the latter is a consolidated summary), which could cause momentary confusion, though descriptions clearly differentiate them.

Naming Consistency4/5

Tool names follow a clear pattern: 'openfinance_' prefix for Open Finance operations, with consistent verb_noun structure (list_accounts, get_account_balance, update_transaction_category). However, there are a few outliers like 'authenticate', 'connect', 'marketplace', 'report_bug', and 'show_version' that don't follow the Open Finance naming convention, though they serve different purposes and are still readable.

Tool Count4/5

With 25 tools, the count is slightly high but justifiable given the broad scope: the server covers Open Finance banking data (accounts, transactions, bills, loans, investments, connections), marketplace operations, and system utilities. Not all tools are used in every session, but each serves a distinct purpose, and the count remains manageable due to clear grouping.

Completeness4/5

The tool surface covers the core Open Finance lifecycle well: list and get accounts, transactions, bills, loans, investments, plus sync, reconnect, and category updates. It also includes connector search and provider status. Minor gaps exist, such as no explicit tool for updating or deleting a transaction category rule, and no direct CRUD for connections (only list and disconnect), but these are acceptable gaps.