Skip to main content
Glama
Personal Expense Categorizer

Personal Expense Categorizer

by alihabbache

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
EXPENSE_RULES_PATHNoOverride the path to the rules.json file where custom expense categorization rules are saved.~/.personal-expense-categorizer/rules.json

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
categorize_transactionsA

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.

summarize_spendingA

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.

find_recurring_chargesB

Detect subscriptions and other recurring charges (weekly, monthly, yearly) with typical amount and next expected date.

add_category_ruleA

Teach the categorizer: transactions whose description contains the keyword will be assigned the category. Saved to the user's local rules file and applied on the next call. Only call after the user has confirmed the mapping.

list_categoriesA

List all categories with their kind and rule counts, and the location of the user's custom rules file.

export_categorized_csvA

Write the categorized transactions to a new CSV file (id,date,description,merchant,amount,category,kind,source). Refuses to overwrite an existing file unless overwrite is true, and even then only replaces files this tool previously exported. Ask the user before setting overwrite.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4/5.0

Scored across 6 tools

Disambiguation5/5

Each tool targets a distinct stage of the expense workflow: categorizing, summarizing, detecting recurring charges, managing rules/categories, and exporting. There is little overlap between tagging transactions, totaling spending, listing categories, and writing CSV output. An agent can select the correct tool from the descriptions.

Naming Consistency5/5

All tool names use a consistent snake_case verb_noun pattern: summarize_spending, categorize_transactions, find_recurring_charges, add_category_rule, list_categories, export_categorized_csv. The convention is predictable and readable throughout.

Tool Count5/5

Six tools are well-scoped for a personal expense categorizer. Each tool covers a meaningful operation without bloating the surface, and the set stays comfortably within a manageable range.

Completeness4/5

The core workflow is covered: parse/categorize transactions, summarize spending, find recurring charges, add/list category rules, and export results. Minor gaps exist around managing existing rules/categories, such as updating or deleting a rule or creating/renaming categories, though the custom rules file location provides a manual workaround.