Skip to main content
Glama
Paperscope

Paperscope

Official

add_index_root

Idempotent

Adds a directory to the persisted search index, indexes its contents recursively, and configures the daemon to watch for changes so new or modified files stay searchable.

Instructions

Add a directory to the index (persisted). Indexes it recursively and asks the daemon to watch it for changes.

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": "add_index_root"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesAbsolute path to a directory to add to (or remove from) the index.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare this is a non-read-only, non-destructive, idempotent, closed-world mutation. The description adds real value beyond that: the change is persisted, indexing is recursive, and the daemon is asked to watch the directory for changes — concrete side effects an agent cannot infer from the annotations alone. It stops short of stating cost/scale implications of recursive indexing or what happens if the path is later deleted.

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, front-loaded with the action and persistence, followed by the behavioral consequences. No filler, nothing that could be cut without losing meaning.

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 one-parameter tool with no output schema and full annotation coverage, the description covers the essentials: persistence, recursion, and background watching. Only minor gaps remain, such as error conditions or behavior on already-indexed paths.

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?

Single required parameter with 100% schema description coverage, so the schema already carries path semantics (absolute directory path). The description adds only the word "directory," which is already implied by the tool name; baseline 3 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?

States a specific verb and resource ("Add a directory to the index") with the parenthetical "(persisted)" clarifying durability. It does not name or contrast with the sibling remove_index_root or index_documents, so differentiation is left to the agent, but the core purpose 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 by the verb — an agent knows to call this when it wants a directory indexed — but there is no explicit when-to-use, no prerequisites (permissions, daemon availability), and no mention of when to prefer index_documents or remove_index_root instead.

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