Skip to main content
Glama

Download a paper PDF or file through the local bridge

web_download

Download a single article PDF or file via browser session, including bot-blocked open-access and institutional-access articles. Accepts a URL, landing page, or DOI; verifies PDFs and saves to disk.

Instructions

Download one article PDF (or another file) using the user's machine and bridge Chrome session, including open-access PDFs that block bots and articles the user can access through their institution. Accepts a direct file URL, an article landing page or a DOI; finds citation_pdf_url or the PDF link itself and verifies the file really is a PDF. One article per call, only articles the user actually needs: publisher licences forbid bulk downloading, and there is an hourly cap. Never use for pirate libraries. Saves to the default download folder (see web_status) unless dir is given.

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": {
      "url": "<url>"
    },
    "name": "web_download"
  }
}

Input Schema

NameRequiredDescriptionDefault
dirNoabsolute target folder (default: WEB_BRIDGE_DOWNLOAD_DIR or ~/Downloads/web-bridge)
urlYesPDF URL, article landing page URL, or DOI
expectNopdf (default, verified) or any file type
filenameNofile name; default is derived from the DOI or title

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=false, openWorldHint=true), the description discloses that the download runs through the user's own machine and authenticated Chrome session, that the file is validated as a real PDF, that there is an hourly cap, and where the artifact lands on disk. These are exactly the behaviors an agent needs to reason about mutability, rate limits, and licensing risk, none of which the annotations express.

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?

Front-loaded with the core action and mechanism, then the input forms, then the policy constraints. Every clause carries information, but the final sentence strings three separate rules (folder default, licensing, pirate libraries) into one long pack, making it slightly denser than ideal.

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

Completeness5/5

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

There is no output schema, and the description compensates by saying where the result is written and that the file type is verified. Combined with the stated input flexibility and rate-limit/licensing context, an agent has everything needed to call this correctly for a four-parameter mutation-class tool.

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 100% and the parameters already document defaults, the enum, and the accepted URL forms, so the description adds little beyond restating them. The only incremental value is the pointer to web_status for discovering the default download directory. Baseline 3 applies when the schema carries the parameter burden.

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 and resource ('Download one article PDF (or another file)') and immediately scopes the mechanism ('using the user's machine and bridge Chrome session'), which distinguishes it from the browser siblings like web_open/web_read that fetch pages rather than save files. It also enumerates the accepted input kinds (file URL, landing page, DOI), so an agent can tell when this is the right tool 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 Guidelines5/5

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

Gives explicit when-to-use conditions (open-access PDFs that block bots, articles accessible through the user's institution) and explicit when-nots ('Never use for pirate libraries', 'One article per call, only articles the user actually needs', bulk downloading forbidden by licences). It also points to web_status for the default download folder, giving the agent a concrete next step for the one piece of context it lacks.

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