Skip to main content
Glama
anjudevchaudhary0

Expense Tracker MCP

Add Expense

add_expense

Record a new expense by providing a date, amount, category, and required subcategory, with an optional note. Ensures entries match valid categories for accurate tracking and summaries.

Instructions

Add a new expense. category and subcategory are required and must come from the data://categories resource. If a category's subcategory list is empty, any descriptive subcategory text is acceptable, but it must not be left blank.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dateYes
noteNo
amountYes
categoryYes
subcategoryYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations, the description carries the full transparency burden. It clearly indicates the mutating behavior ('Add a new expense') and adds a significant constraint about category/subcategory sourcing. However, it does not mention validation failure behavior, permissions, reversibility, or other side effects beyond the act of adding.

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?

The description is three sentences with no filler: the first states the action, and the next two deliver the key sourcing constraints. It is front-loaded and every sentence earns its place.

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?

For a simple create tool with an output schema, the description covers the most non-obvious aspect (category/subcategory sourcing) but omits date and amount expectations and gives no sibling-tool routing. It is adequate but leaves clear gaps an agent must resolve elsewhere.

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 0%, so the description must compensate. It adds meaningful semantics for category and subcategory, including the empty-subcategory rule, but it provides no guidance on date format, amount constraints, or note semantics, leaving some required parameters underspecified.

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 opens with 'Add a new expense,' a specific verb-resource pair that clearly identifies the tool's function. It also differentiates it from siblings like add_credit and the expense list/update/delete tools by naming the resource type.

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 description provides useful input-level guidance, especially that category and subcategory must come from data://categories, but it does not explicitly say when to prefer add_expense over alternatives like add_credit, nor does it state exclusions or when not to use the tool.

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