List bank accounts
Bank and cash accounts in Alegra with the ID needed to record a payment.
MCP tool alegra_read → list_bank_accounts
read
Returns the accounts a payment can be booked to, with name and type. Use bank_account_id from each item in record_payment. The list shows accounts only and no balances or transactions.
Parameters
No parameters.
tools/call
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "alegra_read",
"arguments": {
"operation": "list_bank_accounts",
"arguments": {}
}
}
} Example response
{
"content": [
{
"type": "text",
"text": "{ ... same JSON as structuredContent ... }"
}
],
"structuredContent": {
"bank_accounts": [
{
"bank_account_id": "2",
"name": "Bancolombia",
"type": "bank"
},
{
"bank_account_id": "1",
"name": "Caja general",
"type": "cash"
}
]
},
"isError": false
}