Skip to main content
Glama

Download By Click

download_by_click

Clicks an element to trigger a download, waits for it to finish, and saves the file to the artifact directory.

Instructions

Click an element, wait for a download, and save it into the artifact directory.

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": {
      "selector": "<selector>"
    },
    "name": "download_by_click"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageIdNoPage id. Defaults to the active page.
selectorYes
timeoutMsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full disclosure burden. It does reveal the side effect location (artifact directory) and that the call blocks waiting for a download, but says nothing about failure behavior when the wait times out, whether partial or duplicate files are written, or what the caller receives on success.

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 and a clear action sequence. It is efficient, though the terseness is partly what leaves the behavioral and parameter gaps unaddressed.

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?

For a blocking, side-effecting tool with no annotations and no output schema, the definition is thin: it never says how the saved artifact is identified (path or filename) or what the response contains, and two of three parameters are undocumented everywhere.

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 only 33% — pageId is documented, while selector and timeoutMs are bare. The description contributes nothing about the selector syntax or the timeout semantics (what happens at expiry), so the low-coverage parameters remain ambiguous.

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 concrete three-step action: click an element, wait for a download, and persist it to the artifact directory. This distinguishes it in spirit from the plain 'click' sibling, though it never states that distinction explicitly.

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 implied by the sequence described — reach for this when a click triggers a file download. There is no explicit guidance on when to prefer 'click' instead, no note about what happens if no download is triggered, and no prerequisites stated.

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