Skip to main content
Glama

Download book

book_download

Download a book from Anna's Archive using its search hash to save a verified file to the configured path and return the file path and size. Format sets only the extension.

Instructions

Download the selected book using its hash from search. Saves a verified file under ANNAS_DOWNLOAD_PATH and returns path and bytes. Format sets the extension; it does not convert the file.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
hashYes32-character MD5 hash from search
titleYesBook title used for the filename
formatNoOptional filename extension such as pdf or epub. Inferred when omitted; does not convert the file
timeout_secondsNoTotal operation timeout in seconds, including retries. Defaults to 1800; maximum 86400

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
bytesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare this is a non-read-only, non-idempotent, open-world operation, so the safety profile is covered. The description adds genuinely new behavior: the file is saved to ANNAS_DOWNLOAD_PATH, it is verified, and the call returns path plus bytes. It omits failure/retry behavior, though timeout handling is documented in the schema.

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, no filler, with the core action and its precondition front-loaded and the format caveat last. Every sentence carries information an agent needs before invoking the tool.

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?

With an output schema covering the returned path and byte count and annotations covering the safety profile, the description is close to complete: it explains the save location, verification, and non-converting format. It could note permission or rate-limit expectations for an open-world download, but nothing essential to correct invocation is missing.

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%, so each of the four parameters is already documented with format, range, and defaults. The description reinforces that format sets only the extension and that hash comes from search, but that meaning is largely duplicated from the schema rather than extended, so the baseline 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?

Names a specific verb and resource (download a book) and ties the input to its source ('hash from search'), which cleanly separates it from book_search and from the sibling article_download. It stops short of explicitly contrasting itself with article_download, but the 'book' framing makes the distinction inferable.

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?

States the precondition that the hash must come from a prior search, which routes the agent through book_search first, and adds the caveat that format only sets the extension rather than converting. It does not spell out when to prefer this over other download paths or exclusions, so it is clear context without full alternative coverage.

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