Skip to main content
Glama

Ledger accounts

list_ledger_accounts
Read-onlyIdempotent

List the organization's ledger accounts (value = account id, label, type income|expense). save_ledger_item needs an income account for INCOME/RECEIVABLE items and an expense account for EXPENSE/PAYABLE items; it resolves the account automatically when the org has exactly one of that type, otherwise pass account_id from this list. Read-only.

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_ledger_accounts"
  }
}

Input Schema

NameRequiredDescriptionDefault
organization_idNoorganization to act in, an id from get_me; omit to use your active organization

Output Schema

NameRequiredDescriptionDefault
okYestrue on success (including confirmation_required prompts)
dataNothe API response { status (HTTP status), data }
errorNowhen ok is false

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / additionalProperties
      Removed value: -false
    • changedInput schema / properties / organization_id / description
      Previous value: -"defaults to your active organization"New value: +"organization to act in, an id from get_me; omit to use your active organization"
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • addedOutput schema / properties / data / additionalProperties
      Added value: +{}
    • changedOutput schema / properties / data / description
      Previous value: -"tool payload (API/composite/confirmation object); object, array, or primitive JSON"New value: +"the API response { status (HTTP status), data }"
    • addedOutput schema / properties / data / properties
      Added value: +{
      +  "data": {
      +    "items": {
      +      "additionalProperties": {},
      +      "properties": {
      +        "label": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "type": {
      +          "anyOf": [
      +            {
      +              "description": "\"income\" or \"expense\"",
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "value": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "type": "array"
      +  },
      +  "status": {
      +    "type": "number"
      +  }
      +}
    • addedOutput schema / properties / data / type
      Added value: +"object"
  2. Added

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the 'Read-only' sentence mostly repeats structured data. The description does add non-obvious behavioral context about automatic account resolution in save_ledger_item and what the list values represent, though it does not mention result volume or pagination.

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?

Two compact sentences with the resource description front-loaded and the downstream usage condition immediately after. Every clause carries information; nothing is redundant padding.

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 an output schema present, the description need not enumerate return fields, and it already summarizes the key labels. Annotations cover the safety profile and the schema covers organization_id, leaving no material gap for an agent deciding whether and how to call this tool.

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 100% and the single optional organization_id is documented in the schema. The description still adds value by tying the returned account id to the account_id that save_ledger_item expects, clarifying the intended data flow rather than merely restating the parameter.

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?

States a specific verb and resource ('List the organization's ledger accounts') and describes the returned value shape (account id, label, type income|expense). It is clearly distinguishable from the mutation siblings such as save_ledger_item and delete_ledger_item.

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?

Explicitly explains when this tool is needed: save_ledger_item resolves the account automatically when the org has exactly one of the required type, otherwise the agent must pass an account_id taken from this list. It also names which type is required per item category (INCOME/RECEIVABLE vs EXPENSE/PAYABLE).

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.