Skip to main content
Glama

Bulk import

import_transactions
DestructiveIdempotent

Import bank-statement / statement-screenshot rows in bulk. ALWAYS send the ENTIRE statement as ONE call with the full transactions array (up to 500 rows) - never split into chunks, never log rows one-by-one via log_expense. If one statement truly cannot fit in a single call, EVERY row of EVERY chunk must carry external_id (bank reference; or a statement-scoped row id such as '2026-09:r017' - bare row numbers repeat in every statement) - rows without external_id are keyed by amount+date+occurrence WITHIN one call, so identical rows arriving in different calls are indistinguishable from re-imports. Safe to re-run: keyed rows are skipped, a hand-logged twin is merged into the bank row instead of duplicating, and repeated purchases (same merchant and amount on different days, or twice the same day) import normally. Unknown categories become 'other'. Pass statement_total to get a reconciliation check. Sign convention: negative amount = money out, positive = money in.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "transactions": "<transactions>"
    },
    "name": "import_transactions"
  }
}

Input Schema

NameRequiredDescriptionDefault
accountNoTarget account name. Default: Manual.
dry_runNoPreview only: report what would be imported/skipped/merged without writing anything.
transactionsYes
statement_totalNoSigned sum of ALL rows in the source statement, for reconciliation.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, but the description goes well beyond them: it explains exactly what re-running does (keyed rows skipped, hand-logged twins merged, repeated same-merchant purchases still imported), what happens to unknown categories ('other'), and the amount sign convention. This is the kind of write-safety context an agent needs before calling a destructive bulk tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose and the one-call rule are front-loaded, and nearly every clause carries operational information. It is a dense single paragraph with nested parentheticals and em-dashes, which makes it harder to scan than a short bulleted structure would be.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 4-parameter destructive bulk tool with no output schema, the description covers dedup, merging, category fallback, and reconciliation. The gap is the return shape: it references 'a previous response's hint' and a 'reconciliation check' without describing what those responses contain.

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 75%, so the schema already carries most parameter documentation; the description adds real meaning on top by explaining why external_id matters (cross-call dedup, statement-scoped row ids, bare row numbers repeating) and why statement_total exists (reconciliation). It does not add detail on account, currency, or entity beyond what the schema states.

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 ('Import bank-statement / statement-screenshot rows in bulk') and immediately contrasts with the sibling log_expense, which it explicitly forbids for this use case. An agent can distinguish bulk statement import from single-row logging without opening either schema.

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?

Gives explicit when-to-use rules: always one call with the full array, never chunk, never log row-by-row via log_expense, and use external_id on every row only in the rare case a statement cannot fit. It also names the conditions that select dry_run and statement_total.

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.