Skip to main content
Glama
Waicy
by Waicy

get_pdf_info

Extract metadata from PDF files to analyze document properties, page counts, and structural information for research and organization purposes.

Instructions

获取PDF文件的基本信息

Args:
    file_path: PDF文件绝对路径(必须是绝对路径)

Returns:
    包含PDF元数据信息的字典

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathYes
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It mentions the tool returns a dictionary of PDF metadata, which is helpful, but lacks details on error handling (e.g., for invalid paths), performance characteristics, or any side effects. This is a significant gap for a tool that interacts with file systems.

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?

The description is appropriately concise and well-structured, with a clear purpose statement followed by Args and Returns sections. Every sentence adds value, though it could be slightly more efficient by integrating the path requirement into the purpose statement.

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?

Given the tool's moderate complexity (file I/O operation), lack of annotations, and no output schema, the description is minimally adequate. It covers the purpose and parameter semantics but misses usage guidelines and detailed behavioral context, leaving gaps for the agent to infer.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The description adds meaningful context beyond the input schema, which has 0% coverage. It specifies that 'file_path' must be an absolute path to a PDF file, clarifying the parameter's semantics and constraints. Since there's only one parameter, this adequately compensates for the schema's lack of description.

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?

The description clearly states the tool's purpose as '获取PDF文件的基本信息' (get basic information of PDF files), which is a specific verb+resource combination. However, it doesn't explicitly differentiate from sibling tools like 'list_pdfs_in_directory' (which lists files) or 'read_pdf_text' (which extracts content), so it falls short of a perfect score.

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

Usage Guidelines2/5

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

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention the sibling tools or clarify scenarios where this tool is appropriate (e.g., for metadata extraction rather than content reading or file listing). This leaves the agent with insufficient context for tool selection.

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/Waicy/-pdf-mcp-'

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