Skip to main content
Glama
pdf2mcp

pdf2mcp

by iSamBa

search_docs

Search across all ingested PDFs to find relevant passages when you don't know which document contains the answer. Returns ranked matches with source file, section, and page numbers.

Instructions

Search across ALL ingested PDFs for relevant passages.

Use this when you don't know which document contains the answer.
Returns ranked results with source file, section title, and page numbers.
Each result includes the matching text passage.

To search within a specific document instead, use search_in_doc.
To browse a document's structure first, use get_sections.

Args:
    query: Natural language search query (e.g., 'safety requirements for
        outdoor installation').
    num_results: Number of results to return (default: 5, max: 20).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "query": "<query>"
    },
    "name": "search_docs"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYes
num_resultsNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.0

TDQS

A4.7/5.0
Behavior4/5

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

No annotations are provided, so the description carries the behavioral burden. It discloses scope, ranking, result fields, and matching passage inclusion, which is strong for a search tool, but it does not explicitly state read-only behavior or auth/rate-limit constraints.

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 well front-loaded with purpose, usage context, alternatives, and parameters. It is slightly redundant in explaining return fields even though an output schema exists, and the Args section could be tighter, but nothing is misleading or bloated.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter search tool with an output schema and no annotations, the description is complete enough to call correctly. It covers scope, selection guidance, alternatives, parameter meaning, and expected result shape.

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

Parameters5/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 both parameters and it does. It defines query as a natural language search query with an example, and num_results with its default of 5 and maximum of 20.

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: search across ALL ingested PDFs for relevant passages. It explicitly contrasts this scope with search_in_doc, so an agent can distinguish it from the sibling without inspecting schemas.

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?

It gives an explicit when-to-use rule: use this when you don't know which document contains the answer. It also names alternatives and their conditions: search_in_doc for a specific document and get_sections for browsing structure first.

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