Skip to main content
Glama

Octobooks

Import a bank statement

upload_bank_statement

Upload a bank statement file as the bank gave it, for one bank account of the company. A file read in a shell that cannot reach app.octobooks.ai goes in parts: file_sha256 (sha256sum of the file), parts, part, part_sha256 (sha256sum of the part's text) and content_base64 the part's text, 20,000 characters a part; the confirm request of a PDF then names file_sha256 and confirm only. content_base64: the original file bytes, base64 (at most 5 MB): OFX, QIF, CAMT.053, MT940, the CSV export of Barclays, NatWest, Lloyds, HSBC, Wise, American Express, Monzo, Starling, N26, Sparkasse, Deutsche Bank, Commerzbank, ING, George or ELBA, or the statement PDF as the online banking gives it, or a scan or photo of a paper statement (scanned PDF, PNG, JPEG, TIFF; read by OCR, pdf.read_by scan or photo); the format is read from the file. A PDF or scan (round 662) is read without storing anything: a request without confirm returns every line as read, each checked against the balances the PDF prints (status ok or refused with the reason), the opening and closing balance and a confirm code; the same request with confirm= imports the lines that reconcile, the PDF kept as the statement's document. Refused lines are not imported; they can be added by hand or through the CSV export. A statement that does not reconcile as a whole (a refused line, or opening plus lines is not closing) is not imported with confirm alone: confirm and import_anyway=true imports its reconciling lines, with the owner's agreement; the default is to import nothing. The preview also checks the statement's opening balance against the books (opening_check). A scan or a picture that cannot be read is refused with the formats taken (CSV, OFX, QIF, CAMT.053 or MT940 from the online banking). bank_account: the code of the bank account. Takes the bank's own file only, not typed or rebuilt lines. preview=true reads the file and stores nothing: the opening lines as read (date, amount with its sign, payee), money in and out, new lines, whether its balances add up and whether its signs agree with the account's history; a CSV of a layout not known yet comes back with its columns, then give mapping (date, amount or money_in and money_out, counterparty, description, balance, delimiter, decimal_comma, date_format). The decimal mark of a CSV is read from all its amount cells (1,234.56 UK, 1.234,56 DE and AT, 1'234.56 CH); the preview says it under numbers, and where no cell shows it, gives both readings with their totals: then send decimal_comma 1 (1.234,56) or 0 (1,234.56). Without preview, a CSV of a layout not known yet whose columns are guessed for sure is imported at once (mapping_used, undo); an unsure guess comes back unsure with why, nothing stored. invert=true turns the signs of a CSV round. A QIF file names no currency and no balance: currency (default the bank account's) and opening_balance (optional; the closing balance is then the opening balance plus the lines) say them; its dates are read from the whole file (a day over 12 decides), and where no date decides, qif_dates (day first or month first) is asked once. The file is kept with its hash and marked as uploaded through this connection; a line already on file is skipped. New lines land on the open list. Nothing is booked. Needs the right upload.

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": {
      "bank_account": "<bank_account>",
      "filename": "<filename>"
    },
    "name": "upload_bank_statement"
  }
}

Input Schema

NameRequiredDescriptionDefault
partNo
partsNo
invertNo
companyNo
confirmNo
mappingNo
previewNo
currencyNo
filenameYes
qif_datesNo
csv_profileNo
file_sha256No
part_sha256No
bank_accountYes
import_anywayNo
content_base64No
opening_balanceNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Goes well past the annotations: states the permission requirement ('Needs the right upload'), that 'Nothing is booked', that the PDF is kept as the statement's document but a non-confirmed read 'stores nothing', and that lines already on file are skipped. Some signal is muddied by internal noise ('round 662', 'pdf.read_by scan or photo') that reads like leaked changelog text rather than agent-facing behavior.

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

Conciseness2/5

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

One enormous run-on block with nested parentheticals, mid-sentence asides, and dev-facing references ('round 662', 'pdf.read_by scan or photo'). Useful facts are present but not front-loaded or grouped by mode, forcing the agent to re-parse to find the relevant workflow.

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

Completeness3/5

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

An output schema exists and the description still over-explains return behavior (status ok/refused, opening_check, mapping_used, undo), while leaving two parameters (company, csv_profile) undocumented. For a 17-parameter, multi-mode tool the coverage is broad but uneven and partly redundant.

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?

With 0% schema coverage across 17 parameters, the description carries the load and mostly succeeds: content_base64 formats and 5 MB limit, file_sha256/parts/part/part_sha256 for chunked uploads, mapping keys for unknown CSV layouts, currency/opening_balance/qif_dates for QIF. Gaps remain: company and csv_profile are never mentioned, and 'send decimal_comma 1 or 0' names a key that is not a top-level parameter, so an agent may try an invalid field.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening sentence states a specific verb and resource ('Upload a bank statement file as the bank gave it, for one bank account of the company') and later scopes it away from adjacent tools ('Takes the bank's own file only, not typed or rebuilt lines'). An agent can tell what the tool ingests, though the purpose is buried under a long tail of workflow detail.

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?

Rich conditional guidance: preview=true vs confirm with the returned code, import_anyway=true only 'with the owner's agreement' and defaulting to importing nothing, part-wise upload when the file cannot be read in a shell, and falling back to CSV export for refused lines. It stops short of naming a sibling tool to use instead, so it is not a full 5.

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