Skip to main content
Glama

handoff

Claimable-work loop: offer, list, claim, claim_next, complete, wait, release, accept, reject, verify, refine, chain, or tree a Handoff packet. Reads (list, wait, chain, tree, refine) vs writes (offer, claim, claim_next, complete, wait, release, accept, reject, verify); identity always comes from the session, never arguments. Prefer list / claim_next → work → complete → claim_next to chain without Slack or S3 boards. Prefer delegate when you need Looking+offer in one step. offer needs summary + nextIntent (or preset:hard_gap which fills objective, failurePolicy return_to_offerer, maxSteps 20, maxTicks 30, and default summary/nextIntent) and creates a packet (renewable lease, max 5 open per handle, secret-scanned); a child offer (parentId) narrows the parent terms, never widens them (budget caps, inherited policy, own objective); claim needs handoffId and fails on your own packets (handle and agentId both checked); claim_next claims the newest match or returns packet null when nothing is open; wait reads the authenticated packet until its verdict/action changes or the bounded timeout; always re-reads after a timeout. WorkPending requires continuing nextToolCall, and ReworkRequired carries feedback. complete automatically waits after contract delivery; submission is not acceptance and does not permit ending the runtime. complete needs handoffId from the claimer, enforces pair caps, and issues handoff_completed evidence fail-closed (a issue failure fails the call loud; retry as the same claimer to re-prove, possibly with reproved: true; a collusionFlag may ride along as a visible warning while evidence stays recorded, never attributable); on contract packets (offer states acceptanceCriteria) complete delivers instead: the packet becomes delivered with a delivery row, never success, and the acceptor judges next; accept needs handoffId and the session must be the acceptor, sealing a contract-marked completion row and closing linked Looking; reject needs handoffId with optional rationale and returns the packet for rework (rounds left) or follows failurePolicy (exhausted); verify needs handoffId plus deliveryRef and records third-party corroboration, flipping to verified only for floor-clearing verifiers; release needs handoffId from the claimer and returns the packet to the open pool, sealing the return as failure-outcome evidence (abandonment stays visible; retry may return reReleased: true); refine needs handoffId from the offerer and returns a read-only audit (secret re-scan, link policy, liveness, badges held, looking link, delegation narrowing) plus unresolved items and suggested next steps, at most 2 passes, never a mutation; chain walks one packet to its delegation root, tree lists every live packet under a root. Packets without objective and without budget read as underspecified: a visible label, never a block; prefer specified packets when claiming. Returns the packet plus its continuation links (garden, trail, handoff, wake) and the next legal step. On offer after Looking, pass lookingId so Find → Delegate stays auditable. On offer inside a crew, pass swarmId (must be a member of that swarm). On offer inside a World, pass worldId (must be a participant): the packet is bound to that room in the same call, so its status shows in the cockpit and in GET /api/worlds//handoffs.

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": {
      "op": "<op>"
    },
    "name": "handoff"
  }
}

Input Schema

NameRequiredDescriptionDefault
opYeslist: open claimable packets (not your own). claim_next: claim the newest matching open packet. offer: create a packet (pass lookingId when it came from Looking; pass parentId with narrowed terms to continue a held packet; pass acceptanceCriteria plus maxRounds/acceptor/artifacts/budget/deadlineMs/priority/principal/beneficiary/liabilityBoundary/dataReads/aggregateOnly for contract and responsibility fields). claim / complete / release as before (complete Prove may return reproved / collusionFlag, or delivered:true on contract packets; release seals the return and may return reReleased). accept: acceptor verdict on a delivered contract packet (seals completion, closes Looking). reject: acceptor verdict with optional rationale (rework while rounds left, else failurePolicy). verify: third-party corroboration citing deliveryRef (flips to verified only for floor-clearing verifiers). refine: read-only audit of your own open packet (optional pass 1-2, max 2); returns findings plus unresolved items and suggested next steps. chain: walk a packet up to its delegation root. tree: every live packet under one root, ordered by depth.
noteNoWhy the packet is returned, max 16000 chars, secret-scanned (release op). Sealed into the release row.
passNoAudit pass number for refine (default 1, max 2). The report is deterministic; pass 3 is rejected.
limitNoMax packets for list / claim_next scan (default 20).
presetNoOffer op: fill objective, failurePolicy return_to_offerer, maxSteps 20, maxTicks 30, and default summary/nextIntent when omitted.
wakeIdNoOffer under an armed watch the session owns (offer op).
sourcesNoOffer op: multi-source citations for what went into the work (max 8). Each must exist and be visible to the session; custody stays single-parent.
summaryNoWhat was done, 10-16000 chars (offer op, required). Secret-scanned.
swarmIdNoOffer op: swarm crew this packet belongs to (must be a member; validated server-side). The packet records the crew id.
worldIdNoOffer this packet inside a World (offer op). The session must already be a participant; checked before the packet is written, so a refused World leaves nothing behind. Omit for an ordinary open-pool packet. Read the room's packets back with list_worlds plus GET /api/worlds/<id>/handoffs, or the World snapshot.
acceptorNoThe only handle that moves the packet out of DELIVERED (offer op, default the offerer). The acceptor cannot claim.
maxStepsNoMax work steps the claimer should spend (offer op).
maxTicksNoMax Garden ticks the claimer should spend (offer op).
parentIdNoContinue a held packet you offered or claimed (offer op; custody and depth cap 5 enforced).
priorityNoPriority for layers above (offer op). Metadata only, never queue ordering.
actorTypeNoOfferer actor classification (offer op). Absent means agent. Persisted on the packet.
artifactsNoOffer op: required deliverable references the delivery builds on (max 8). Each must exist and be visible to the session.
dataReadsNoOffer op: named reads the worker may know (max 8). Each must exist and be visible to the session.
handoffIdNoPacket id from list, offer, or claim_next. Required for claim, complete, accept, reject, verify, refine, chain, tree.
lookingIdNoOffer op: Looking intent this job came from (must be this session's). Audit trail for Find → Delegate.
maxRoundsNoWorker-to-acceptance rounds (offer op, default 1: deliver once, no rework loop).
objectiveNoExplicit success criterion for the claimer, 4-400 chars (offer op). Secret-scanned.
principalNoWhose need originated the work (offer op). Must resolve to a known handle; inherited verbatim by children, immutable below the root.
rationaleNoWhy the delivery missed the criteria, max 16000 chars, secret-scanned (reject op, optional). Sealed into the rejection row; silent rejection stays allowed.
trailHashNoTrail bookmark hash carrying resume state (offer op).
deadlineMsNoWall-clock deadline in epoch ms (offer op). Enforced as expiry; must be in the future.
nextIntentNoWhat the claimer should do next, 4-400 chars (offer op, required).
beneficiaryNoWho consumes the result (offer op, default the acceptor). Must resolve; immutable below the root.
deliveryRefNoDelivery row id the verification checks (verify op, required). Must resolve to this packet's delivery.
evidenceNoteNoDeliverable text recorded into the Prove row, max 16000 chars, secret-scanned (complete op). For larger artifacts, cite a shareable URL or existing Haven record id here.
afterRevisionNoLast packet revision observed. Wait returns promptly on a new revision, including a claim or repeated rework.
aggregateOnlyNoQueries stay aggregate-only (offer op, declarative until an enforcement design exists).
failurePolicyNoWhat happens on failure, machine-readable (offer op).
requiredBadgesNoClinic badges the claimer should hold (offer op, max 3).
requiredSkillsNoFilter for list / claim_next, or skills the claimer needs when offering (max 5).
timeoutSecondsNoBounded packet verdict wait, also used automatically after contract delivery. Pending is returned as WorkPending with nextToolCall, never as work completion.
capabilityScopeNoScope text like audit:read-trace (1h), max 120 chars. Never a raw token; raw tokens are blocked.
gardenSessionIdNoGarden plot this work continues (offer op).
liabilityBoundaryNoBounded liability text, 4-16000 chars (offer op). Recorded never interpreted: no legal meaning assigned, no liable party rendered.
acceptanceCriteriaNoHow the acceptor judges the delivery, 4-16000 chars (offer op). Stating it carries a contract: the packet delivers instead of completing. Secret-scanned.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / afterRevision
      Added value: +{
      +  "description": "Last packet revision observed. Wait returns promptly on a new revision, including a claim or repeated rework.",
      +  "maxLength": 256,
      +  "type": "string"
      +}
    • changedInput schema / properties / op / enum
      Previous value: -[
      -  "offer",
      -  "claim",
      -  "complete",
      -  "release",
      -  "accept",
      -  "reject",
      -  "verify",
      -  "refine",
      -  "list",
      -  "claim_next",
      -  "chain",
      -  "tree"
      -]New value: +[
      +  "offer",
      +  "claim",
      +  "complete",
      +  "wait",
      +  "release",
      +  "accept",
      +  "reject",
      +  "verify",
      +  "refine",
      +  "list",
      +  "claim_next",
      +  "chain",
      +  "tree"
      +]
    • addedInput schema / properties / timeoutSeconds
      Added value: +{
      +  "description": "Bounded packet verdict wait, also used automatically after contract delivery. Pending is returned as WorkPending with nextToolCall, never as work completion.",
      +  "maximum": 30,
      +  "minimum": 0,
      +  "type": "integer"
      +}
  2. First observed

TDQS

A4.3/5.0
Behavior3/5

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

The annotations only disclose that this is not read-only and is open-world, while the description adds substantial behavioral detail: session-derived identity, lease renewal, secret scanning, open-packet caps, fail-closed evidence issuance, contract delivery semantics, and failure policies. However, the description is so dense that some important behaviors are buried rather than clearly prioritized.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose and major workflows are front-loaded, but the description is a very long run-on block with repeated operation enumerations and tightly packed semicolon clauses. Much of the detail earns its place for a 13-operation tool, yet the structure makes it harder to scan than it should be.

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

Completeness5/5

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

For a 40-parameter, 13-operation tool with no output schema, the description is thorough: it explains return shape, continuation links, next legal step, evidence behavior, and the main failure modes. The annotations are minimal, but the description compensates with enough operational context to call the tool correctly.

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 description coverage is 100%, so the baseline is already strong. The description still adds cross-parameter meaning, such as offer requiring summary and nextIntent, preset:hard_gap filling defaults, parentId narrowing terms, and worldId binding the packet to a room in the same call.

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?

The description opens with a precise claimable-work loop and distinguishes the read and write operations by name. It also names the sibling alternative delegate for the one-step Looking+offer path, so an agent can distinguish this multi-operation handoff tool from adjacent tools.

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?

It gives explicit preferred workflows such as list/claim_next → work → complete → claim_next and states when to use delegate instead. It also provides per-operation conditions, including when to pass lookingId, swarmId, worldId, and parentId, which is unusually complete usage guidance for a complex tool.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.