Skip to main content
Glama
Asheng008

unifiles-mcp

by Asheng008

pdf_extract_text

Extract text content from PDF files. Specify a page range or extract all pages.

Instructions

从 PDF 文件中提取文本内容。

支持提取所有页面或指定页面范围的文本。页面之间用换行符分隔。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathYesPDF 文件路径(支持相对路径和绝对路径)
page_rangeNo页码范围 (start, end),1-based,None 表示提取所有页面。例如 [1, 5] 表示第 1 到第 5 页

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

No annotations are provided, so the description must cover behavioral aspects. It states extraction behavior and page separation but does not discuss edge cases like encrypted files, performance, or error handling.

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?

Two sentences, no filler, front-loaded with the core purpose. Every word contributes meaning.

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 output schema present and clear parameter descriptions, the description is largely complete. Could mention output format or limitations, but not essential given the output 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 descriptions in schema are already informative. The tool description adds minimal extra context beyond what's in the schema (e.g., '1-based' for page_range).

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 clearly states the tool extracts text from PDF files, with options for all pages or a range. The name 'pdf_extract_text' is specific and distinguishes it from siblings like 'word_extract_text'.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explains when to use it (PDF text extraction) but lacks explicit guidance on when not to use it or comparisons to alternatives. It indicates support for page ranges but no exclusion criteria.

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/Asheng008/unifiles-mcp'

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