Skip to main content
Glama
anshgautam-github

Expense Tracker MCP Server

update_expense

Update specific expense fields by ID in one call. Pass only the details you want to change—amount, date, category, subcategory, or note—and leave all other record information unchanged.

Instructions

Update one or more fields of an existing expense. Only the fields you pass are changed; everything else stays as-is.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesID of the expense to update.
dateNoNew date in YYYY-MM-DD format. Omit to leave unchanged.
noteNoNew note. Omit to leave unchanged; pass an empty string to clear it.
amountNoNew amount. Must be greater than 0. Omit to leave unchanged.
categoryNoNew top-level category. Omit to leave unchanged.
subcategoryNoNew subcategory. Omit to leave unchanged; pass an empty string to clear it.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior3/5

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

With no annotations, the description carries the burden of disclosing behavior. It usefully explains the partial-update semantics and preservation of omitted fields, which is the most important behavioral trait. However, it does not mention what happens when the id is invalid or not found, whether updates are irreversible, or any permission/error implications beyond what the schema implies.

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 sentences, no filler, and the core partial-update behavior is front-loaded. Every sentence contributes to correct usage.

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

Completeness4/5

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

For a tool with 6 parameters and an output schema, the description plus schema is largely sufficient to invoke the tool correctly. It covers the main behavioral nuance (partial update). It could be more complete by noting behavior for a nonexistent expense and whether passing only an id is a no-op, but these are gaps rather than blockers.

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

Parameters4/5

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

Schema coverage is 100%, so the schema already documents each parameter. The description adds meaningful cross-parameter semantic value by clarifying that omitted fields remain unchanged, which helps disambiguate the default-null pattern in the schema. This is a genuine contribution beyond the schema's per-field notes.

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 identifies the verb (Update), the resource (an existing expense), and the key distinction that this is a partial update rather than a full replacement. This separates it cleanly from add_expense and delete_expense even without naming them.

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 description gives clear context: use this when updating an existing expense, and only the provided fields change. It does not explicitly name alternative tools or state exclusions like 'use add_expense to create a new expense,' but the existing-expense framing makes the primary use case unambiguous.

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