Skip to main content
Glama

List chart accounts

list_chart_accounts
Read-onlyIdempotent

Lists chart accounts with their current balances, for one chart or for every active chart when chart_id is omitted. Each row reports chart_account_id, chart_id, chart_account_code, chart_account_name, chart_account_type, base_number, parent, role (account, which takes postings, or category, which sums the accounts under it), control, policy description, and total — the signed sum of unvoided journal lines. include_zero_accounts defaults to true. An unknown chart_id is chart_not_found, not a widened query. Read-only and not metered.

Input Schema

NameRequiredDescriptionDefault
chart_idNoOptional chart id (active or retired). An unknown or cross-workspace chart_id returns chart_not_found. Defaults to all active charts in the workspace.
workspace_tagYesActive workspace id (the workspace_tag create_workspace and list_workspaces return).
include_zero_accountsNoInclude accounts with no posted balance. Defaults to true.

Output Schema

NameRequiredDescriptionDefault
engineYesStamped engine build/version identity for the tool result.
statusYeschart_accounts_listed on success.
accountsYesChart-account rows.
chart_idYesChart filter, when supplied.
row_countYesNumber of chart-account rows.
workspace_tagYesWorkspace scoped by the tool call.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover readOnly/idempotent/non-destructive, but the description adds genuinely new behavior: the not-metered property and, importantly, that an unknown chart_id is an error instead of a silent widening. It also explains what 'total' means (signed sum of unvoided journal lines), which is useful behavioral context.

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?

Front-loaded with the core action and scope, and every sentence carries information. The long enumeration of row fields is the weakest part, since an output schema exists and already conveys those names.

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

Completeness4/5

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

For a three-parameter read tool with full schema coverage and an output schema, this is essentially complete: scope, error behavior, defaults, and cost profile are all covered. The row-field enumeration is redundant given the output schema, so it falls just short of full marks.

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

Parameters3/5

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

Schema coverage is 100% and the parameters already document defaults and the chart_not_found behavior, so the description largely restates the schema. It does clarify that chart_id may be active or retired only in the schema, not the description. Baseline 3 is right.

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

Purpose4/5

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

States a specific verb and resource ('Lists chart accounts with their current balances') plus the scoping rule for chart_id. It does not explicitly distinguish itself from near-siblings such as list_charts or list_workspace_accounts, so an agent must infer the boundary from names alone.

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

Usage Guidelines4/5

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

Gives clear operating context: pass chart_id for one chart, omit it for every active chart, and an unknown chart_id yields chart_not_found rather than an empty or widened result. No explicit alternative tool is named for the 'I want flat accounts, not chart rows' case.

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.

Resources