Skip to main content
Glama

wait_for_download

Read-only

Waits for a browser download to finish and returns its saved file path—call after clicking a download link; already-completed downloads are returned immediately.

Instructions

等待下载完成并返回保存路径。点击下载链接后调用。已完成但尚未报告的下载会直接返回。

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "wait_for_download"
  }
}

Input Schema

NameRequiredDescriptionDefault
timeoutNo最长等待毫秒数,默认 30000

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint and openWorldHint, so the safety profile is covered. The description usefully adds that it returns the saved path and short-circuits on already-finished downloads, but says nothing about what happens on timeout — whether it errors, returns null, or leaves the download running.

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?

Three short sentences, front-loaded with the outcome (returns saved path) before the invocation trigger. Nothing is redundant or padded.

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

Completeness3/5

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

With no output schema, the description correctly tells the agent what comes back (saved path). However, the failure/timeout behavior that an agent must handle for a waiting tool is left unstated, which is a real gap for a single-parameter blocking call.

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 100% and the timeout parameter already documents its default (30000) and 55000ms maximum. The description adds no further meaning about the timeout, so the baseline of 3 applies.

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?

States a specific verb+resource (wait for download completion) and its result (returns the saved path), which is clearly different from the generic wait_for sibling. It stops short of explicitly naming a sibling alternative, but the download-specific scope makes the distinction obvious.

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 an explicit trigger — 'call after clicking a download link' — plus a useful edge-case rule that already-completed but unreported downloads return immediately. No exclusion or when-not guidance is offered, which keeps it just below the top band.

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