Skip to main content
Glama

Await human input

await_human

Wait for human decision on WAITING_HUMAN (scenario:execute + grant). Modes: block (long-poll up to timeout_s, default/max 90 — always pass timeout_s=90), poll (one shot), peek (one shot). Pass since_version from the wait_human response version. Mandatory ladder after wait_human (agent must orchestrate; host does not auto-retry): 1) Call await_human(mode=block, since_version=, timeout_s=90) exactly once. 2) If changed=true: follow next_action immediately (usually take_step). Do not poll. 3) If timed_out=true: do NOT call mode=block again; do NOT call poll immediately; sleep exactly retry_after seconds from the response (default 60) using a real wait/sleep tool; then call await_human(mode=poll, same since_version). Repeat sleep(retry_after)+poll up to 3 times total. 4) Only after those 3 poll retries still not changed: tell the user you are still waiting; stop the ladder. Later get_procedure+grant may return missed_while_away / human_inbox (B3).

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": {
      "id": "<id>"
    },
    "name": "await_human"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesProcedure UUID or silvalabs:procedure/<uuid>/<name>#grant=…
modeNo
grantNoRaw grant token; optional if already in procedure id (#grant= or ?grant=)
timeout_sNo
since_versionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations only mark it non-read-only and non-idempotent; the description supplies the real behavioral payload — the 90s timeout cap, the single-call constraint on block mode, the retry_after sleep requirement with a default of 60, the three-retry ceiling, and the fact the host will not auto-retry. It also discloses response fields (changed, timed_out, retry_after, version) that drive agent behavior.

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?

Purpose and modes are front-loaded, and the numbered ladder aids scanning. However, it is a dense run-on wall of text with duplicated emphasis ('do NOT call mode=block again; do NOT call poll immediately') and parenthetical asides (B3, host does not auto-retry) that could be tightened considerably.

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 five-parameter orchestration tool with no output schema, the description covers nearly everything an agent needs: the call sequence, timing constraints, and the state fields to branch on. The gap is the undocumented peek-vs-poll distinction and no guidance on auth/grant failure paths.

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?

With only 40% schema description coverage, the description must compensate, and it does for the key parameters: mode values are explained behaviorally, timeout_s is given a default and max, and since_version is tied to the prior wait_human response. The 'peek' mode is named but its distinct purpose versus poll is never explained, and id/grant are left essentially to the schema.

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 state ('Wait for human decision on WAITING_HUMAN') and ties it to the scenario:execute + grant context, which is far more informative than the title. It implies the handoff to take_step but never explicitly contrasts itself with siblings like take_step or resume_step, so the differentiation is inferred rather than stated.

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 an explicit mode taxonomy (block = long-poll, poll = one shot, peek = one shot) and then a numbered ladder specifying exactly when to call block once, when to follow next_action, when not to re-block, and when to abandon after three poll retries. This is about as prescriptive as usage guidance gets.

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