Skip to main content
Glama

Close an Uncertain Handoff Turn

bridge_handoff_reconcile

Closes a stuck uncertain handoff turn as failed so the same handoff and remote session can continue. Requires an operator reason; unlike abort, the handoff stays open.

Instructions

Closes the latest turn of a handoff stuck in uncertain as failed, so the same handoff and remote session can continue. Attaches first; refuses publish turns, handoffs with a publication record, and update-PR handoffs whose pull request moved. Requires the operator's reason (what was checked on the target). Unlike abort, the handoff stays open.

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>",
      "reason": "<reason>"
    },
    "name": "bridge_handoff_reconcile"
  }
}

Input Schema

NameRequiredDescriptionDefault
reasonYes
handoffIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.6/5.0
Behavior4/5

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

With no annotations, the description carries the load and does well: it discloses the implicit attach-first step, the guard conditions that cause refusal, the required operator justification, and the post-state (turn failed, handoff still open, remote session usable). It stops short of stating idempotency or what happens when no uncertain turn exists, both relevant for a state-mutating repair tool.

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?

Four short sentences, each load-bearing: outcome, guardrails, input requirement, sibling contrast, in that priority order. No restatement of the title and no filler.

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 zero-annotation mutation tool with two params and no output schema, the definition covers precondition, refusals, and resulting state well. Missing are the response/return shape and behavior on a handoff that is not currently `uncertain`, which an agent would want before calling.

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?

Schema coverage is 0%, so the description must compensate. It does for `reason` ('what was checked on the target', operator-authored) and clarifies that `handoffId` selects the handoff while the tool implicitly targets its latest turn rather than a caller-specified turn. It omits the schema's length bounds and error behavior for malformed IDs, leaving a small gap.

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 object ('closes the latest turn of a handoff stuck in `uncertain` as failed') plus the scope of that closure (latest turn only, handoff remains open). It explicitly distinguishes itself from the sibling `bridge_handoff_abort`, so an agent can choose between them 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 triggering condition (handoff stuck in `uncertain`), three explicit refusals (publish turns, handoffs with a publication record, update-PR handoffs whose PR moved), and a named alternative contrast ('Unlike abort, the handoff stays open'). When-to-use, when-not-to-use, and the alternative are all stated.

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