Skip to main content
Glama

finance

Accounts: Get account history

get_account_history
Read-onlyIdempotent
    Get transaction history for a specific account with running balance.

    Shows transactions in reverse chronological order with a running
    balance column, useful for seeing how the balance changed over time.

    By default, only transactions dated **today or earlier** are returned
    — this keeps the running-balance trail anchored to the live
    ``current_balance``. Pass ``include_scheduled=True`` to also see
    future-dated rows (e.g. recurring transactions the cron will spawn);
    when scheduled rows are included, the running-balance walk anchors at
    the projected balance (``current_balance`` plus the sum of unapplied
    future impacts) so the math still reconciles, and each future row
    carries an ``is_scheduled: True`` flag.

    Args:
        account_id: Account to show history for
        limit: Maximum transactions to return (default 50, max 200)
        include_scheduled: When False (default), filter out future-dated
            rows. When True, include them and walk from the projected
            balance.

    Returns:
        Account info and transaction history with running balances.
        Response includes ``include_scheduled`` so callers know which
        view they got and ``projected_balance`` when scheduled rows
        are included.
    

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
account_idYes
include_scheduledNo

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?

Annotations already declare readOnlyHint=true and idempotentHint=true, so the safety profile is covered. The description goes beyond this by explaining default date filtering, how include_scheduled changes the running-balance anchor to the projected balance, and the is_scheduled flag on future rows. It also tells callers the response will echo include_scheduled and include projected_balance, providing concrete behavioral detail.

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 main purpose is front-loaded in the first sentence, with default behavior, parameter details, and return values following in logical order. Every sentence adds value, and the longer include_scheduled explanation is justified because it covers subtle running-balance math.

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?

Given there is no output schema, the Returns section adequately describes what callers get: account info, transaction history with running balances, the echoed include_scheduled flag, and projected_balance when scheduled rows are included. The description also covers defaults and edge behavior, making it complete enough for an agent to call the tool correctly.

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 description coverage is 0%, so the description carries the full burden, and it fully compensates. The Args section explains account_id, limit (including the max of 200 that the schema omits), and include_scheduled in behavioral terms. This is more informative than the schema alone.

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 description opens with a specific verb and resource: 'Get transaction history for a specific account with running balance.' It also explains the return orientation and running-balance column, making the tool's purpose unambiguous. The name and description together clearly distinguish this from shared-account or plain list-transaction tools.

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?

The description gives clear context for when to use the tool: viewing an individual account's transaction history with a running balance, and it explains the default date filter and the include_scheduled option. It does not explicitly name alternatives like get_shared_account_history or get_account_details, so it stops short of full when-not-to-use guidance.

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