Skip to main content
Glama

download_wait

Wait up to a timeout for a download GID to reach complete, error, removed, or paused status without tight polling; if it times out, continue other work and check status later.

Instructions

Wait up to timeout_seconds (default 30, max 120) for a download GID to reach complete, error, removed, or paused without tight polling. If timedOut=true, do not loop download_wait tightly: continue other work, check download_status later or run node "/app/server.mjs" --wait <gid> in a background shell.

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": {
      "gid": "<gid>"
    },
    "name": "download_wait"
  }
}

Input Schema

NameRequiredDescriptionDefault
gidYes
timeout_secondsNoMaximum seconds to wait (1 to 120, default 30).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full burden and does it well: it discloses the blocking wait, the bounded timeout (default 30, max 120), the set of terminal states that end the wait, and the timedOut=true outcome plus what to do next. It omits what happens for an unknown/invalid GID or an already-complete download, which is the main remaining gap.

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?

Two sentences, front-loaded with the wait semantics and timeout bounds before the timeout-recovery advice. The embedded shell command is slightly heavy but earns its place by giving a concrete non-polling alternative.

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 two-parameter wait tool with no annotations and no output schema, the description covers purpose, timeout bounds, terminal states, and the timeout path. It lacks only edge-case behavior for invalid or already-terminal GIDs, which is minor at this complexity.

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 description coverage is 50%: timeout_seconds is documented in the schema and the description only restates its default and max. The gid parameter has no schema description, and the description adds only that it is a download GID, which is modest compensation for the uncovered parameter.

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 (wait), resource (download GID), and the exact terminal states (complete, error, removed, paused) it resolves on. The phrase 'without tight polling' implicitly separates it from download_status, so an agent can tell what this tool is for without opening the 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?

Gives explicit when-not guidance: on timedOut=true do not loop download_wait, instead continue other work and check download_status later or run the background node command. It does not state the general condition for choosing this over download_status when no timeout has yet occurred, but the anti-polling framing covers the main decision.

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