Skip to main content
Glama

Unmap Brex trip

unmap_brex_trip
DestructiveIdempotent

Remove one Brex trip mapping from a Trip. source_id is external_sources[].id from list_project_travel kind=trip. The Brex trip itself is untouched; map it again with map_brex_trip. Pass trip_id when the project has more than one Trip. Requires 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>",
      "source_id": "<source_id>"
    },
    "name": "unmap_brex_trip"
  }
}

Input Schema

NameRequiredDescriptionDefault
trip_idNoTrip id from list_project_travel kind=trips; needed when the project has more than one Trip
source_idYesexternal_sources[].id from list_project_travel kind=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
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.5/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, but the description adds meaningful context they cannot express: the Brex trip itself is untouched (destruction is scoped to the mapping), project-manager access is required, and a confirmation prompt precedes execution. The confirmation_token field alone would be cryptic without this.

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?

Five short sentences, front-loaded with the action, then scope, then the recovery path, then prerequisites, then the confirmation behavior. Every sentence carries distinct operational information with no filler.

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, confirmation-gated mutation, the description covers scope of effect, authorization, sibling recovery route, and the confirmation flow, while an output schema handles return values. Nothing an agent needs before calling is missing.

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%, so every parameter is already documented in the schema — including source_id provenance and the trip_id multi-trip condition, which the description largely restates. The description adds no new syntax, format, or edge-case meaning beyond the structured fields, so baseline 3 applies.

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?

States a specific verb and resource: 'Remove one Brex trip mapping from a Trip.' It also names the inverse sibling (map_brex_trip), so an agent can tell exactly which direction of the operation this is without opening either 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?

Gives concrete invocation conditions: pass trip_id when the project has more than one Trip, and re-map with map_brex_trip if the removal was a mistake. It does not spell out a true 'when not to use this' case or when to prefer other travel tools, so it falls just short of the 5 bar.

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.