Skip to main content
Glama
WendongAI

1pdf

by WendongAI

ai_chat_with_pdf

Ask any question about a PDF and get an answer derived from its text content.

Instructions

Ask a question about a PDF and get an answer based on its text content.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fileYesAbsolute path to the PDF file
questionYesQuestion to answer about the PDF content
Behavior3/5

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

With no annotations, the description carries the full burden of behavioral disclosure. It states the answer is based on 'text content', implying a read-only operation and text-only scope, but it does not disclose potential limitations (e.g., no image text, no conversational memory, or that it uses AI). This is minimal but not misleading.

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 a single, well-structured sentence that immediately states the action and result. No unnecessary words or redundant information. It front-loads the purpose and is easy to parse for an AI agent.

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 tool's simplicity (2 params, no output schema, no nested objects), the description is reasonably complete. It explains what the tool does and what the answer is based on. It could be improved by noting potential edge cases (e.g., scanned PDFs without selectable text) or the answer format, but for a straightforward Q&A tool it meets the minimum contextual needs.

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 100%, with both parameters having clear descriptions (file path and question). The tool description adds a small semantic nuance by saying 'based on its text content', which slightly clarifies the scope beyond the schema, but the schema already carries the primary meaning. Thus a baseline 3 is appropriate.

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 uses a specific verb+resource structure: "Ask a question about a PDF and get an answer based on its text content." This clearly identifies the tool as a Q&A assistant over PDF text content and distinguishes it from sibling tools like get_page_text or pdf_search, which are more about extraction rather than natural-language answering.

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?

The description provides clear context for when to use the tool: when the user wants to ask a question about a PDF's text. However, it does not explicitly mention alternatives or exclusions relative to sibling tools such as ai_summarize or ai_extract_info, so it falls short of full guidance.

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/WendongAI/onepdf-mcp-server'

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