Skip to main content
Glama

Import CSV Bank/Broker Statement

import_csv

Imports transactions from a CSV statement into the local multi-currency ledger for brokers, credit cards, or banks not covered by Open Banking.

Instructions

Imports transactions from a CSV statement located inside <BILAN_HOME>/imports into the local multi-currency ledger (useful for brokers, credit cards, or banks not covered by Open Banking).

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": {
      "filePath": "<filePath>",
      "bankName": "<bankName>",
      "accountAlias": "<accountAlias>",
      "currency": "<currency>"
    },
    "name": "import_csv"
  }
}

Input Schema

NameRequiredDescriptionDefault
bankNameYesInstitution name (e.g. 'IBKR', 'Salt Bank', 'XTB').
currencyYesDefault 3-letter currency code (e.g. RON, EUR, GBP, USD).
entityIdNoEntity ID or name to link this imported account to (default 'personal').
filePathYesFilename or path inside `<BILAN_HOME>/imports` (strictly sandboxed to the imports directory).
delimiterNo
dateColumnNo
debitColumnNo
accountAliasYesFriendly account alias (e.g. 'Salt Bank RON').
amountColumnNo
creditColumnNo
currencyColumnNo
currentBalanceNoOptional current balance to record on the account.
merchantColumnNo
descriptionColumnNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare that this is a write operation but not destructive. The description adds useful context by saying the CSV must be inside `<BILAN_HOME>/imports` and that transactions go into the local multi-currency ledger, but it does not disclose duplicate handling, account creation behavior, overwrite risks, or error conditions.

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?

The description is a single front-loaded sentence with no wasted wording. It is structurally efficient, though for a 14-parameter CSV importer it is arguably too short to carry all the operational detail an agent needs.

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

Completeness2/5

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

For a complex 14-parameter mutation tool with no output schema and incomplete schema coverage, the description is thin. It explains the overall purpose and sandbox location but omits essential details about CSV column mapping, duplicate detection, entity/account linkage, current balance handling, and what a successful import returns.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 14 parameters and only 43% schema description coverage, the description does not compensate for the missing parameter semantics. It says nothing about the eight column-mapping parameters, the delimiter, or how debit/credit/amount columns interact, and it only repeats the sandboxed imports-directory constraint already present in the schema.

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?

The description states a specific verb and resource: imports transactions from a CSV statement into the local multi-currency ledger. It also names concrete use cases (brokers, credit cards, banks not covered by Open Banking), which distinguishes it from the bank-connection siblings without needing to name them.

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?

It gives clear when-to-use guidance: CSV statements, especially for institutions not covered by Open Banking. The alternative for covered banks is implied but not explicitly named, and there are no stated exclusions or prerequisites beyond the imports directory.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.