Documentation

query_effects

query_effects MCP tool reference, parameters, return type, and safety hints.

npm

What it does

Returns semantic transaction effect lines for income, expenses, balance-sheet movement, transfers, refunds, corrections, and grouped reporting.

Signature(year?: number | null, month?: number | null, date_from?: string | null, date_to?: string | null, status?: string | null, query?: string | null, account_id?: string | null, category_id?: string | null, account_type?: string | null, asset_id?: string | null, group_by?: string, limit?: number, offset?: number, sort?: string) => Record<string, unknown>
read-only

Read-only. This is appropriate for inspection, reporting, diagnostics, and first-pass agent answers.

When to use it

Use this section to decide whether the tool fits the user request before calling it.

Use it when an agent needs to inspect the ledger or answer a question without changing records.

Before calling

Agents should gather these facts or confirmations first.

1

No required inputs are needed, but date, status, asset, and account filters should still be explicit when the user cares about scope.

Parameters

Required inputs are marked clearly. Optional inputs can usually be omitted unless the workflow needs them.

yearoptional
integer | null

Four-digit year.

Default: null
monthoptional
integer | null

Month number from 1 to 12.

Default: null
date_fromoptional
string | null

Start date filter in YYYY-MM-DD format.

Default: null
date_tooptional
string | null

End date filter in YYYY-MM-DD format.

Default: null
statusoptional
string | null

Transaction status filter or value: posted, pending, planned, or void.

Default: "active"
queryoptional
string | null

Case-insensitive description text to search for.

Default: null
account_idoptional
string | null

Ledger account id or resolvable account reference.

Default: null
category_idoptional
string | null

Identifier from the local Clovis ledger.

Default: null
account_typeoptional
string | null

Account type filter, such as asset, liability, equity, income, or expense.

Default: null
asset_idoptional
string | null

Asset or currency id used by the ledger.

Default: null
group_byoptional
string

Optional grouping: none, journal, status, account, category, description_key, or month.

Default: "none"
limitoptional
integer

Maximum number of rows to return.

Default: 100
offsetoptional
integer

Number of rows to skip before returning results.

Default: 0
sortoptional
string

Sort order for returned rows.

Default: "date_desc"

Agent call shape

Use the exact tool name and pass arguments as structured JSON through the MCP client.

query_effects

Copy this shape into agent instructions, evals, or MCP client tests.

{
  "tool": "query_effects",
  "arguments": {}
}

Metadata