Skip to main content
Glama

Account ledger (fisa contului)

saga_account_ledger
Read-onlyIdempotent

Retrieve all ledger entries for one account over a date range, including opening, running, and closing balances; optionally include analytic sub-accounts or match by prefix.

Instructions

All entries of one account in a period with opening balance, running balance and closing balance. match=account (default) includes analytic sub-accounts ("401" -> 401, 401.x); match=prefix takes every account starting with the text.

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": "<account>",
      "date_from": "<date_from>",
      "date_to": "<date_to>"
    },
    "name": "saga_account_ledger"
  }
}

Input Schema

NameRequiredDescriptionDefault
firmNoFirm code (folder name such as "0001"). Optional when only one firm is configured.
limitNoMaximum rows to return.
matchNo
offsetNoRows to skip (for paging).
accountYes
date_toYesEnd date, YYYY-MM-DD (inclusive).
date_fromYesStart date, YYYY-MM-DD (inclusive).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world, so safety is covered. The description adds what is not in annotations and not in an output schema: the response carries opening balance, running balance, and closing balance, which tells the agent what it gets back. It never mentions limit/offset paging or how the firm scope affects results.

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?

Two dense sentences, front-loaded with the resource and its return contents, followed by the mode semantics. The parenthetical example earns its place; nothing is redundant, though the second sentence could be split for faster scanning.

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 7-parameter read tool with no output schema, the description covers the highest-risk ambiguities: return contents and account-matching semantics. Missing pieces are minor: paging behavior and whether the firm parameter is required in multi-firm setups are left unstated.

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?

The schema leaves the critical 'match' enum and the 'account' parameter undocumented, and the description fills exactly that gap by defining both modes and giving a concrete example ('401' -> 401, 401.x). The firm, limit, and offset parameters are left to the schema, which is acceptable at 71% coverage.

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: all entries of one account within a period, plus the balances it returns (opening, running, closing). That is unambiguous on its own, but it never names a sibling such as saga_journal or saga_trial_balance, so the agent must infer the boundary from the name alone.

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

Usage Guidelines3/5

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

The definition explains the default mode (match=account) and the alternative mode (match=prefix), which is real guidance on how to call it. It gives no when-to-use or when-not-to-use guidance against sibling tools like saga_journal or saga_trial_balance, so tool selection remains implied.

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