Skip to main content
Glama

Map Brex trip

map_brex_trip
Idempotent

Map one Brex trip id onto a Trip so its bookings line up with the Trip. Several traveller-specific Brex trips can map to one Trip, but each Brex trip maps to one Trip only. Adds a mapping and changes nothing else; remove one with unmap_brex_trip. Pass trip_id when the project has more than one Trip. Requires project-manager access. Runs on the first call; there is no confirmation step.

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>",
      "external_id": "<external_id>"
    },
    "name": "map_brex_trip"
  }
}

Input Schema

NameRequiredDescriptionDefault
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
external_idYesthe Brex trip id
organization_idNoorganization to act in, an id from get_me; omit to use your active organization
traveller_labelNoname of the traveller the Brex trip is for

Output Schema

NameRequiredDescriptionDefault
okYestrue on success (including confirmation_required prompts)
dataNothe 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
Behavior4/5

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

Goes well beyond the annotations by disclosing the side-effect boundary ('Adds a mapping and changes nothing else'), immediate execution with no confirmation step, the access requirement, and the cardinality rule that many Brex trips can map to one Trip but not vice versa. The one uncovered case is what happens when the Brex trip is already mapped to a different Trip — re-map, error, or no-op is not stated, which matters despite idempotentHint=true.

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 purpose and effect, then constraints and the undo path. No filler, no restatement of the title, and each sentence carries distinct information.

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?

An output schema exists so return values need not be explained, and the description still covers side effects, cardinality, permissions, and the execution model. For a 5-parameter mapping tool this is sufficient for an agent to call it correctly.

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 including trip_id, project_id, external_id, organization_id and traveller_label is already documented. The description only restates the trip_id conditionality that the schema already carries and says nothing about traveller_label or organization_id, so it adds little meaning beyond the schema; 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 ('Map one Brex trip id onto a Trip') plus the effect ('so its bookings line up with the Trip'), which no sibling name alone would convey. The inverse operation is named explicitly, so an agent can distinguish map_brex_trip from unmap_brex_trip 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 Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives the conditional parameter guidance ('Pass trip_id when the project has more than one Trip'), names the removal alternative (unmap_brex_trip), and states the prerequisite ('Requires project-manager access'). The when-to-use, when-to-undo, and eligibility conditions are all present.

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.