Skip to main content
Glama

Abort Remote Handoff Run

bridge_handoff_abort

Cancels an active Gateway run, A2A task, Codex turn, or ACP prompt by ID, or closes an unsent turn; use localOnly=true to stop local tracking without ending a submitted remote session.

Instructions

Cancels a Gateway run, A2A task, Codex turn, or ACP prompt by its active ID, or closes an unsent turn. For submitted browser turns (or local abandonment), localOnly=true closes local tracking without stopping the remote session.

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": {
      "handoffId": "<handoffId>"
    },
    "name": "bridge_handoff_abort"
  }
}

Input Schema

NameRequiredDescriptionDefault
reasonNo
handoffIdYes
localOnlyNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.5/5.0
Behavior3/5

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

No annotations exist, so the description bears the full load. It does disclose the most important behavioral distinction: localOnly closes local tracking without stopping the remote session, which is exactly the kind of side-effect an agent must know. It omits reversibility, what happens to the aborted work, permission/auth requirements, and behavior when the ID is stale or inactive.

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?

Two sentences, front-loaded with the primary action and then the exception case. Dense but every clause carries meaning; the four-resource enumeration is slightly heavy but reflects a genuinely multi-target tool.

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 three-parameter mutation tool with no annotations and no output schema, the description covers the core action and the one non-obvious flag. Gaps remain around the undocumented reason parameter, expected return value on success, and failure modes for non-active IDs.

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 0%, so the description must compensate for all three parameters. It explains handoffId ('by its active ID') and gives a precise rule for localOnly, but the reason parameter is never mentioned, leaving a full third of the surface undocumented.

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?

The description names a concrete verb ('Cancels') and enumerates the exact resource types it acts on (Gateway run, A2A task, Codex turn, ACP prompt, unsent turn). It is clearly a termination tool and no sibling (attach/continue/reconcile/start) overlaps, though the multi-resource enumeration leaves the agent to map its own target onto one of the four labels.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

It gives a real conditional for the localOnly variant ('submitted browser turns (or local abandonment)'), which is useful when-call guidance. It offers no guidance on when abort is preferred over siblings like bridge_handoff_reconcile or bridge_handoff_continue, and no prerequisites such as needing a still-active ID.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.