Skip to main content
Glama
twoer

pdf-toolbox-mcp

by twoer

Tool Is Searchable

tool_is_searchable

Check if a PDF has an extractable text layer to decide between direct text extraction and OCR. Use this first to route your PDF processing workflow.

Instructions

智能路由入口:判断 PDF 是否已有可提取文本层,返回建议动作(extract_text 或先 ocr_pdf)。不确定时先调这个。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
sample_pagesNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.1.1

TDQS

A4.1/5.0
Behavior3/5

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

No annotations are provided, so the description carries the behavioral disclosure burden. It explains that the tool only returns a recommended action rather than performing extraction, which is useful, but it does not mention whether the operation is read-only, what happens with invalid paths, or any edge cases around sampling.

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?

One concise sentence with critical routing information front-loaded. Every clause earns its place, and the fallback instruction '不确定时先调这个' is a useful, compact guideline.

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?

For a lightweight routing tool with an output schema present, the description covers the core decision flow and names both target tools. The only gap is the unexplained sample_pages parameter, which prevents full completeness.

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

Parameters2/5

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

Schema description coverage is 0%, so the description must explain parameter meaning, but it mentions no parameters. 'path' is somewhat inferable, but 'sample_pages' and its default of 5 are completely unexplained, leaving the agent unsure how sampling affects the check.

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 states a specific verb and resource: it checks whether a PDF has an extractable text layer and returns a recommended action. It clearly distinguishes itself from sibling tools by positioning itself as the routing entry point between extract_text and ocr_pdf.

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?

The description explicitly names when to use this tool: when uncertain, call it first. It also names the two alternative actions it routes between (extract_text and ocr_pdf), giving clear decision context.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

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

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