Skip to main content
Glama

Wait for a delivery

wait_for_delivery
Read-only

Poll an agent delivery until it finishes, needs a person for a question/approval/browser takeover, or times out; use after sending a task with waiting disabled or to resume a wait.

Instructions

Poll a delivery until the agent finishes, needs a person (question/approval/browser takeover — returned so you can answer), or the timeout passes. Use after send_message/run_routine with wait=false, or to resume a wait.

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": {
      "agent": "<agent>",
      "deliveryId": "<deliveryId>"
    },
    "name": "wait_for_delivery"
  }
}

Input Schema

NameRequiredDescriptionDefault
agentYesAgent ID or agent name (case-insensitive), as list_agents shows it.
deliveryIdYes
timeoutSecondsNoHow long to wait. Timing out stops only the wait; the agent keeps working.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered. The description does add real behavior beyond that, notably that a timeout halts only the wait while the agent keeps working, and that human-blocking states are returned so the caller can answer. It omits polling cadence, whether a timed-out deliveryId can be re-polled, and what the return payload looks like, so improvement is possible.

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 dense sentences with the core behavior first and the invocation context second; the parenthetical is used efficiently to list the blocking states. No filler or redundant restatement of the name.

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 polling tool with no output schema, the description covers the meaningful outcome classes and the key timeout side effect, which is what an agent needs to call it correctly. Missing detail around return shape and deliveryId lifetime keeps it from being fully complete.

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 67%, with agent and timeoutSeconds documented in the schema including the timeout's maximum and its non-cancelling effect. deliveryId carries no description anywhere, and the description doesn't say where it comes from (presumably the send_message/run_routine response) or whether it stays valid across repeated waits. Baseline 3 is appropriate given the schema does most of the work.

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?

The description names a specific verb and resource ('Poll a delivery') and enumerates the three terminal conditions (agent finishes, human needed, timeout), which separates it from a one-shot fetch. It never names get_delivery to draw that contrast explicitly, so it falls just short of full sibling differentiation.

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?

It gives concrete entry conditions: use after send_message/run_routine with wait=false, or to resume an existing wait. It does not state when not to use it (e.g., a single non-blocking status check belongs to get_delivery), leaving that boundary to inference.

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