Skip to main content
Glama
splitwise-mcp

splitwise-mcp

by prakhar083

Update expense

update_expense
DestructiveIdempotent

Edit an existing expense by changing only the fields you pass, such as cost, date, notes, split, or payer. Read the expense first to confirm changes with the user.

Instructions

Edits an existing expense. Only the fields you pass change. Changing the cost alone rescales everyone's shares proportionally; pass split to redistribute, or paid_by to change who paid. Read the expense with get_expense first so you can confirm the change with the user.

Input Schema

NameRequiredDescriptionDefault
costNoNew total cost.
dateNoA date as YYYY-MM-DD, or an ISO 8601 timestamp.
notesNoReplaces the expense notes.
splitNoHow to divide the cost. "equal": among participants; leftover cents go to the first participants listed. "exact": explicit amounts per person. "percentage": percent per person; rounding goes to the largest remainders. Omit to keep the current proportions.
paid_byNoWho paid the whole cost.
expense_idYesThe Splitwise expense id.
descriptionNo
currency_codeNo3-letter ISO 4217 currency code, e.g. USD, EUR, INR, JPY.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

The annotations already declare this as a destructive, idempotent, open-world mutation. The description adds non-obvious behavioral context: partial updates, proportional share rescaling when cost changes alone, redistribution via split, payer changes via paid_by, and the recommended read-before-update flow.

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?

Four short sentences are front-loaded with the core behavior and parameter consequences. Every sentence provides useful guidance without unnecessary repetition.

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 an eight-parameter mutation tool with no output schema, the description covers the key side effects, prerequisite read, and update semantics. It leaves return-value details and some less risky fields to the schema, which is adequate but not exhaustive.

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 description coverage is high at 88%, so the schema carries most parameter detail. The description still adds meaningful cross-parameter semantics not captured in individual schema fields, especially that changing cost alone rescales shares and that split or paid_by must be used to redistribute or change the payer.

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 states a specific verb and resource: 'Edits an existing expense.' The word 'existing' distinguishes it from create_expense and delete_expense, and 'Only the fields you pass change' clarifies the update scope.

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?

It explicitly tells the agent to 'Read the expense with get_expense first so you can confirm the change with the user,' which is a clear prerequisite. It also explains when to pass split versus paid_by, though it does not state explicit exclusions or when not to use this tool.

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