Skip to main content
Glama

AssetLab

Update expense

update_expense
DestructiveIdempotent

Update an existing expense by ID. Requires expenses:write scope.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesExpense ID
notesNoNotes
amountNoExpense amount
project_idNoProject ID
category_idNoCost category ID
descriptionNoExpense description
receipt_urlNoReceipt URL
expense_dateNoExpense date (ISO 8601)
work_order_idNoWork order ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already disclose the safety profile (destructiveHint=true, idempotentHint=true, readOnlyHint=false), so the description's main added value is the auth requirement ('expenses:write scope'), which is genuinely useful. It stops short of explaining partial-update behavior (what happens to omitted fields) or the destructive implications of an update, which the annotations merely hint at.

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 short sentences with zero filler, front-loading the core action (update expense by ID) ahead of the scope requirement. Every clause earns its place.

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 mutation tool with no output schema, the combination of rich annotations, full schema coverage, and the disclosed write scope covers most of what an agent needs. The remaining gap is partial-update semantics, which is not addressed but is partially mitigated by the idempotentHint.

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%, and the required 'id' plus eight optional fields are all documented in the schema. The description adds only that the update is keyed by ID, which is already implied by the schema; no additional format or constraint semantics are provided. Baseline 3 is appropriate.

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?

States a specific verb and resource ('Update an existing expense by ID'), which clearly identifies what the tool does and that it targets an existing record. However, it does not differentiate itself from siblings beyond the resource name (e.g., vs. create_expense, bulk_update, delete_expense), leaving some inference to the agent.

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?

The description names no conditions for when to use this tool versus alternatives like bulk_update or create_expense. The only guidance given is the required scope ('expenses:write'), which is a precondition rather than usage routing.

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.

Resources