Skip to main content
Glama

Attach & Reconcile Handoff

bridge_handoff_attach

Reconnect to an existing handoff by ID after a wait timeout, network interruption, or process restart, resuming lifecycle tracking without creating a duplicate run or pull request.

Instructions

Reconnects to an existing handoffId after waitBudgetMs expiry, network interruption, or process restart without spawning a duplicate run or duplicate PR.

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_attach"
  }
}

Input Schema

NameRequiredDescriptionDefault
handoffIdYes
waitBudgetMsNoMilliseconds to wait for turn completion before returning POLL_ATTACH (0-120000).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.6/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 load; it does disclose the key idempotency behavior (no duplicate run/PR) which is valuable. However it omits whether the call blocks, what state is returned on success versus POLL_ATTACH, and any permission or concurrency constraints, leaving meaningful gaps for a mutation-adjacent tool.

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?

A single front-loaded sentence with the conditions and the guarantee packed in and no filler. It is dense but readable; a slightly clearer separation of trigger conditions from the no-duplicate guarantee would improve scannability.

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 2-parameter tool with no annotations and no output schema, the description covers purpose and idempotency but says nothing about return values or the blocking/polling outcome beyond what the schema's POLL_ATTACH note implies. An agent still cannot predict what it gets back or how to proceed after a POLL_ATTACH.

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 coverage is 50%: waitBudgetMs is fully documented in the schema, and the description reinforces it by naming expiry as a trigger. handoffId is only described as an 'existing' id — no format, origin, or how to obtain it — so the undocumented parameter is not fully compensated for.

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?

Names a specific verb (reconnects/attaches) and resource (existing handoffId), and states the guarantee that distinguishes it from a fresh start: no duplicate run or PR. It is clear enough to separate from bridge_handoff_start, though it does not explicitly contrast with bridge_handoff_reconcile or bridge_handoff_continue.

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 triggering conditions — waitBudgetMs expiry, network interruption, process restart — which is exactly the when-to-use context an agent needs. It stops short of saying when NOT to use it (e.g. first-time attachment) or naming the sibling to pick instead.

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