list_transactions
Get a bank statement from Open Finance Brasil, filter transactions by date or credit/debit type, and optionally categorize them using AI.
Instructions
Returns the bank statement of an account on Open Finance Brasil with date and type filters. Supports automatic transaction categorization via AI (categorize=true, requires ANTHROPIC_API_KEY).
Args: subject_id: User's CPF. bank: Identifier of the participating bank. account_id: Account ID returned by list_accounts. ctx: MCP request context, providing access to shared adapters and the categorizer. date_from: Start date of the period. date_to: End date of the period. credit_debit_type: Restrict to credits or debits only. page: Page number (1-based). page_size: Records per page (1-1000). categorize: If true, categorizes each transaction via AI.
Returns: The account's transactions for the requested period.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bank | Yes | ||
| page | No | ||
| date_to | No | ||
| date_from | No | ||
| page_size | No | ||
| account_id | Yes | ||
| categorize | No | ||
| subject_id | Yes | ||
| credit_debit_type | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bank | Yes | ||
| categorized | Yes | ||
| total_pages | Yes | ||
| transactions | Yes | ||
| total_records | Yes |