List accounts and balances
list_accountsRetrieve an organization's Mercury accounts with available and current balances and account IDs for transactions, statements, and cards. Requires the exact entity key from list_entities.
Instructions
List one organization's Mercury accounts with available and current balances.
Use this for account ids (`list_transactions`, `list_statements`, and
`list_cards` take them); use `list_credit_accounts` for credit accounts
and `list_treasury` for treasury accounts. Every page of `GET /accounts`
is walked. Account numbers are masked to their last four digits;
routing numbers are not returned.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"entity": "<entity>"
},
"name": "list_accounts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entity | Yes | Exact `entity` key from `list_entities`, not its `display_name`. Required; there is no default. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||