Skip to content

MCP

Your CashHero data in Claude and ChatGPT

CashHero's MCP server lets your finance team ask Claude, ChatGPT, Claude Code or Codex about your own CashHero data: the ledger, account balances, P&L, cash flow and budget. This page sets out what it can read, what it returns and what we record.

Server address

https://mcp.cashhero.ai/mcp

Connect

Three steps to connect

  1. Ask CashHero to turn on MCP access for your organization. It is off until we record your organization's approval.
  2. In Claude or ChatGPT, add CashHero as a connector using the server address above; in Claude Code or Codex, add it as an MCP server. On Claude Team and Enterprise, a workspace owner adds the connector. In ChatGPT, custom connectors need a Plus, Pro, Business, Enterprise or Edu plan.
  3. Sign in with your CashHero account when prompted.

Your data

How your data is handled

Read-only. Every tool reads data. None can create, change or delete anything in CashHero.

Only your organization. We work out your organization from your verified sign-in: your email domain must match exactly one CashHero organization, and that organization must be active. A tool never takes an organization from the conversation.

Off until you approve it. Access is off for every organization until CashHero switches it on, which we do only with your organization's recorded approval. If we cannot confirm it is on, the answer is no. Switching it off takes effect within a minute, and access is checked again before every result is returned.

Your team only. Only your organization's users with a CashHero role (viewer, analyst, finance manager or admin) can call a tool. The support role, which is for CashHero staff, does not grant access on its own.

What we record. One record per call and per refused request: the time; the account, by its ID and never its email address; the organization; the AI client used; the tool, or only the length of a name that is not one; its arguments, with search text and name filters kept as their length only; how it ended (succeeded, refused and why (with how many organizations your email domain matched, if more than one), timed out, cancelled, or failed, with the reference number we gave you); for rejected arguments, their names and the length of each value, and how many unknown arguments were sent; the number of rows, whether the result was cut at the row limit, the last date your data covered, the size of the result and a SHA-256 hash of it; and how long it took. Never the result itself. Records are searchable for 90 days and archived for two years.

Limits. Up to 60 requests per user per minute, at most 100 rows per result (totals still cover every matching row), and 60 seconds per call. These keep the service responsive; they do not limit how much of your organization's data a connected user can read.

After a result leaves CashHero. Once a result reaches Claude, ChatGPT, Claude Code or Codex, that service's terms and your organization's settings there apply to it.

Reference

Every tool, every field

This list is generated from the server's own contract, so it shows exactly what each tool accepts and every field it can return. Nothing outside it leaves the server.

Compare two periods

compare_periods

Compare financial metrics between two time periods.

Use this to identify what changed between periods (e.g., month-over-month, quarter-over-quarter, or year-over-year comparisons).

Call get_company_overview first: it gives the company's periods, account categories and the rules of the data that this tool's arguments and results refer to.

Arguments

ArgumentTypeAcceptsDefault
period1_startrequired

Period 1 start date (YYYY-MM-DD)

stringYYYY-MM-DD—
period1_endrequired

Period 1 end date (YYYY-MM-DD)

stringYYYY-MM-DD—
period2_startrequired

Period 2 start date (YYYY-MM-DD)

stringYYYY-MM-DD—
period2_endrequired

Period 2 end date (YYYY-MM-DD)

stringYYYY-MM-DD—
group_by

Column to group by - "category", "subcategory", or "account"

stringcategory, subcategory, accountsubcategory
category

Keep only one category, by its exact code (e.g. "6**")

stringletters, digits and * # . _ -; up to 40 characters—
top_n

Max groups to return, largest absolute change first (default 25, max 100)

integer1 to 10000; at most 100 rows returned25

Returns

  • grouped_by
  • period1
  • period2
  • result
  • result[].account_id
  • result[].category_code
  • result[].change
  • result[].change_pct
  • result[].name
  • result[].net_amount_period1
  • result[].net_amount_period2
  • result[].subcategory_code
  • result[].transaction_count_period1
  • result[].transaction_count_period2
  • row_count
  • total_rows_matched

Drill through the account hierarchy

drill_down_hierarchy

Drill down or up the account hierarchy to understand what drives a category's spending.

Use this to answer "What's driving OPEX increase?" by starting at category (6**) and drilling down to subcategory, then to specific accounts. Shows amounts and % of parent at each level.

Call get_company_overview first: it gives the company's periods, account categories and the rules of the data that this tool's arguments and results refer to.

Arguments

ArgumentTypeAcceptsDefault
start_coderequired

Starting hierarchy code - "6**" for OPEX, "62*" for G&A, specific account code for account

stringletters, digits and * # . _ -; up to 40 characters—
direction

"down" to see children breakdown, "up" to see parent context with siblings

stringdown, updown
date_start

Start date in YYYY-MM-DD format

stringYYYY-MM-DD—
date_end

End date in YYYY-MM-DD format

stringYYYY-MM-DD—
top_n

Max breakdown rows to return, largest first (default 25, max 100)

integer1 to 10000; at most 100 rows returned25

Returns

  • breakdown_count
  • current_level
  • direction
  • next_level
  • parent_code
  • parent_name
  • parent_total
  • result
  • result[].account_id
  • result[].is_current
  • result[].name
  • result[].net_amount
  • result[].pct_of_parent
  • result[].subcategory_code
  • result[].transaction_count
  • siblings_count
  • start_code
  • total_amount

Explore the balance sheet across periods

explore_balance_sheet

Explore the balance sheet across periods (assets, liabilities, equity).

Returns ONE granularity at a time, scoped to a period window.

Call get_company_overview first: it gives the company's periods, account categories and the rules of the data that this tool's arguments and results refer to.

Arguments

ArgumentTypeAcceptsDefault
granularity

"monthly" or "quarterly" (the balance sheet has no yearly periods)

stringmonthly, quarterlymonthly
periods

Specific periods; overrides last_n

list of stringup to 24 items; each item: a year, month or quarter, e.g. 2025, 2025-12 or 2025Q4—
last_n

Most recent N periods when periods omitted (default 6, max 100)

integer1 to 1006

Returns

  • as_of_date
  • available_periods
  • available_periods{}
  • balance_sheet
  • balance_sheet{}
  • balance_sheet{}.by_category
  • balance_sheet{}.by_category{}
  • balance_sheet{}.by_category{}.by_subcategory
  • balance_sheet{}.by_category{}.by_subcategory{}
  • balance_sheet{}.by_category{}.total
  • balance_sheet{}.current_assets
  • balance_sheet{}.current_liabilities
  • balance_sheet{}.equity
  • balance_sheet{}.non_current_assets
  • balance_sheet{}.note
  • balance_sheet{}.period_label
  • balance_sheet{}.total_assets
  • balance_sheet{}.total_liabilities_equity
  • balance_sheet{}.warning
  • balance_sheet{}.working_capital
  • currency
  • granularity

Explore budget allocations

explore_budget

Needs a budget in CashHero.

Explore budget allocations plus budget-vs-actual, scoped to the top rows.

Returns the most material allocation rows (largest annual total first), not every line. Filter to a category to focus.

For budget against actual figures, call get_budget_vs_actual.

Call get_company_overview first: it gives the company's periods, account categories and the rules of the data that this tool's arguments and results refer to.

Arguments

ArgumentTypeAcceptsDefault
category_code_or_name

Keep only one category, matched by code or name (partial match)

stringup to 100 characters—
top_n

Max rows, largest annual total first (default 25, max 100)

integer1 to 10000; at most 100 rows returned25

Returns

  • currency
  • result
  • result[].account_group_code
  • result[].account_group_name
  • result[].account_id
  • result[].account_name
  • result[].april
  • result[].august
  • result[].category_code
  • result[].category_name
  • result[].december
  • result[].february
  • result[].financial_year
  • result[].january
  • result[].july
  • result[].june
  • result[].march
  • result[].may
  • result[].november
  • result[].october
  • result[].pnl_section
  • result[].september
  • result[].subcategory_code
  • result[].subcategory_name
  • result[].version
  • row_count
  • total_rows_matched

Explore cash flow across periods

explore_cashflow

Explore cashflow across periods (operating, investing, financing activities).

Returns ONE granularity at a time, scoped to a period window.

Call get_company_overview first: it gives the company's periods, account categories and the rules of the data that this tool's arguments and results refer to.

Arguments

ArgumentTypeAcceptsDefault
granularity

"monthly", "quarterly", or "yearly" (default "monthly")

stringmonthly, quarterly, yearlymonthly
periods

Specific periods; overrides last_n

list of stringup to 24 items; each item: a year, month or quarter, e.g. 2025, 2025-12 or 2025Q4—
last_n

Most recent N periods when periods omitted (default 6, max 100)

integer1 to 1006

Returns

  • as_of_date
  • available_periods
  • available_periods{}
  • cashflow
  • cashflow{}
  • cashflow{}.by_category
  • cashflow{}.by_category{}
  • cashflow{}.by_category{}.by_subcategory
  • cashflow{}.by_category{}.by_subcategory{}
  • cashflow{}.by_category{}.by_subcategory{}.inflow
  • cashflow{}.by_category{}.by_subcategory{}.net_cash
  • cashflow{}.by_category{}.by_subcategory{}.outflow
  • cashflow{}.by_category{}.inflow
  • cashflow{}.by_category{}.net_cash
  • cashflow{}.by_category{}.outflow
  • cashflow{}.closing_balance
  • cashflow{}.inflow
  • cashflow{}.months
  • cashflow{}.months_covered
  • cashflow{}.net_cash
  • cashflow{}.note
  • cashflow{}.opening_balance
  • cashflow{}.outflow
  • cashflow{}.partial
  • cashflow{}.period_label
  • cashflow{}.warning
  • currency
  • granularity

Explore profit and loss across periods

explore_pnl

Explore P&L across periods (revenue, COGS, OPEX, margins, net profit).

Returns ONE granularity at a time, scoped to a period window. Use get_period_pnl for a single fully-broken-down period.

Call get_company_overview first: it gives the company's periods, account categories and the rules of the data that this tool's arguments and results refer to.

Arguments

ArgumentTypeAcceptsDefault
granularity

"monthly", "quarterly", or "yearly" (default "monthly")

stringmonthly, quarterly, yearlymonthly
periods

Specific periods, e.g. ["2025Q1", "2025Q2"]; overrides last_n

list of stringup to 24 items; each item: a year, month or quarter, e.g. 2025, 2025-12 or 2025Q4—
last_n

Most recent N periods when periods omitted (default 6, max 100)

integer1 to 1006

Returns

  • as_of_date
  • available_periods
  • available_periods{}
  • currency
  • granularity
  • p_and_l
  • p_and_l{}
  • p_and_l{}.budget
  • p_and_l{}.budget.cogs
  • p_and_l{}.budget.cogs.actual
  • p_and_l{}.budget.cogs.by_subcategory
  • p_and_l{}.budget.cogs.by_subcategory{}
  • p_and_l{}.budget.cogs.total
  • p_and_l{}.budget.cogs.variance
  • p_and_l{}.budget.cogs.variance_pct
  • p_and_l{}.budget.finance
  • p_and_l{}.budget.finance.actual
  • p_and_l{}.budget.finance.by_subcategory
  • p_and_l{}.budget.finance.by_subcategory{}
  • p_and_l{}.budget.finance.total
  • p_and_l{}.budget.finance.variance
  • p_and_l{}.budget.finance.variance_pct
  • p_and_l{}.budget.gross_profit
  • p_and_l{}.budget.gross_profit.actual
  • p_and_l{}.budget.gross_profit.by_subcategory
  • p_and_l{}.budget.gross_profit.by_subcategory{}
  • p_and_l{}.budget.gross_profit.total
  • p_and_l{}.budget.gross_profit.variance
  • p_and_l{}.budget.gross_profit.variance_pct
  • p_and_l{}.budget.net_profit
  • p_and_l{}.budget.net_profit.actual
  • p_and_l{}.budget.net_profit.by_subcategory
  • p_and_l{}.budget.net_profit.by_subcategory{}
  • p_and_l{}.budget.net_profit.total
  • p_and_l{}.budget.net_profit.variance
  • p_and_l{}.budget.net_profit.variance_pct
  • p_and_l{}.budget.operational_profit
  • p_and_l{}.budget.operational_profit.actual
  • p_and_l{}.budget.operational_profit.by_subcategory
  • p_and_l{}.budget.operational_profit.by_subcategory{}
  • p_and_l{}.budget.operational_profit.total
  • p_and_l{}.budget.operational_profit.variance
  • p_and_l{}.budget.operational_profit.variance_pct
  • p_and_l{}.budget.opex
  • p_and_l{}.budget.opex.actual
  • p_and_l{}.budget.opex.by_subcategory
  • p_and_l{}.budget.opex.by_subcategory{}
  • p_and_l{}.budget.opex.total
  • p_and_l{}.budget.opex.variance
  • p_and_l{}.budget.opex.variance_pct
  • p_and_l{}.budget.revenue
  • p_and_l{}.budget.revenue.actual
  • p_and_l{}.budget.revenue.by_subcategory
  • p_and_l{}.budget.revenue.by_subcategory{}
  • p_and_l{}.budget.revenue.total
  • p_and_l{}.budget.revenue.variance
  • p_and_l{}.budget.revenue.variance_pct
  • p_and_l{}.budget.tax
  • p_and_l{}.budget.tax.actual
  • p_and_l{}.budget.tax.by_subcategory
  • p_and_l{}.budget.tax.by_subcategory{}
  • p_and_l{}.budget.tax.total
  • p_and_l{}.budget.tax.variance
  • p_and_l{}.budget.tax.variance_pct
  • p_and_l{}.cogs
  • p_and_l{}.cogs.by_subcategory
  • p_and_l{}.cogs.by_subcategory{}
  • p_and_l{}.cogs.total
  • p_and_l{}.finance_net
  • p_and_l{}.gross_margin_pct
  • p_and_l{}.gross_profit
  • p_and_l{}.months
  • p_and_l{}.months_covered
  • p_and_l{}.net_margin_pct
  • p_and_l{}.net_profit
  • p_and_l{}.note
  • p_and_l{}.operational_margin_pct
  • p_and_l{}.operational_profit
  • p_and_l{}.opex
  • p_and_l{}.opex.by_subcategory
  • p_and_l{}.opex.by_subcategory{}
  • p_and_l{}.opex.total
  • p_and_l{}.partial
  • p_and_l{}.period_label
  • p_and_l{}.profit_before_tax
  • p_and_l{}.revenue
  • p_and_l{}.revenue.by_subcategory
  • p_and_l{}.revenue.by_subcategory{}
  • p_and_l{}.revenue.total
  • p_and_l{}.tax
  • p_and_l{}.unassigned
  • p_and_l{}.unassigned.amount
  • p_and_l{}.unassigned.by_account
  • p_and_l{}.unassigned.by_account_gross
  • p_and_l{}.unassigned.by_account_gross{}
  • p_and_l{}.unassigned.by_account{}
  • p_and_l{}.unassigned.gross_amount
  • p_and_l{}.unassigned.pnl_coverage_pct
  • p_and_l{}.unassigned.row_count
  • p_and_l{}.warning
  • unassigned
  • unassigned.amount
  • unassigned.by_account
  • unassigned.by_account_account_count
  • unassigned.by_account_gross
  • unassigned.by_account_gross{}
  • unassigned.by_account_truncated
  • unassigned.by_account_undisplayed_gross
  • unassigned.by_account{}
  • unassigned.by_line_coverage_pct
  • unassigned.by_line_coverage_pct{}
  • unassigned.by_line_worst_period
  • unassigned.by_line_worst_period{}
  • unassigned.gross_amount
  • unassigned.pnl_coverage_pct
  • unassigned.row_count
  • unassigned.worst_line_coverage_pct

Vendors from transaction descriptions

extract_vendors_from_descriptions

Extract and group spending by vendor names parsed from transaction descriptions.

Use this to answer "What vendors are we paying in G&A?" by parsing the details field to identify recurring payees/vendors and aggregate their spending.

Call get_company_overview first: it gives the company's periods, account categories and the rules of the data that this tool's arguments and results refer to.

Arguments

ArgumentTypeAcceptsDefault
category

Filter by category code (e.g., "6**" for OPEX)

stringletters, digits and * # . _ -; up to 40 characters—
subcategory

Filter by subcategory code (e.g., "62*" for G&A)

stringletters, digits and * # . _ -; up to 40 characters—
account

Filter by specific account code (partial match)

stringletters, digits and * # . _ -; up to 40 characters—
period_start

Start date in YYYY-MM-DD format

stringYYYY-MM-DD—
period_end

End date in YYYY-MM-DD format

stringYYYY-MM-DD—
top_n

Number of top vendors to return (default 20)

integer1 to 10000; at most 100 rows returned20
min_transactions

Minimum transaction count to include vendor (default 2)

integer1 to 10000002
include_details

Also return each transaction's recorded description, cleaned and cut to 120 characters (default false)

booleanfalse

Returns

  • no_counter_account_count
  • result
  • result[].accounts
  • result[].first_date
  • result[].last_date
  • result[].total_amount
  • result[].transaction_count
  • result[].vendor
  • total_transactions_analyzed
  • total_vendors
  • unknown_details_count
  • unparseable_count

Unusual transactions

find_unusual_transactions

Find statistically unusual transactions using z-score analysis.

Use this to identify outliers that may warrant investigation - unusually large payments, unexpected expenses, or anomalous patterns. Compares each transaction to its account's historical mean and standard deviation.

Call get_company_overview first: it gives the company's periods, account categories and the rules of the data that this tool's arguments and results refer to.

Arguments

ArgumentTypeAcceptsDefault
std_threshold

Z-score threshold for unusual (default 2.0 = top ~5% outliers)

numbermore than 0; at most 1002
period_start

Start date in YYYY-MM-DD format

stringYYYY-MM-DD—
period_end

End date in YYYY-MM-DD format

stringYYYY-MM-DD—
category

Filter by category code (e.g., "6**" for OPEX)

stringletters, digits and * # . _ -; up to 40 characters—
subcategory

Filter by subcategory code (e.g., "62*" for G&A)

stringletters, digits and * # . _ -; up to 40 characters—
top_n

Number of unusual transactions to return (default 20)

integer1 to 10000; at most 100 rows returned20
include_details

Also return each transaction's recorded description, cleaned and cut to 120 characters (default false)

booleanfalse

Returns

  • result
  • result[].account_id
  • result[].account_mean
  • result[].account_std
  • result[].balance_date
  • result[].category_name
  • result[].details
  • result[].english_account_name
  • result[].net_amount
  • result[].subcategory_name
  • result[].z_score
  • showing
  • std_threshold
  • total_unusual

Account balances

get_account_balances

Get account balances with optional filters.

Use this to analyze balance sheet positions, cash balances, or asset/liability totals.

Balances come from a period-end snapshot that ends at the last closed period, which can be well short of where the ledger ends. Asking for a later date returns the last snapshot, not an error, with a warning naming the date that actually applies — so check warning and closing_balance_date before describing a figure as "as of" the date you asked for.

When the snapshot falls short, read that warning rather than reaching for a substitute: whether a position can be rebuilt from the ledger at all depends on the date and the account, and the warning says which. Cumulating ledger movement works for balance-sheet positions inside the ledger's own horizon; it does not work past that horizon, and it does not work for P&L or equity positions at any date, because the exposed ledger omits both legs of every year-end closing entry.

Call get_company_overview first: it gives the company's periods, account categories and the rules of the data that this tool's arguments and results refer to.

Arguments

ArgumentTypeAcceptsDefault
as_of_date

Get balances as of this date (YYYY-MM-DD), defaults to the latest snapshot; a date past the snapshot's end returns the last one available

stringYYYY-MM-DD—
category_name

Filter by category description (e.g., "Assets", "Liabilities")

stringup to 100 characters—
subcategory_name

Filter by subcategory description (e.g., "Current Assets")

stringup to 100 characters—
account

Filter by account code (partial match)

stringletters, digits and * # . _ -; up to 40 characters—
group_by

Group results by column (e.g., "category", "subcategory")

stringcategory, subcategory—
is_cash

Set to True to filter for cash accounts only

boolean—
limit

Maximum rows to return (default 25)

integer1 to 10000; at most 100 rows returned25

Returns

  • category_coverage_pct
  • displayed_balance
  • grand_total
  • grouped_by
  • result
  • result[].account_count
  • result[].account_group_code
  • result[].account_id
  • result[].balance_usd
  • result[].category_code
  • result[].category_name
  • result[].closing_balance_date
  • result[].english_account_name
  • result[].is_cash
  • result[].is_uncategorized
  • result[].subcategory_code
  • result[].subcategory_name
  • result[].total_balance
  • row_count
  • total_balance
  • total_rows_matched
  • uncategorized_account_count
  • uncategorized_balance
  • uncategorized_category_returned
  • undisplayed_balance_gross
  • undisplayed_balance_net

Balance trend

get_balance_trend

Get balance trends over multiple periods.

Use this to track how balances change over time (e.g., cash runway, liability growth).

Call get_company_overview first: it gives the company's periods, account categories and the rules of the data that this tool's arguments and results refer to.

Arguments

ArgumentTypeAcceptsDefault
account

Filter by account code (partial match)

stringletters, digits and * # . _ -; up to 40 characters—
category_name

Filter by category description

stringup to 100 characters—
is_cash

Set to True to analyze cash accounts only

boolean—
periods

Number of monthly periods to include (default 6)

integer1 to 606

Returns

  • periods_included
  • result
  • result[].account_count
  • result[].change
  • result[].change_pct
  • result[].period
  • result[].total_balance

Budget breakdown

get_budget_breakdown

Needs a budget in CashHero.

Get budget allocation breakdown by hierarchy level.

Use this to understand how the budget is distributed across categories.

Call get_company_overview first: it gives the company's periods, account categories and the rules of the data that this tool's arguments and results refer to.

Arguments

ArgumentTypeAcceptsDefault
level

Hierarchy level to report by: "category", "subcategory", "account_group" or "account"

stringcategory, subcategory, account_group, accountsubcategory
year

Financial year (defaults to most recent)

integer2000 to 2100—
name_filter

Filter by parent category name

stringup to 100 characters—
top_n

Max categories to return, largest allocation first (default 25, max 100)

integer1 to 10000; at most 100 rows returned25

Returns

  • grand_total
  • level
  • result
  • result[].annual_budget
  • result[].code
  • result[].name
  • result[].pct_of_total
  • row_count
  • total_rows_matched
  • year

Budget against actual

get_budget_vs_actual

Needs a budget in CashHero.

Compare budget vs actual performance by category.

Use this to identify budget variances and track spending against plan.

Call get_company_overview first: it gives the company's periods, account categories and the rules of the data that this tool's arguments and results refer to.

Arguments

ArgumentTypeAcceptsDefault
level

Hierarchy level to report by: "category", "subcategory", "account_group" or "account"

stringcategory, subcategory, account_group, accountsubcategory
year

Financial year to analyze (defaults to most recent)

integer2000 to 2100—
months

List of month names to include (e.g., ["January", "February"])

list of stringup to 12 items; each item: January, February, March, April, May, June, July, August, September, October, November, December—
name_filter

Filter by category name (partial match)

stringup to 100 characters—
top_n

Max categories to return, largest absolute variance first (default 25, max 100)

integer1 to 10000; at most 100 rows returned25

Returns

  • level
  • months_included
  • result
  • result[].code
  • result[].months
  • result[].months{}
  • result[].months{}.actual
  • result[].months{}.budget
  • result[].months{}.variance
  • result[].months{}.variance_pct
  • result[].name
  • result[].total_actual
  • result[].total_budget
  • result[].total_variance
  • result[].total_variance_pct
  • row_count
  • total_rows_matched
  • year

Company overview (start here)

get_company_overview

Start here. Returns the company's name, the date its data runs to, the currency, the periods each explore tool can return, the categories and subcategories of accounts with their codes and names, whether a budget exists, and the rules of the data (which months and entries are excluded, what truncation means, and which source is authoritative). Read the rules before interpreting any other tool's figures, and use the codes and periods listed here as arguments to the other tools.

Arguments

No arguments.

Returns

  • adjustments_included
  • as_of_date
  • available_periods
  • available_periods{}
  • available_periods{}{}
  • categories
  • categories[].category_code
  • categories[].category_name
  • categories[].subcategories
  • categories[].subcategories[].subcategory_code
  • categories[].subcategories[].subcategory_name
  • currency
  • data_rules
  • has_budget
  • organization_name

Profit and loss for a period

get_period_pnl

Get a structured P&L statement from pre-calculated overview data.

Use this for quick financial statement access without querying raw ledger data. Supports monthly, quarterly, or yearly views with optional subcategory breakdown.

Call get_company_overview first: it gives the company's periods, account categories and the rules of the data that this tool's arguments and results refer to.

Arguments

ArgumentTypeAcceptsDefault
periodrequired

Period to retrieve - "2025-12" for December 2025, "2025Q4" for Q4, "2025" for full year

stringa year, month or quarter, e.g. 2025, 2025-12 or 2025Q4—
level

"totals" for the statement lines only, "subcategory" to break each line down

stringtotals, subcategorysubcategory

Returns

  • currency
  • months_covered
  • partial
  • period
  • period_label
  • period_type
  • pnl
  • pnl.cogs
  • pnl.finance
  • pnl.gross_margin_pct
  • pnl.gross_profit
  • pnl.net_margin_pct
  • pnl.net_profit
  • pnl.operational_margin_pct
  • pnl.operational_profit
  • pnl.opex
  • pnl.revenue
  • subcategory_breakdown
  • subcategory_breakdown{}
  • subcategory_breakdown{}{}
  • unassigned
  • unassigned.amount
  • unassigned.by_account
  • unassigned.by_account_account_count
  • unassigned.by_account_gross
  • unassigned.by_account_gross{}
  • unassigned.by_account_truncated
  • unassigned.by_account_undisplayed_gross
  • unassigned.by_account{}
  • unassigned.by_line_coverage_pct
  • unassigned.by_line_coverage_pct{}
  • unassigned.by_line_worst_period
  • unassigned.by_line_worst_period{}
  • unassigned.gross_amount
  • unassigned.pnl_coverage_pct
  • unassigned.row_count
  • unassigned.worst_line_coverage_pct

Largest transactions

get_top_transactions

Get the largest transactions in a period.

Use this to find significant individual transactions for investigation.

Call get_company_overview first: it gives the company's periods, account categories and the rules of the data that this tool's arguments and results refer to.

Arguments

ArgumentTypeAcceptsDefault
date_start

Start date in YYYY-MM-DD format

stringYYYY-MM-DD—
date_end

End date in YYYY-MM-DD format

stringYYYY-MM-DD—
category

Category filter (e.g., "6**" for expenses)

stringletters, digits and * # . _ -; up to 40 characters—
sort_by

Sort by "amount" (largest first) or "date" (most recent first)

stringamount, dateamount
direction

"debit" for expenses/outflows, "credit" for income/inflows

stringdebit, creditdebit
top_n

Number of transactions to return (default 10)

integer1 to 10000; at most 100 rows returned10
include_details

Also return each transaction's recorded description, cleaned and cut to 120 characters (default false)

booleanfalse

Returns

  • direction
  • displayed_amount
  • result
  • result[].account_id
  • result[].amount
  • result[].balance_date
  • result[].category_name
  • result[].details
  • result[].english_account_name
  • result[].journal_entry_ref
  • result[].subcategory_name
  • row_count
  • total_amount
  • total_rows_matched

Query ledger transactions

query_ledger_transactions

Query ledger transactions with filters and grouping.

Use this to analyze transaction data. Filter by date range, account hierarchy levels, or specific accounts. Group results to see totals by category.

Call get_company_overview first: it gives the company's periods, account categories and the rules of the data that this tool's arguments and results refer to.

Arguments

ArgumentTypeAcceptsDefault
date_start

Start date in YYYY-MM-DD format

stringYYYY-MM-DD—
date_end

End date in YYYY-MM-DD format

stringYYYY-MM-DD—
category

Category code filter (e.g., "6**" for OPEX, "5**" for COGS)

stringletters, digits and * # . _ -; up to 40 characters—
subcategory

Subcategory code filter (e.g., "62*" for G&A)

stringletters, digits and * # . _ -; up to 40 characters—
account

Filter by account code (partial match)

stringletters, digits and * # . _ -; up to 40 characters—
group_by

Group by column - "category", "subcategory", "account", or "month"

stringcategory, subcategory, account, month—
include_details

Also return each transaction's recorded description, cleaned and cut to 120 characters (default false)

booleanfalse
limit

Maximum rows to return (default 25)

integer1 to 10000; at most 100 rows returned25

Returns

  • grouped_by
  • result
  • result[].account_id
  • result[].balance_date
  • result[].category_code
  • result[].category_name
  • result[].credit_usd
  • result[].debit_usd
  • result[].details
  • result[].english_account_name
  • result[].month
  • result[].net_amount
  • result[].subcategory_code
  • result[].subcategory_name
  • result[].transaction_count
  • row_count
  • total_credit
  • total_debit
  • total_net
  • total_rows_matched

Trace cash movements

trace_cash_movement

Trace where cash went or came from using contra-account analysis.

Use this to answer "Where did the $100K cash decrease go?" by analyzing what accounts the cash moved to/from. Shows cash movements grouped by the other side of transactions.

Call get_company_overview first: it gives the company's periods, account categories and the rules of the data that this tool's arguments and results refer to.

Arguments

ArgumentTypeAcceptsDefault
period_start

Start date in YYYY-MM-DD format

stringYYYY-MM-DD—
period_end

End date in YYYY-MM-DD format

stringYYYY-MM-DD—
direction

"in" for inflows, "out" for outflows, "both" for all movements

stringin, out, bothboth
top_n

Number of top categories to return (default 10)

integer1 to 10000; at most 100 rows returned10
group_by

Grouping level - "counter_category", "counter_subcategory", or "counter_account"

stringcounter_category, counter_subcategory, counter_accountcounter_subcategory

Returns

  • categories_count
  • categories_returned
  • counter_coverage_pct
  • direction
  • displayed_movement
  • group_by
  • period
  • result
  • result[].amount
  • result[].company
  • result[].counter_account_id
  • result[].counter_category_code
  • result[].counter_subcategory_code
  • result[].is_unattributed
  • result[].name
  • result[].transaction_count
  • total_movement
  • unattributed_amount
  • unattributed_category_returned
  • unattributed_row_count
  • undisplayed_movement_gross
  • undisplayed_movement_net

Fields any result can carry

Status, notes and, when a result is cut to fit, what was left out.

  • details_unavailable
  • message
  • note
  • reason
  • status
  • truncated
  • truncation
  • truncation.cap_chars
  • truncation.dropped
  • truncation.note
  • truncation.original_approx_tokens
  • truncation.original_chars
  • truncation.returned_keys
  • truncation.returned_rows
  • truncation.total_keys
  • truncation.total_rows
  • untrusted_text
  • untrusted_text_fields
  • warning