Skip to main content
Glama

Get account register

get-account-register
Read-onlyIdempotent

One account's posted lines, oldest first, each with the balance it leaves and the entry and event behind it.

WHEN TO USE:

  • "Why is this account's balance what it is?": the lines that make it up

  • After live-financial-statement(include_sources=true) names the accounts behind a figure: open one of them here

  • Checking what posted to an account in a month before closing it

PARAMETERS:

  • account_id (required): the chart account (element id)

  • start_date / end_date (optional, YYYY-MM-DD): the window, both inclusive; omit for the first or last line

  • entity_id (optional): omit for the group parent

  • dimension_type + dimension_member_id (optional, together): only the lines that carry that member; unallocated for the lines no member of the axis tags

  • flow_element_id (optional): only the lines tagged to that cash flow or equity row

  • include_drafts (optional, default false): also return the window's draft lines, outside every balance

  • after (optional): the next_cursor of the page before

  • limit (optional, default 200): lines per page, 1 to 1000; anything else is refused

RETURNS: account, the window, opening_balance, total_debits, total_credits, closing_balance, line_count, page_opening_balance and lines: each with its entry, posting date, memo, debit, credit, the balance after it, and the event that wrote it. Amounts are in dollars, in the account's natural sign. next_cursor is set while more lines follow. An income or expense account's opening counts from the fiscal year's start.

RELATED TOOLS:

  • live-financial-statement — the statement whose figure the account feeds

  • get-event-block — the event behind a line

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "account_id": "<account_id>"
    },
    "name": "get-account-register"
  }
}

Input Schema

NameRequiredDescriptionDefault
afterNoThe `next_cursor` of the page before.
limitNo
end_dateNoLast day of the window, YYYY-MM-DD. Omit through the last line.
entity_idNoThe entity whose books this acts on, by id (get-graph-info lists them). Omit for the group parent.
account_idYesThe chart account (element id).
start_dateNoFirst day of the window, YYYY-MM-DD. Omit from the first line.
dimension_typeNoA management dimension axis, with dimension_member_id.
include_draftsNo
flow_element_idNoOnly the lines tagged to this cash flow or equity row.
dimension_member_idNoThe member whose lines to read, or `unallocated`.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the annotations (readOnly, idempotent, closed-world, non-destructive), the description discloses ordering (oldest first), inclusive date windows, defaults, that limit values outside 1–1000 are refused, that include_drafts lines sit 'outside every balance', that amounts are in dollars in the account's natural sign, and that an income/expense opening counts from fiscal year start. Those are exactly the behavioral facts an agent could not derive from structured fields.

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

Conciseness5/5

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

The lead sentence is front-loaded with the purpose before any headers, then WHEN TO USE, PARAMETERS, RETURNS and RELATED TOOLS follow in consistent labeled blocks that support skimming. Length is justified by ten parameters, pagination, and the absence of an output schema; there is little 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 and a high-complexity cursor-paginated ledger read, the description carries the full burden and meets it: it enumerates the return fields, explains opening/closing and page-opening balances, states when next_cursor is populated, and flags the fiscal-year-start nuance for income and expense accounts. An agent could call this correctly and interpret the response without further documents.

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

Parameters5/5

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

Schema coverage is 80%, so the baseline is 3, but the description adds real meaning: dimension_type and dimension_member_id must be supplied together, `unallocated` selects lines no member of the axis tags, entity_id omission means the group parent, and start_date/end_date omission means the first or last line. The joint-parameter constraint and the unallocated convention are not expressible in the schema at all.

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 opening sentence names the exact resource (one account's posted lines) and the shape of the payload (oldest first, each with the resulting balance and the entry/event behind it). That is specific enough to separate it from balance-only siblings such as get-trial-balance or the statement-level live-financial-statement without opening either schema.

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?

Three concrete trigger scenarios are given, including a chained workflow (open an account named by live-financial-statement(include_sources=true)) and a closing-related check, plus a RELATED TOOLS section pointing to get-event-block for drill-down. There is no explicit 'when not to use' or statement of what it is not for, so it falls just short of the top band.

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.