Skip to main content
Glama
ledgerlens

ledgerlens

by vovaddk

import_statement

Imports bank-statement CSV files into a local SQLite database, detecting duplicates on re-import so the same file adds no duplicate rows.

Instructions

Import a bank-statement CSV. Re-importing the same file adds no duplicates.

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": {
      "file_path": "<file_path>",
      "account": "<account>"
    },
    "name": "import_statement"
  }
}

Input Schema

NameRequiredDescriptionDefault
formatNo'auto' detects monobank-style headers; 'generic' needs a mapping.auto
accountYesAccount name to store rows under.
file_pathYesAbsolute path to the CSV statement.
mapping_pathNoTOML column mapping, required for 'generic'.
auto_categorizeNoRun rule-based categorization on new rows.

Output Schema

NameRequiredDescriptionDefault
formatYes
accountYes
date_toYes
currencyYes
warningsYes
date_fromYes
rows_totalYes
categorizedYes
rows_insertedYes
account_createdYes
rows_skipped_duplicatesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already establish that this is a non-read-only, non-destructive, closed-world operation. The description adds important behavior beyond that by disclosing duplicate suppression on re-import, though it does not cover failure handling, partial imports, or auto-categorization side effects.

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

Conciseness5/5

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

Two short sentences, front-loaded with the core action and followed by the most important non-obvious behavior. There is no redundant or filler wording.

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?

Given the full schema coverage, annotations, and output schema, the description covers the essential purpose and the key idempotency trait. It could say more about import side effects and failure modes, but it is sufficient for correct invocation.

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

Parameters3/5

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

Schema description coverage is 100%, and the schema already documents format detection, account storage, file paths, mapping requirements, and auto-categorization. The description adds no parameter-specific meaning beyond the schema, so the baseline 3 is appropriate.

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 uses a specific verb and resource: 'Import a bank-statement CSV.' That clearly distinguishes it from the read/query/reporting siblings and leaves no ambiguity about what the tool does.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It implies usage by naming the CSV import operation and notes idempotent re-import behavior, but it does not state when to choose this over alternatives, prerequisites, or when not to use it. The idempotency note is useful but is not full usage guidance.

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