Skip to main content
Glama

Start Durable Agent Handoff

bridge_handoff_start

Creates and stores a task handoff for remote gateway, browser chat, Codex, or ACP targets, then observes completion and returns a directive separating reported claims from observed Git/PR facts.

Instructions

Stores the handoff before sending to an OpenClaw Gateway, browser chat, A2A endpoint, Codex app-server, or ACP agent. envelope.publisherOwner defaults to remote_gated (or configured defaultPublisherOwner) unless overridden. Gateway/Codex/ACP targets support optional isolated worktreeName. Observes up to waitBudgetMs and returns orchestratorDirective separating reported claims from observed Git/PR facts.

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": {
      "targetId": "<targetId>",
      "envelope": "<envelope>"
    },
    "name": "bridge_handoff_start"
  }
}

Input Schema

NameRequiredDescriptionDefault
envelopeYes
targetIdYes
waitBudgetMsNoMilliseconds to wait for turn completion before returning POLL_ATTACH (0-120000).
worktreeNameNo
maxAutonomousTurnsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It usefully discloses that the handoff is persisted before transmission, that publisherOwner has a configurable default, that worktree isolation is target-dependent, and that the response separates 'reported' claims from 'observed' Git/PR facts — meaningful beyond schema. It omits idempotency, auth/permission requirements, failure behavior when the target is unreachable, and what POLL_ATTACH means beyond the schema note.

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?

Four dense sentences, front-loaded with the core action, then defaults, then optional target-specific behavior, then return semantics. Little waste, though the target list is a slightly long enumeration for the value it adds.

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

Completeness3/5

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

For a five-parameter tool with a deeply nested envelope and no output schema, the description is only partially complete: it explains the orchestratorDirective return at a high level but leaves the envelope contract, turn-budget behavior, and lifecycle relationship to abort/attach/reconcile unaddressed. Adequate to attempt a call, not sufficient to call it confidently in a multi-step handoff flow.

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 only 20%, so the description must compensate; it adds real meaning for publisherOwner (default and when to use none/local), waitBudgetMs (observation window), and worktreeName (target-restricted isolation). It says nothing about maxAutonomousTurns or the envelope's mode/gitContext semantics, leaving several of the five parameters and most nested fields unexplained.

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 concrete verb and resource ("Stores the handoff before sending") and enumerates the downstream targets (OpenClaw Gateway, browser chat, A2A endpoint, Codex app-server, ACP agent), so the agent knows exactly what this creates. It does not explicitly name how it differs from siblings like bridge_handoff_continue or bridge_preflight, though the 'start' semantics are evident.

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?

Usage is only implied: by naming it 'start' and noting that allowManagedPublishStage must be false on initial creation (unlocking later via bridge_handoff_continue), it hints at the workflow order, but it never states when to choose this over bridge_preflight, bridge_handoff_attach, or bridge_verify_git. There are no explicit exclusions or prerequisites.

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