Skip to main content
Glama
Paperscope

Paperscope

Official

index_documents

Idempotent

Index a file or directory recursively so Paperscope can search local documents with exact citations. Hidden files and symlinks are skipped, and paths are restricted to your home and existing roots.

Instructions

Index a file or directory (recursive). Hidden files and symlinks are skipped. Paths are restricted to the user's home and existing roots.

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": {
      "path": "<path>"
    },
    "name": "index_documents"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesAbsolute path to a file or a directory. Directories are scanned recursively; hidden files and symlinks are skipped.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations declare readOnly=false, idempotent=true, destructive=false, and openWorld=false, so the safety profile is already covered. The description adds real behavioral constraints beyond that: hidden files and symlinks are skipped, traversal is recursive, and paths are confined to the user's home and existing roots. It omits blocking/long-running behavior and what happens when a path is already indexed.

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?

Three short sentences, front-loaded with the action and scope, then constraints. No wasted wording and nothing buried.

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

Completeness3/5

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

There is no output schema, so the description should say what indexing returns (counts, status, errors) and whether the call blocks while indexing runs. It also leaves the relationship to add_index_root and index_status implicit. The path and skipping constraints are complete, but the operation's outcome is not described.

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

Parameters3/5

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

With a single parameter and 100% schema description coverage, the schema already documents 'path' fully, and the description's phrasing largely restates it. Baseline 3 applies; no additional syntax or format meaning is added beyond the schema.

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?

States a concrete verb and resource: 'Index a file or directory (recursive)', with the recursive scope made explicit. It does not differentiate itself from siblings such as index_status or add_index_root, but the operation itself is unambiguous.

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 implied rather than stated; there is no explicit when-to-use or when-not-to-use. The clause 'paths are restricted to ... existing roots' hints at a prerequisite (a root must exist first, presumably via add_index_root) and that index_status could be used to check progress, but neither is stated.

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