pdf_compress
压缩 PDF 体积(清理冗余 + 重压缩流/图片/字体,1 credit/次)。失败自动退款。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_id | Yes | 要压缩的 PDF 文件 ID | |
| filename | No | 可选输出文件名 |
压缩 PDF 体积(清理冗余 + 重压缩流/图片/字体,1 credit/次)。失败自动退款。
| Name | Required | Description | Default |
|---|---|---|---|
| file_id | Yes | 要压缩的 PDF 文件 ID | |
| filename | No | 可选输出文件名 |
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the burden. It discloses the 1 credit cost and automatic refund on failure, which are important behavioral traits. However, it does not state whether the original file is overwritten or a new file is created.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single concise sentence with parenthetical details about methods and cost. It is front-loaded with the main action and contains no unnecessary words.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The description covers the main action, methods, cost, and refund policy. Given the schema provides full parameter descriptions, the description is largely complete. Minor missing detail: output file behavior not explicitly stated, but the optional filename parameter implies flexibility.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 100%, and the parameters are described in the schema itself. The tool description adds no additional parameter semantics beyond what is already in the input schema.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool compresses PDF size by cleaning redundancy and recompressing streams/images/fonts. It also mentions the credit cost and refund policy, distinguishing it from sibling PDF tools.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description does not provide explicit guidance on when to use this tool versus alternatives. It mentions credit cost and refund, but lacks context for tool selection among sibling tools.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Add one secure layer between your agents and this server.
Each tool has a unique purpose with clear naming (e.g., pdf_compress vs pdf_encrypt). The two watermark tools are distinguished by 'image' vs text. No ambiguity.
Most tools follow a consistent 'prefix_verb' pattern (e.g., pdf_merge, pdf_split). The 'img_to_pdf' and 'pdf_to_img' break the verb pattern but are still clear and predictable.
10 tools is ideal for a PDF toolbox—neither too few nor too many. Each tool provides a distinct utility without overwhelming the agent.
Covers essential PDF operations (merge, split, compress, encrypt/decrypt, watermark, image conversion). Missing some advanced features like OCR or text extraction, but core workflows are well covered.