Skip to main content
Glama

List accounts

list-accounts
Read-onlyIdempotent

One entity's chart of accounts as it stands in the books, by code: each account's id, code, name and classification.

WHEN TO USE:

  • Finding an account's id before a journal entry, a mapping, a register read or a schedule

  • "What accounts do we have?", or every expense account (classification='expense')

PARAMETERS:

  • classification (optional): asset, liability, equity, revenue, expense, gain or loss

  • is_active (optional): true for active accounts only, false for retired ones; omit for both

  • entity_id (optional): omit for the group parent

  • limit (optional, default 100, 1 to 1000) and offset (optional, default 0): one page

RETURNS: accounts: each with id, code, name, description, trait (its classification), sub_classification, balance_type, parent_id and depth (the chart's hierarchy), currency, is_active, is_placeholder, account_type, and the source system's external_id and external_source. pagination gives the total and whether more follow.

RELATED TOOLS:

  • get-account-register — one account's lines

  • get-trial-balance — every account's balance over a window

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list-accounts"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
offsetNo
entity_idNoThe entity whose books this acts on, by id (get-graph-info lists them). Omit for the group parent.
is_activeNo
classificationNoThe statement classification, e.g. `asset` or `expense`.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=true, idempotentHint=true and destructiveHint=false, so the safety profile is carried by structured data. The description adds real context the annotations do not: pagination defaults and bounds, and the omit-this-parameter semantics for is_active and entity_id. It does not discuss permissions or rate limits, so it is solid but not rich.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Headers make it skimmable and the core purpose is front-loaded before any parameter detail. A few lines are redundant with the input schema, notably restating the limit default and bounds, but nothing is filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the RETURNS block is doing necessary work and does it thoroughly, listing every field including hierarchy fields (parent_id, depth) and pagination metadata. Combined with parameter coverage, an agent has everything needed to call this correctly on the first try.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 40% and the schema carries no enums, so the description's explicit enumeration of classification values (asset through loss) and the true/false meaning of is_active genuinely compensate. Some content merely repeats the schema (limit default 100 and range 1-1000, offset default 0), which caps it below 5.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The first sentence names a specific resource and scope: one entity's chart of accounts by code, with the fields returned. It is immediately separable from get-account-register (an account's lines) and get-trial-balance (balances over a window), both of which are named explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The WHEN TO USE block gives concrete preconditions (finding an id before a journal entry, mapping, register read or schedule) plus a natural-language query example. RELATED TOOLS then names the adjacent tools and says what each does instead, so the agent has an explicit routing rule.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.