Skip to main content
Glama

knowledge_index_path

Index user-selected local text, code, Markdown, Office documents or PDFs (file or directory) into the device's encrypted knowledge store. Supports UTF-8 files, DOCX, XLSX, PPTX and embedded-text PDFs using built-in extraction; scanned image-only PDFs need OCR. New and changed files are indexed with source citations, old versions hidden; only the existing account call/device/concurrency entitlements apply. No cloud index or new port.

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

Input Schema

NameRequiredDescriptionDefault
pathYes
projectNo
device_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.4/5.0
Behavior4/5

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

Annotations only flag mutation and closed-world; the description adds real behavior: files go to an encrypted local store, new/changed files are re-indexed with source citations, old versions are hidden rather than deleted, and no cloud index or new network port is opened. The remaining gap is failure behavior — what happens on unsupported encodings or missing entitlements — and whether indexing is synchronous.

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?

Two information-dense sentences, front-loaded with what gets indexed and followed by format support and side effects; no filler. The entitlement clause ('only the existing account call/device/concurrency entitlements apply') is slightly jargon-heavy but does convey a real constraint.

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?

For a three-parameter mutating tool with no output schema and zero schema description coverage, the definition covers purpose, formats, and side effects well but leaves two parameters and the success/failure result shape unexplained. Adequate but with clear gaps for correct invocation.

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

Parameters2/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 parameter meaning, and it only implies 'path' via 'file or directory'. The 'project' and 'device_id' parameters are never explained — an agent cannot tell whether omitting them targets the paired device or requires explicit selection. This is a significant gap the description does not compensate for.

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?

Uses a specific verb ('Index') plus a concrete resource ('local text, code, Markdown, Office documents or PDFs') and names the destination ('device's encrypted knowledge store'), with the file-or-directory scope made explicit. It is clear what the tool does, but it never names a sibling (e.g. knowledge_watch_add or knowledge_search) to sharpen the boundary, so it stops short of a 5.

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?

Implied usage is obvious (bring files into the store so they can later be searched), and it states a useful when-not condition: 'scanned image-only PDFs need OCR'. However, there is no explicit guidance on choosing this over knowledge_watch_add, knowledge_search, or memory_ingest, and no stated prerequisite about the account/device entitlements beyond a passing mention.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources