Skip to main content
Glama
Personal Expense Categorizer

Personal Expense Categorizer

by alihabbache

summarize_spending

Read-only

Calculate category and monthly spending totals from a CSV bank export, exclude transfers, and report the amount left uncategorized.

Instructions

Totals by category and by month for a CSV bank export. Transfers are excluded from income and expense totals; reports how much money is still uncategorized.

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": "summarize_spending"
  }
}

Input Schema

NameRequiredDescriptionDefault
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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already establish readOnlyHint=true and openWorldHint=false, so safety is covered. The description adds non-obvious behavior beyond that: transfers are excluded from income and expense totals, and the tool reports the uncategorized remainder — both facts an agent could not derive from the annotations or schema.

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 dense sentences, front-loaded with the core operation before the caveats. No filler, no restatement of the tool name, and every clause carries information.

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?

With no output schema, the return shape rests on the description, which only loosely conveys 'category and month totals' plus an uncategorized figure. For a tool with a nested object parameter and auto-detection fallbacks, the definition should also say what happens when auto-detection fails or how large exports are handled.

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 two parameters have enums, so file_path, column_map, date_format, and amount_convention are already fully documented in the schema. The description says nothing additional about them, which is acceptable given that coverage, but adds no value.

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 description names a specific verb-and-resource pair ('Totals by category and by month') plus the input it operates on ('a CSV bank export'), so an agent can tell what it produces. It does not, however, contrast itself with siblings such as categorize_transactions or export_categorized_csv, so the boundary is inferred rather than stated.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no prerequisites (e.g., must transactions be categorized first?), and no mention of alternatives. The phrase 'for a CSV bank export' hints at context but does not tell an agent when this tool is preferable to categorize_transactions or export_categorized_csv.

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