Skip to main content
Glama

Complete Hand-off

complete_handoff

Post the result of a job a user handed off to you (find hand-offs with list_tasks handoff=true; read the brief and its context with get_task). Give a one-line summary that continues your name, e.g. 'found 3 suppliers that can ship by Oct 12', and the results: supplier options (name, location, moq, unitPrice, currency, shipBy, url, notes) and findings (title, detail). The result is posted under this connection's name, the hand-off is completed, and a user who asked by text is texted the summary. Two-step: preview=true, then commit with the previewReceipt.

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": {
      "taskId": "<taskId>",
      "summary": "<summary>"
    },
    "name": "complete_handoff"
  }
}

Input Schema

NameRequiredDescriptionDefault
taskIdYesThe hand-off's task id (GUID) from list_tasks handoff=true.
previewNoStep 1 of the required two-step write: set true to validate and receive a structured preview plus a single-use previewReceipt. Nothing changes until the commit call.
resultsNoWhat you found: supplier options and findings (at most 20).
summaryYesOne line that continues your name in a text to the user, e.g. 'found 3 suppliers that can ship by Oct 12' (max 300 characters, no links).
idempotencyKeyNoCaller-generated idempotency key; required with previewReceipt to commit.
previewReceiptNoStep 2 of the required two-step write: the receipt returned by the preview call. Supply together with a fresh idempotencyKey to commit; calls without it are refused.

Output Schema

NameRequiredDescriptionDefault
okNo
taskNo
previewNo
expiresAtNo
actionItemIdNo
confirmationNo
correlationIdNo
approvalResultNo
idempotencyKeyNo
previewReceiptNo
idempotentReplayNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=false and destructiveHint=false; the description goes much further by disclosing the side effects: the result is posted under this connection's name, the hand-off is marked completed, and a user who asked by text gets the summary texted to them. It also explains that nothing changes until commit, which is exactly the behavioral context annotations cannot carry.

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 dense paragraph with the purpose, discovery path, and the two-step commit front-loaded in that order, so an agent can act after the first two sentences. The field-by-field recital of the results object duplicates the 100%-covered schema and is the one place wording isn't fully earning its place.

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 mutation with a two-step confirmation protocol, the description covers what triggers it, how to discover the task id, what to supply, the preview/commit gating, and the downstream user-visible effects. Return-value details are covered by the existing output schema, so nothing essential is missing.

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 real meaning: the summary must be one line continuing the agent's name, max 300 characters with no links, and results are capped at 20 supplier options/findings. The enumeration of supplier fields (name, location, moq, unitPrice, currency, shipBy, url, notes) largely restates the schema, so it falls short of a 5.

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 resource ('Post the result of a job a user handed off to you') and immediately scopes it against the sibling workflow by naming list_tasks handoff=true and get_task as the discovery/read path. An agent can distinguish this from complete_pick_list or acknowledge_action without opening 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 Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives the full when-to-use chain: find hand-offs with list_tasks handoff=true, read the brief with get_task, then post here. It also spells out the mandatory two-step write (preview=true first, then commit with the previewReceipt plus a fresh idempotencyKey) and states that calls without the receipt are refused.

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.

Resources