Skip to main content
Glama
pdf-mcp
by jkp

Reindex PDFs

reindex_pdfs
Read-only

Rebuild the search index for all PDFs in the filing cabinet after adding new files or when search results become stale.

Instructions

Reindex all PDFs in the filing cabinet.

Use this after adding new PDFs or if search results seem stale.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "reindex_pdfs"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, so the safety profile is covered; the description usefully adds the maintenance-trigger context. However, it says nothing about how long a full reindex takes, whether search is degraded or unavailable while it runs, or whether repeated invocations are idempotent — all relevant for a whole-corpus maintenance operation.

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 short sentences, the scope statement first and the trigger conditions second. Every clause carries information; nothing is padded or redundant.

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?

An output schema exists, so return values need not be described, and the zero-parameter schema means there is no input surface to explain. What remains uncovered is operational: expected duration and whether the corpus is searchable during the reindex.

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?

The tool takes zero parameters, so there is no parameter meaning to convey and the description cannot be faulted for omitting any. Baseline 4 applies.

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?

"Reindex all PDFs in the filing cabinet" gives a specific verb (reindex) and resource (PDFs) with explicit scope (all), so an agent can tell this apart from list/search/read/rename siblings without opening the schema. It stops short of naming a sibling or stating what reindexing actually rebuilds.

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 second sentence gives two concrete triggers: after adding new PDFs, or when search results seem stale. That is clear positive guidance, but there is no exclusion (e.g., not needed for metadata-only changes) and no named alternative for the stale-results case.

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