List ledger accounts
General ledger accounts of a division with code and description.
MCP tool exact_online_read → list_gl_accounts
read
Lists the ledger accounts of one division with their code and description. Use the code in book_journal_entry. Search by code or part of the description to find one account.
Parameters
| Name | Type | Description |
|---|---|---|
| division integer | integer | Division (company) code from list_divisions. Default: the account's current division. |
| query string | string | Part of the code or the description. |
| limit integer | integer | Records per page. Default: 50. |
| cursor string | string | Next page cursor from the previous call. |
tools/call
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "exact_online_read",
"arguments": {
"operation": "list_gl_accounts",
"arguments": {}
}
}
} Example response
{
"content": [
{
"type": "text",
"text": "{ ... same JSON as structuredContent ... }"
}
],
"structuredContent": {
"accounts": [
{
"gl_account": "4000",
"description": "Rent",
"type": "expense"
},
{
"gl_account": "1800",
"description": "Accruals",
"type": "liability"
}
],
"next_cursor": null
},
"isError": false
}