Skip to main content
Glama

download_pdf

Downloads a paper PDF by DOI into the download folder, trying a free open-access copy first and using the entitled Elsevier PDF otherwise while respecting institutional download limits.

Instructions

Download one paper as a PDF into the download folder (ERM_DOWNLOAD_DIR), named "{first_author} {year} - {title}.pdf" unless filename is given. With prefer_open_access (default) a free legal copy is tried first and does not count toward limits; otherwise the Elsevier PDF is fetched if entitled. Existing files are not downloaded again. COUNTS toward institution download limits (UTM default: 5 articles and 100 MB per 15 min, 20 per day, 10 s apart). When refused, the result gives the reason and next_allowed time: tell the user and wait, never retry in a loop.

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": {
      "doi": "<doi>"
    },
    "name": "download_pdf"
  }
}

Input Schema

NameRequiredDescriptionDefault
doiYes
filenameNo
prefer_open_accessNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.8.0

TDQS

A4.5/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full burden and does so: it discloses rate limits (5 articles / 100 MB per 15 min, 20 per day, 10 s apart), that open-access fetches do not count toward limits, idempotency for existing files, and the refusal response shape including next_allowed. This is exactly the behavioral context an agent needs before invoking a rate-limited mutation.

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 action and output artifact, then constraints and failure handling. Dense but nearly every clause is load-bearing; the inline quota parenthetical and multi-clause sentences make it harder to scan than it could be.

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?

Covers destination, naming, entitlement logic, quotas, idempotency, and the refusal outcome, which is sufficient for a 3-parameter tool with no annotations and no output schema. The success response shape is not described, but that is a minor gap given the failure path is specified.

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

Parameters4/5

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

Schema description coverage is 0%, so the description must compensate. It explains filename (overrides the default naming template) and prefer_open_access (default true, free legal copy tried first, exempt from limits), adding consequences beyond the bare defaults in the schema; doi is left implicit as the paper identifier.

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 paper as a PDF), names the destination folder and the exact file-naming template, and the word 'one' implicitly separates it from download_batch. An agent can identify the operation and its output artifact 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 clear conditions: prefer_open_access (default) tries a free legal copy first, otherwise the Elsevier PDF is fetched if entitled, and existing files are skipped. It also prescribes behavior on refusal (tell the user, wait, never retry in a loop). It stops short of naming sibling alternatives such as find_open_access or download_batch for multi-paper cases, so it is strong context rather than full routing guidance.

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