Skip to main content
Glama

click_and_wait_download

Clicks a browser element to trigger a file download and waits for completion, saving the file to the configured download directory.

Instructions

Click an element that triggers a file download and save it to download_dir.

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": {
      "tab_id": "<tab_id>"
    },
    "name": "click_and_wait_download"
  }
}

Input Schema

NameRequiredDescriptionDefault
cssNo
nameNo
roleNo
tab_idYes
timeout_msNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose the core behavior: the click is expected to trigger a download and the file is persisted to download_dir (a location not exposed as a parameter). It omits blocking semantics, what happens on timeout, failure modes, and whether an existing file is overwritten — meaningful gaps for a side-effecting tool.

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 front-loaded sentence with no filler — the action and its outcome lead. It is tight, though its brevity reflects under-specification rather than disciplined economy.

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

Completeness2/5

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

The output schema covers return values, but with zero annotations, five undocumented parameters, and a side-effecting download operation, the description is too thin. An agent cannot tell how locators are resolved, how long it blocks, or what failure looks like.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across 5 parameters, so the description must compensate and largely does not. It gestures at element selection but never explains css/name/role precedence, says nothing about tab_id, and does not clarify timeout_ms behavior; 'download_dir' is mentioned but is not even a parameter.

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 ('Click an element that triggers a file download') and adds the outcome ('save it to download_dir'), which distinguishes it from the plain 'click' sibling by implication. It never names 'click' explicitly as the non-download alternative, so 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 Guidelines3/5

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

Usage is only implied by the phrase 'triggers a file download' — an agent can infer this tool is for download-producing clicks. There is no explicit guidance on when to prefer plain 'click', what happens if the click produces no download, or when to use the timeout.

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