Skip to main content
Glama
anshgautam-github

Expense Tracker MCP Server

add_expense

Log a new expense with date, amount, and category. Add optional note and subcategory to capture spending details for accurate tracking.

Instructions

Add a new expense entry to the database.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dateYesDate the expense occurred, in YYYY-MM-DD format.
noteNoOptional free-text note about the expense.
amountYesAmount spent. Must be greater than 0.
categoryYesTop-level category. Must match a key from the expense://categories resource, e.g. 'food', 'transport'.
subcategoryNoOptional subcategory belonging to the chosen category, e.g. 'groceries' under 'food'.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are provided, so the description must carry the full behavioral burden. It only restates the create action without disclosing side effects, prerequisites (e.g., valid category), validation behavior, idempotency, or return value. The description adds no behavioral context beyond the tool name itself.

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 a single concise sentence with no filler words. It is front-loaded and easy to parse. It loses one point because it essentially repeats the tool name and provides no extra structural value.

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?

The input schema is rich and covers parameter semantics, and an output schema exists. However, the description lacks any behavioral or usage context beyond the basic create action. For a mutation tool with no annotations, this minimal description leaves the agent to infer when and how to use it safely.

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%, so the schema already documents all five parameters, including date format, amount exclusivity, category source, and optional note/subcategory. The description provides no additional parameter meaning, which aligns with the baseline score of 3 for complete schema coverage.

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 states a specific verb ('Add') and a clear resource ('a new expense entry to the database'). This immediately distinguishes the tool from its siblings (get_expense, list_expenses, update_expense, delete_expense, etc.) which use different actions on the same resource.

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 guidance on when to use this tool versus alternatives. The description does not mention that updates should use update_expense, deletions should use delete_expense, or that category validation can be done via list_categories. The usage context is left entirely to the agent's inference.

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