Skip to main content
Glama

upload_book

Idempotent

Prepares authorized uploads of local EPUB or PDF files to a CWA book library, returning a short-lived link for direct file transfer outside MCP.

Instructions

prepare 用 request_id、title、filename、size_bytes、required_format 准备上传。文件真实元数据应与 title/authors/language 对应。按返回链接 PUT 完整文件;refresh_ticket 用 task_id 更新授权。禁止通过 MCP 传文件或任意服务端路径。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
titleNo
actionNoprepare
sha256No
authorsNo
task_idNo
filenameNo
languageNounknown
request_idNo
size_bytesNo
required_formatNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false and idempotentHint=true, but the description adds genuinely new behavioral context: the two-step prepare-then-PUT protocol, that the returned link is where the full file goes, that refresh_ticket only updates authorization, and that files must never be passed through MCP. It stops short of covering failure modes, size limits, or ticket expiry.

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?

It is dense and front-loads the 'prepare' action, with each semicolon-delimited clause carrying distinct information (params, metadata rule, PUT step, refresh action, prohibition). The mixed Chinese/English phrasing is slightly awkward for an English-only agent, but there is no filler.

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

Completeness3/5

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

An output schema exists, so return values need not be explained, and annotations cover the safety profile. The description adequately describes the workflow and the file-transfer prohibition, but leaves sha256 and several parameter meanings undocumented for a 10-parameter tool, so it is not fully complete.

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 0%, so the description must carry parameter meaning, and it names most of them (request_id, title, filename, size_bytes, required_format, task_id, authors, language) plus the action values. It does not explain what sha256 is for, what request_id represents, or acceptable format values, so it only partially compensates for the coverage gap.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description conveys a two-phase upload workflow ('prepare' to get a link, then PUT the file), so the resource and action are inferable. However, it never plainly states in a single clause that the tool uploads a book file to the library, and it makes no attempt to distinguish itself from siblings like acquire_book or get_download_url. Purpose is understandable but under-framed.

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?

It clearly routes between the two actions: 'prepare' lists the parameters to supply, while 'refresh_ticket' is used with task_id to refresh authorization. It also adds a hard usage constraint ('禁止通过 MCP 传文件或任意服务端路径'), which tells the agent what not to attempt. What's missing is any explicit comparison to sibling tools or a stated 'when not to use' condition.

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