Skip to main content
Glama
Personal Expense Categorizer

Personal Expense Categorizer

by alihabbache

categorize_transactions

Read-only

Parse a CSV bank export and tag each transaction with category, kind (expense/income/transfer), merchant, and matched rule. Set only_uncategorized to review transactions missed by rules.

Instructions

Parse a CSV bank export and tag every transaction with a category, kind (expense/income/transfer), merchant and the rule that matched. Returns detected format, warnings and per-category counts. Set only_uncategorized to review what rules missed.

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>"
    },
    "name": "categorize_transactions"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax transactions returned (default 200).
file_pathYesAbsolute path to the bank-export CSV on this machine.
column_mapNoExact header names, only needed when auto-detection fails.
date_formatNoOrder of numeric dates such as 03/04/2025. Default auto-detects.
amount_conventionNoSign convention for a single Amount column. Default auto-detects.
only_uncategorizedNoReturn only transactions no rule matched.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations only declare readOnlyHint and openWorldHint=false; the description adds real behavioral context on top — it reports detected format, warnings, and per-category counts, and signals internal auto-detection behavior. It does not clarify whether the tagging is persisted anywhere, which is the one meaningful gap for a "tag every transaction" operation.

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?

Three front-loaded sentences: what it does, what it returns, then the one non-obvious flag. No filler and no restating of schema names.

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?

With no output schema, the description correctly spends a sentence on return values, and six params are fully covered by the schema. Only omission of note is whether results/tags are persisted or purely a returned view.

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 100%, so the baseline is 3. The description adds semantic intent for only_uncategorized ("review what rules missed") that the schema's terse "Return only transactions no rule matched" only partly conveys, and its mention of detected format ties back to the auto-detection parameters.

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+resource ("Parse a CSV bank export and tag every transaction") and enumerates what the tagging produces — category, kind, merchant, matched rule. That scope cleanly distinguishes it from siblings like add_category_rule (writes rules) and summarize_spending (aggregates).

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?

The only usage steer is conditional: "Set only_uncategorized to review what rules missed." There is no explicit guidance on when to call this versus summarize_spending or export_categorized_csv, nor any note about prerequisites (e.g., rules must exist first).

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