Skip to main content
Glama
pdf-mcp
by jkp

Search PDFs

search_pdfs
Read-only

Search indexed PDFs with hybrid keyword and semantic matching, then rerank results by relevance to answer natural-language or keyword queries.

Instructions

Search across all indexed PDFs using full-text and semantic search.

Combines FTS5 keyword matching with vector similarity search, reranks with a cross-encoder, and filters by LLM relevance scoring.

Args: query: Search query (natural language or keywords) limit: Maximum number of results

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_pdfs"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
queryYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already cover safety with readOnlyHint=true, so the description's job is to add behaviour, and it does: FTS5 keyword matching plus vector similarity, cross-encoder reranking, and LLM relevance filtering. That pipeline detail signals possibly slow and non-deterministic, ranked results, which is real value beyond the annotation. It stops short of stating latency, cost, or what happens with unindexed or partial matches.

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 front-loaded with the purpose and then moves to the retrieval pipeline, and both arguments are listed in an Args block, so it is easy to scan. The pipeline sentence is dense jargon, but it is still informative rather than filler.

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?

This is a two-parameter read-only search, and an output schema is present, so return values do not need to be explained. Both arguments are documented and the retrieval behaviour is disclosed, leaving little an agent needs before calling it correctly. Only minor gaps remain, such as pagination or behaviour for empty results, and they are acceptable at this complexity.

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 description coverage is 0%, so the description must carry both parameters, and it documents each one: query accepts natural language or keywords (meaningful, since it tells the agent both query styles work), and limit caps result count. It does not restate the default of 20 or mention ordering, but both parameters are now unambiguous.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a specific verb and resource ('Search across all indexed PDFs') plus the mechanism (full-text and semantic). The scope 'all indexed PDFs' implicitly separates it from sibling tools like read_pdf or get_pdf_info, but it never names an alternative outright.

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

Usage Guidelines3/5

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

Usage is only implied: the phrase 'Search across all indexed PDFs' tells the agent this is a corpus-wide lookup rather than a single-document read. There is no explicit statement of when to prefer this over read_pdf, list_pdfs, or reindex_pdfs, and no exclusions or prerequisites.

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