Skip to main content
Glama

Update Expense

update_expense
Destructive

Updates an expense using GET /expenses/:expense_id/update. Limitations: sensitive write operation; requires confirm=true.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
notesNo
amountNo
confirmYesRequired explicit confirmation for this sensitive operation.
user_idNo
base_urlNoOptional TrackingTime API base URL override, for example https://api.trackingtime.co/api/v4.
api_tokenNoAlias of app_password
account_idNoTrackingTime workspace/account ID. Required when the user belongs to multiple workspaces.
expense_idYes
project_idNo
spent_dateNo
category_idNo
customer_idNo
is_billableNo
access_tokenNoOAuth 2.0 bearer access token
app_passwordNoTrackingTime app password

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false, and non-idempotent, so the safety profile is largely covered. The description adds genuinely new behavioral context: the operation is treated as sensitive and is gated behind an explicit confirm=true, which the agent must know to call it successfully.

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 compact sentences with the core action front-loaded and the constraints immediately after. Nothing is padded, though the endpoint path is arguably redundant detail.

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 15-parameter destructive mutation with no output schema and thin schema coverage, the description covers the action and the confirm gate but omits which fields are updatable, auth requirements, and what changes are applied. It is adequate but leaves clear gaps.

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 only 40% across 15 parameters, so the description is expected to compensate, but it explains no field semantics (amount, spent_date, category_id, auth fields, etc.) beyond repeating the confirm requirement already documented in the schema. It leaves most parameters undocumented in both places.

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 names a specific verb and resource ('Updates an expense') and even cites the backing endpoint. It does not explicitly differentiate itself from siblings like create_expense, delete_expense, or update_events_batch, but the verb+resource pairing 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?

It states a prerequisite ('requires confirm=true') and flags the operation as sensitive, which tells the agent a guard exists. However, it gives no guidance on when to prefer this single-record update over sibling alternatives such as batch update tools, nor any exclusions.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.