Skip to main content
Glama
AdvancedExpenseTracker

AdvancedExpenseTracker

update_expense

Modify an existing expense by providing its expense ID and only the fields that need changing, such as amount, category, date, note, tags, or payment method.

Instructions

Update an existing expense. Only provide fields to change.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "expense_id": "<expense_id>"
    },
    "name": "update_expense"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNo
noteNo
tagsNo
amountNo
categoryNo
expense_idYes
subcategoryNo
payment_methodNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior3/5

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

With no annotations, the description must carry the full behavioral burden, and it does disclose the key partial-update contract (send only changed fields). It does not address what happens when a nullable field is explicitly passed as null (clear vs. ignore), what permissions are required, or whether the update is reversible — significant gaps for a mutation tool.

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?

Two short sentences with the operation stated first and the partial-update rule second — no wasted words and well front-loaded. The second sentence is slightly ambiguous on its own (“fields to change” relative to what) but remains compact and readable.

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

Completeness2/5

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

For an 8-parameter mutation tool with zero annotation coverage, zero schema descriptions, and no sibling routing, two sentences are not sufficient. The presence of an output schema removes the need to document return values, but the null-vs-omit semantics and field-level constraints remain unexplained.

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

Parameters2/5

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

Schema description coverage is 0% across 8 parameters, so the description is the only source of parameter meaning, and it supplies just one uniform rule (“only provide fields to change”). It gives no format guidance for date, amount, tags (typed as a plain string), category, or subcategory, and does not explain the null defaults on the optional fields.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource (“Update an existing expense”), which clearly distinguishes it from the add_* and delete_* siblings. It does not explicitly name any alternative, but the add/update contrast is unambiguous.

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?

“Only provide fields to change” gives useful partial-update guidance for constructing the call, which is real usage context. However, there is no explicit when-to-use vs. when-not guidance, no mention of prerequisites (e.g., the expense must already exist), and no named alternative such as delete_expense for removal.

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