Skip to main content
Glama

Logistics: Assign trip

logistics_assign_trip
Destructive

Assign or re-assign a trip's crew: driver, tractor, trailer and carrier. Pass only what changes; pass null to clear one. 'driver_id' is a driver PROFILE id — the server resolves that driver's cabinet login itself, so the right person sees the trip in their app. Requires confirmation. CONFIRMATION: this tool is PROPOSED, never performed directly. You get status='confirmation_required' with an action_id and a plan_token, and the write happens only after confirm_action.

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": {
      "trip_id": "<trip_id>"
    },
    "name": "logistics_assign_trip"
  }
}

Input Schema

NameRequiredDescriptionDefault
trip_idYes
driver_idNo
carrier_idNo
trailer_idNo
vehicle_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Well beyond the annotations: it discloses that the call is only PROPOSED, that the response carries status='confirmation_required' plus action_id and plan_token, and that the actual write only occurs through confirm_action. It also explains the server-side driver_id resolution to a cabinet login, which the agent could not know from the schema or the destructiveHint flag alone.

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?

The critical constraint about pass-only-what-changes comes early and the confirmation mechanics are front-loaded rather than buried. There is minor redundancy: 'Requires confirmation' is immediately restated by the longer CONFIRMATION block, costing a few words without adding information.

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 destructive, non-open-world mutation with no output schema, the definition covers the two things an agent must not get wrong: the proposal/confirm protocol and the null-to-clear convention. It leaves open what happens to a trip already in dispatch when crew is cleared, and what errors arise from an invalid or inactive driver_id.

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?

With 0% schema description coverage the description must carry the load, and it does for the hardest parameter: driver_id is explicitly a driver PROFILE id, not a user/login id, with the resolution behavior explained. It also establishes null-as-clear semantics, though carrier_id, trailer_id and vehicle_id remain untyped foreign keys, and the description says 'tractor' while the schema says vehicle_id — a naming mismatch that could cause a wrong-field population.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Assign or re-assign a trip's crew') and enumerates the assignable slots (driver, tractor, trailer, carrier), so an agent knows precisely which fields this mutates. It stops short of distinguishing itself from the closest siblings (logistics_update_trip, logistics_set_trip_status), leaving the agent to infer the boundary from the name alone.

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?

'Pass only what changes; pass null to clear one' gives concrete call-shape guidance that governs how to invoke it in partial-update scenarios, and the confirmation protocol tells the agent a two-step flow is mandatory. It does not state when to prefer this over logistics_update_trip or when a trip is ineligible for crew changes.

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