List accounts
The chart of accounts: account numbers and names you can book on.
MCP tool bokio_read → list_accounts
read
Returns the accounts of the company's chart of accounts with number and name. Bokio's API only books on accounts it supports, and a journal entry with another account is rejected, so check here first.
Parameters
| Name | Type | Description |
|---|---|---|
| search string | string | Part of the account number or name. |
tools/call
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "bokio_read",
"arguments": {
"operation": "list_accounts",
"arguments": {}
}
}
} Example response
{
"content": [
{
"type": "text",
"text": "{ ... same JSON as structuredContent ... }"
}
],
"structuredContent": {
"accounts": [
{
"account": "1930",
"name": "Företagskonto"
},
{
"account": "5010",
"name": "Lokalhyra"
}
]
},
"isError": false
}