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

Parameters: list_gl_accounts
NameTypeDescription
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

JSON-RPC

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "exact_online_read",
    "arguments": {
      "operation": "list_gl_accounts",
      "arguments": {}
    }
  }
}

Example response

JSON

{
  "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
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.