Skip to main content
Glama
xiongxingzhe

mcp-pdf-tokensaver

by xiongxingzhe

fetch_pdf_chunks

Selectively extract specific text paragraphs or equations from a PDF using block IDs, reducing token usage for LLMs.

Instructions

Selectively fetch the raw, highly-structured text paragraphs or equations of specific blocks based on their blockId. Use this after inspect_pdf_structure to pull only the necessary data chunks.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
blockIdsYesAn array of specific blockId strings discovered via inspect_pdf_structure tool.
filePathYesThe absolute path to the local PDF file.
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It describes what the tool does (fetch structured text) but does not disclose behavioral traits such as error handling, performance, or limitations on blockIds.

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 two sentences, no wasted words, and front-loads the purpose. It is appropriately concise for the tool's complexity.

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 simple two-parameter input and no output schema, the description is sufficient for an agent to use the tool correctly in conjunction with inspect_pdf_structure. It could include more on return format but is not incomplete.

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?

Schema coverage is 100%, baseline 3. The description adds value by specifying that blockIds come from inspect_pdf_structure and that filePath is the absolute path to the PDF file, providing context 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 uses a specific verb ('fetch') and resource ('raw, highly-structured text paragraphs or equations'), and clearly distinguishes it from the sibling tool inspect_pdf_structure by stating it is used after that tool to pull specific chunks.

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 explicitly states when to use this tool: 'after inspect_pdf_structure' and 'to pull only the necessary data chunks.' It provides clear context for usage, though it does not explicitly state when not to use it.

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

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