Skip to main content
Glama

Update expense

update_expense
Destructive

Update a planned expense. Optional matchingGroup (empty string clears). Optional iconColor sets the expense's own icon circle color (independent of its box); "default" resets.

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": {
      "budgetId": "<budgetId>",
      "boxId": "<boxId>",
      "expenseId": "<expenseId>"
    },
    "name": "update_expense"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo
boxIdYes
amountNo
budgetIdYes
currencyNo
expenseIdYes
frequencyNoHow often the bill is paid. biweekly = every 2 weeks; fourWeekly = every 4 weeks; everyNYears = every intervalYears years; once = a single payment on paymentAnchorDate (required), saved for monthly until then.
iconColorNo
descriptionNo
paymentCountNoNumber of payments starting at paymentAnchorDate (e.g. 12 for 12x / parcelas, 360 for a 30-year mortgage); the server sets paymentEndDate. Not with paymentEndDate.
intervalYearsNoYears between payments when frequency is everyNYears.
matchingGroupNo
paymentEndDateNoLast payment in yyyy-MM-dd (inclusive, up to 50 years ahead); after it the expense stops counting. Needs paymentAnchorDate. Empty string clears. Prefer paymentCount for instalments.
savingStartDateNoOne-time only (frequency once): the day saving starts, yyyy-MM-dd, on or before paymentAnchorDate. Defaults to today; set it when the user already started saving earlier.
paymentAnchorDateNoA payment date in yyyy-MM-dd (up to 10 years in the past, or 10 years ahead); the schedule repeats from it. Empty string clears.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changed
    • addedInput schema / properties / frequency / description
      Added value: +"How often the bill is paid. biweekly = every 2 weeks; fourWeekly = every 4 weeks; everyNYears = every intervalYears years; once = a single payment on paymentAnchorDate (required), saved for monthly until then."
    • addedInput schema / properties / frequency / enum
      Added value: +[
      +  "monthly",
      +  "bimonthly",
      +  "quarterly",
      +  "triannual",
      +  "semiannual",
      +  "annual",
      +  "weekly",
      +  "biweekly",
      +  "everyNYears",
      +  "fourWeekly",
      +  "once"
      +]
    • addedInput schema / properties / intervalYears
      Added value: +{
      +  "description": "Years between payments when frequency is everyNYears.",
      +  "maximum": 10,
      +  "minimum": 2,
      +  "type": "integer"
      +}
    • addedInput schema / properties / paymentAnchorDate
      Added value: +{
      +  "description": "A payment date in yyyy-MM-dd (up to 10 years in the past, or 10 years ahead); the schedule repeats from it. Empty string clears.",
      +  "type": "string"
      +}
    • addedInput schema / properties / paymentCount
      Added value: +{
      +  "description": "Number of payments starting at paymentAnchorDate (e.g. 12 for 12x / parcelas, 360 for a 30-year mortgage); the server sets paymentEndDate. Not with paymentEndDate.",
      +  "maximum": 600,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • removedInput schema / properties / paymentDay
      Removed value: -{
      -  "type": "number"
      -}
    • addedInput schema / properties / paymentEndDate
      Added value: +{
      +  "description": "Last payment in yyyy-MM-dd (inclusive, up to 50 years ahead); after it the expense stops counting. Needs paymentAnchorDate. Empty string clears. Prefer paymentCount for instalments.",
      +  "type": "string"
      +}
    • addedInput schema / properties / savingStartDate
      Added value: +{
      +  "description": "One-time only (frequency once): the day saving starts, yyyy-MM-dd, on or before paymentAnchorDate. Defaults to today; set it when the user already started saving earlier.",
      +  "type": "string"
      +}
  2. Changed1 schema field changed
    • addedInput schema / properties / iconColor
      Added value: +{
      +  "enum": [
      +    "blue",
      +    "indigo",
      +    "purple",
      +    "pink",
      +    "red",
      +    "orange",
      +    "yellow",
      +    "green",
      +    "teal",
      +    "default"
      +  ],
      +  "type": "string"
      +}
  3. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already flag destructiveHint=true and readOnlyHint=false, and the description adds genuine value by revealing the clearing semantics (empty string clears matchingGroup, "default" resets iconColor). It does not disclose the broader partial-update contract — e.g. whether other optional fields can also be cleared or what happens to fields not supplied — which matters most for a destructive 15-field mutation.

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 tight sentences with no filler, and the core action is front-loaded before the parameter notes. The iconColor clause is dense enough to be slightly harder to scan but still earns its place.

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 a destructive, 15-parameter mutation with no output schema and 40% schema coverage, the description says nothing about partial-update behavior, required permissions, or what is returned. The two covered parameters are the trickiest, but the overall contract an agent needs to call this safely is missing.

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 only 40%, so the description carries weight, and it correctly explains the two most non-obvious parameters: matchingGroup's empty-string clearing and iconColor's independence from the box plus the "default" reset. It leaves the other undocumented params (name, amount, currency, boxId, budgetId, expenseId, description) to the schema, though those are largely self-explanatory.

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?

"Update a planned expense" gives a clear verb plus a specific resource and distinguishes it from transaction/box/budget updates by naming the resource type. It does not name any sibling alternative explicitly, so it stops short of full differentiation.

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?

Usage is implied by the verb and the required budgetId/boxId/expenseId triple, but there is no statement of when to prefer this over move_expense, duplicate_expense, or update_transaction, and no note on permissions or on whether omitted fields are left untouched.

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