Documentation

record_pending_expenses

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

npm

What it does

Records pending expenses in the local Clovis ledger.

Signature(account_id: string, transactions: Array<Record<string, unknown>>, counterpart_id?: string | null, asset_id?: string | null, batch_label?: string | null, tags?: Record<string, unknown> | null, dry_run?: boolean, skip_dedup?: boolean) => Record<string, unknown>
can writedry-run

Can write, but supports dry-run. Ask the agent to preview the result before committing changes.

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 prepare a change and show a preview before committing it.

Before calling

Agents should gather these facts or confirmations first.

1

Have exact values for required inputs: account_id, transactions.

2

Start with dry_run=true, show the preview, then ask before applying the change.

3

State the intended ledger change in plain language before calling the tool.

Parameters

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

account_idrequired
string

Ledger account id or resolvable account reference.

transactionsrequired
object[]

Input used by this tool.

counterpart_idoptional
string | null

Identifier from the local Clovis ledger.

Default: null
asset_idoptional
string | null

Asset or currency id used by the ledger.

Default: null
batch_labeloptional
string | null

Human label attached to the generated batch.

Default: null
tagsoptional
object | null

Metadata tags to attach.

Default: null
dry_runoptional
boolean

Preview the result without committing changes.

Default: true
skip_dedupoptional
boolean

Skips duplicate detection. Use only when the user has already reviewed the rows.

Default: false

Agent call shape

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

record_pending_expenses

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

{
  "tool": "record_pending_expenses",
  "arguments": {
    "account_id": "<account_id>",
    "transactions": [],
    "dry_run": true
  }
}

Metadata