Skip to main content
Glama
JoyTruepath

TruePath PDF MCP Server

by JoyTruepath

Search PDF

search

Search a PDF for a substring. Each hit returns its page, offset, and a context snippet for grep-style text discovery.

Instructions

Find a substring across the whole PDF. Returns each hit's page, offset within the page, and a snippet of surrounding text. Use for grep-style discovery before extracting full text.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesAbsolute path to a PDF on the local filesystem.
queryYesText to search for.
caseSensitiveNoCase-sensitive match. Default false.
contextCharsNoHow many characters of surrounding text to include per hit (default 60).
maxHitsNoCap the number of hits returned (default 200).
Behavior4/5

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

No annotations provided, so description carries full burden. It discloses that the tool searches across whole PDF and returns hit details. It doesn't mention performance, error cases, or environment constraints, but adequately describes behavior for a read-only search.

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 concise sentences: first states purpose and output, second gives usage guidance. No wasted words, front-loaded with key information.

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 no output schema, description covers return format. It explains the use case and differentiates from siblings. However, lacks mention of file permissions, error handling, or constraints on large files, but sufficient for most scenarios.

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?

All 5 parameters already have schema descriptions (100% coverage). The description adds no extra meaning to parameters beyond what schema provides, so 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?

Description clearly states verb 'find a substring' and resource 'the whole PDF', listing return values (page, offset, snippet). It also distinguishes from sibling tools by positioning itself as 'grep-style discovery before extracting full text'.

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

Usage Guidelines5/5

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

Explicitly tells when to use ('grep-style discovery') and when not ('before extracting full text'), naming alternative tool (extract_text). This is clear, actionable 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/JoyTruepath/truepath-pdf-mcp'

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