Skip to main content
Glama

record_handoff

Capture what you did, the decisions you propose, the next step, and the exact file versions you relied on so another agent can resume work. Cite at least one file version.

Instructions

Record a handoff before you stop: what you did, decisions you propose, the next step and the exact file versions you relied on. If the space reviews by exception and every cited file is still at the version you cite, it becomes the current handoff at once (auto-accepted, the owner can undo it); otherwise it waits for the owner. Cite at least one file version. Requires a files:write key.

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": {
      "summary": "<summary>",
      "next_step": "<next_step>"
    },
    "name": "record_handoff"
  }
}

Input Schema

NameRequiredDescriptionDefault
sourcesNoExact file versions this handoff relies on (from read_file or create/update results).
summaryYesWhat you did and why, in a few sentences.
decisionsNoDecisions you propose (each a short sentence). They become accepted only after the owner approves.
next_stepYesThe concrete next step for whoever continues.
request_idNoOptional UUID to make retries idempotent; generated when omitted.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.1-alpha.2

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations provided the description carries the full burden, and it does: it discloses the auto-acceptance predicate (exception-based review plus all cited files unchanged), that the owner can undo it, the fallback pending state, the files:write key requirement, and idempotency via request_id. These are exactly the consequences an agent needs before a mutating call.

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?

Two sentences, front-loaded with the action and payload, followed by the acceptance semantics and the hard requirements. The parenthetical about auto-acceptance and owner undo is dense but every clause carries operational meaning.

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 mutating tool with no annotations and no output schema, the description covers trigger, payload, permission, idempotency, and post-call state. The only gap is what the call returns (e.g. the handoff id or its resulting status), which an agent might want to confirm acceptance.

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 100%, so the baseline is 3, but the description adds a real constraint the schema lacks: "Cite at least one file version," where the schema permits an empty sources array. It also ties sources to "exact file versions you relied on," reinforcing the version_id semantics.

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?

"Record a handoff before you stop" names a specific verb and resource, then enumerates the payload (what you did, decisions, next step, cited file versions). That content profile clearly separates it from the sibling read/decide tools such as get_latest_handoff and decide_handoff without needing to open any schema.

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?

"before you stop" gives an explicit trigger condition, and the auto-accept versus pending branch tells the agent what outcome to expect from calling it. It does not name the sibling alternatives (e.g. who decides a pending handoff, or who reads it back), so it stops short of full routing guidance.

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