Skip to main content
Glama

Set trip buyouts

set_trip_buyouts
DestructiveIdempotent

Replace the client buyout prices on a Trip: one price per travel category (FLIGHTS, LODGING, GROUND), all in one currency. The list you pass is the whole set; a category left out is removed and is not charged. billing_event_id can move the primary gig (the one carrying the Buyout invoice) to another gig on the Trip. Creates no expense or charge; draft the Buyout invoice in the Soundcheck web app. Pass trip_id when the project has more than one Trip. Needs financial and project-manager access. Asks for confirmation first.

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": {
      "project_id": "<project_id>",
      "buyouts": "<buyouts>"
    },
    "name": "set_trip_buyouts"
  }
}

Input Schema

NameRequiredDescriptionDefault
buyoutsYesthe full list of buyout prices; a category left out is removed
trip_idNoTrip id from list_project_travel kind=trips; needed when the project has more than one Trip
project_idYesproject id from list_projects, or a gig's project_id from get_event
organization_idNoorganization to act in, an id from get_me; omit to use your active organization
billing_event_idNomove the primary gig to another Trip gig; null clears
confirmation_tokenNoleave empty on the first call; the server returns confirmation_required + a token, then resend the SAME args with that token to proceed

Output Schema

NameRequiredDescriptionDefault
okYestrue on success (including confirmation_required prompts)
dataNowhen the tool asks first: { status: "confirmation_required", confirmation_token, summary, expires_in_seconds, instructions } and nothing is changed; once confirmed, the API response { status (HTTP status), data: { project_id, trip_id, trip_name, trip_revision, project_name, currency, billing_event_id, gigs [{ event_id, title, event_date, end_date, is_billing }], travellers [{ user_id, user_name }], external_sources [{ id, source, external_id, external_status, traveller_label, cancelled_at }], buyouts [{ id, category, amount, currency, notes }] } }
errorNowhen ok is false

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and idempotentHint=true, yet the description still adds real substance: the passed list is the whole set, an omitted category is removed and not charged, and billing_event_id reassigns the gig carrying the Buyout invoice. It also discloses the permission requirement and the confirmation step, so the agent understands the blast radius before calling.

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?

It is front-loaded with the core action and replace semantics, then layers the operational details (billing_event_id, no invoice creation, trip_id, permissions, confirmation) in tight declarative sentences. No sentence is filler and none repeats the name or title.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive, multi-parameter write tool this covers everything an agent needs to call it correctly: replacement behavior, currency constraint, gig reassignment, prerequisite access, the confirmation handshake (reinforced in the schema's confirmation_token), and an explicit note that no charge is produced. An output schema exists, so return values do not need to be explained.

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 100%, so the baseline is a 3, but the prose adds conceptual meaning the schema only implies — the replacement (not merge) semantics of the buyouts array and the single-currency constraint across all lines. The billing_event_id explanation largely restates what the schema already documents, which keeps it from a 5.

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 opening sentence states a specific verb and resource — 'Replace the client buyout prices on a Trip' — and immediately scopes it to one price per travel category (FLIGHTS, LODGING, GROUND) in a single currency. That is enough to distinguish it from siblings like set_trip_guest_nights or create_trip without opening any schema.

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 gives concrete usage conditions: pass trip_id when the project has more than one Trip, financial and project-manager access is required, and confirmation is requested first. It also rules out a plausible wrong expectation ('Creates no expense or charge; draft the Buyout invoice in the Soundcheck web app'). What it does not do is name an alternative tool for the adjacent workflow, so it stops short of the top score.

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.