Skip to main content
Glama
HamzaLatif02

budget-mcp

by HamzaLatif02

categorize_transaction

Assign budget categories to raw transaction descriptions using an LLM classifier. Returns category, confidence, and reasoning, validating categories before output.

Instructions

Suggest a budget category for a raw transaction description via an LLM classifier.

description: raw text as it might appear on a statement, e.g. "TESCO STORES 3421 LONDON".

Returns category (one of rent/food/transport/savings/business_expense/ entertainment/other), confidence (0-1), and reasoning. The category is checked against the allowed list before being returned - an invalid category from the model surfaces as an error rather than being passed through.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
descriptionYes
Behavior5/5

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

With no annotations available, the description fully carries the burden of behavioral disclosure. It explains that an LLM is used, that the category is validated against a fixed list, that invalid categories surface as errors, and it specifies the return fields (category, confidence, reasoning). This goes beyond basic expectations and provides meaningful transparency.

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 appropriately sized and front-loaded with the purpose. The only minor issue is the use of 'description:' on a separate line, which could be slightly confusing because it mirrors the tool's own description field. Otherwise, it is structured logically and contains no wasted content.

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

Completeness5/5

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

Given the lack of output schema and annotations, the description covers all essential context: input format with example, output structure with allowed categories and confidence range, and error behavior. Nothing critical is missing for the agent to invoke and interpret the result correctly.

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

Parameters5/5

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

The schema provides no description for the single 'description' parameter, so the tool description compensates by defining it as 'raw text as it might appear on a statement' with a concrete example ('TESCO STORES 3421 LONDON'). This gives the agent clear semantic understanding that the schema lacks.

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 clearly states the tool's function: 'Suggest a budget category for a raw transaction description via an LLM classifier.' This uses a specific verb and resource, and it is distinct from sibling tools like add_transaction or get_spending_summary, leaving no ambiguity about its purpose.

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?

The context strongly implies when to use this tool: whenever a raw transaction description needs a budget category. It includes an example of the expected input and explains the return structure, making the use case clear. However, it does not explicitly mention when not to use it or point to alternatives, so it falls short of a 5.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/HamzaLatif02/budget-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server