Skip to main content
Glama

Edit trip expense

trip_expense_update
DestructiveIdempotent

Change an existing trip expense: amount, description, date, category, who paid, or how it is split (for example, make an expense 100% one person's). Get the expense ID and traveler IDs from trip_expenses_list. Send only the fields that change; a split replaces the whole split. Changing the amount of an equal or percentage split keeps the same people and proportions. Only the trip owner or an editor can edit expenses.

Input Schema

NameRequiredDescriptionDefault
dateNoExpense date, YYYY-MM-DD.
notesNo
splitNoWho the cost belongs to. type payer = all of it is the payer's cost (no split). equal = divided evenly among participants (omit participants for everyone on the trip). percentage = each participant's percentage, summing to 100. exact = each participant's amount, summing to the expense amount. To make an expense 100% one person's: if they paid, use type payer with paid_by set to them; if someone else paid, use percentage with only that person at 100.
amountNoTotal amount, greater than 0.
vendorNoMerchant or vendor.
paid_byNoTraveler ID from trip_expenses_list travelers, or "me".
categoryNo
currencyNo3-letter currency code.
expense_idYesExpense ID from trip_expenses_list.
descriptionNoWhat the expense was for, e.g. Travel insurance.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare this a mutating, destructive, idempotent operation; the description adds value beyond that by disclosing that a supplied split replaces the entire previous split, that changing an equal/percentage amount preserves people and proportions, and that owner/editor authorization is required. It stops short of describing the response or failure behavior for a tool with no output schema.

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?

Four tightly packed sentences with the action and mutable fields front-loaded; no filler. It is dense but every clause carries operational meaning (ID sourcing, partial update, split replacement, permissions).

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 10-parameter mutation with no output schema, the description covers the essentials an agent needs: where IDs come from, that only changed fields should be sent, split replacement semantics, and authorization. It omits error/validation behavior (e.g., split sums must match amount) and any statement about what the update returns, which are minor given the schema's enum and split constraints.

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 high (80%) and the nested split object is already well documented in the schema, so the baseline is 3. The description still earns credit for semantics not in the schema: 'a split replaces the whole split', the proportion-preserving rule when the amount changes, and a concrete 100%-one-person example.

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?

Opens with a specific verb+resource ('Change an existing trip expense') and enumerates the mutable fields (amount, description, date, category, payer, split). This cleanly separates it from sibling trip_expense_create and trip_expenses_list, which the description also names as the ID source.

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?

Gives concrete prerequisites (expense ID and traveler IDs come from trip_expenses_list), a permission constraint (only owner or editor), and the partial-update rule ('send only the fields that change'). It does not state when to prefer this over a delete-and-recreate or how it relates to trip_expense_create, but the operational context is clear.

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