Skip to main content
Glama
albertm88

pdf-rescue-mcp

by albertm88

PDF一键救援

rescue_pdf

Diagnose and extract text from PDFs, automatically choosing foreground or resumable background jobs, with real-time progress, quality audit, and page evidence.

Instructions

首选入口:直接处理用户关于单个PDF的请求,不要让用户选择内部工具。传入PDF路径和用户原话,会自动诊断、规划,并按文档类型和预计耗时完成前台提取或启动可恢复后台任务;也可用同一入口查询进度、质检、恢复任务和查看页面证据。前台提取时每页实时推送进度(页数、百分比、剩余时间)。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeNo识别质量。默认 book-balanced;除非用户要求速度、最高质量或取证级,不必询问。book-balanced
pathNo待处理的 PDF 路径或包含 PDF 的目录。目录会作为批量后台任务处理;查询已有任务时可不填。
job_dirNo已有救援任务目录。查询进度、质检、恢复或查看页面证据时使用。
requestNo用户的原始诉求,尽量原样传入。服务用它自动选择流程;不要先问用户选择操作。
passwordNo仅用于本次密码保护 PDF 调用;不会写入任务记录或后台命令。
workflowNo默认 auto,根据 request 自动判断。仅在调用方已明确知道生命周期步骤时指定。auto
executionNo提取执行方式。默认 auto:短任务前台完成,长 OCR 任务自动后台运行。auto
max_pagesNo仅处理前 N 页;用户要求试跑、样本或明确页数时填写。
output_dirNo结果目录;未提供时自动创建在 PDF 同级的 pdf_rescue_output 下。
page_numberNo查看页面证据时的 1 起始页码;也会尝试从 request 中提取“第 N 页”。
evidence_formatNo页面证据形式。默认 auto;用户提到图片、截图或渲染页时自动导出图片。auto

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

No annotations are provided, so the description carries the full transparency burden. It discloses automatic diagnosis/planning, selection of foreground vs recoverable background execution based on document type and estimated time, and real-time per-page progress updates. It does not mention failure modes or side effects, but it goes well beyond a generic statement of purpose.

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?

The description is compact and front-loaded with the most important directive (preferred entry point, don't force user to choose internal tools). It uses four sentences with no repetition of schema details, and every clause adds functional information. This is excellent for an 11-parameter orchestrator.

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?

Given the high complexity (11 parameters, multiple workflows, many sibling tools) and the existence of an output schema, the description covers the main invocation pattern, automatic workflow selection, foreground/background behavior, progress reporting, and the ability to query status/QC/resume/evidence through the same entry. It does not enumerate every workflow enum, but those are already described in the schema.

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 coverage is 100%, and every parameter already has a descriptive schema entry, so the baseline is 3. The description adds minimal value by reinforcing that path and request are the primary inputs and job_dir is for existing tasks, which is already evident from the schema. It does not significantly deepen parameter understanding beyond the schema.

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?

The description explicitly names rescue_pdf as the preferred entry point ('首选入口') for single-PDF requests, with concrete actions: diagnose, plan, extract foreground/background, and query progress/QC/resume/evidence. It also differentiates from sibling tools by instructing the agent not to make the user select internal tools, making the orchestrator role unmistakable.

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 states when to use: for direct user requests about a single PDF, passing the path and raw request, and also for querying existing tasks via job_dir. It lacks explicit exclusions (e.g., batch/library scanning) and does not name alternative siblings, but the primary usage context is strong and actionable.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/albertm88/pdf-rescue-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server