Skip to main content
Glama
fanfan14543

dsh-local-rag

by fanfan14543

rag_index

Incrementally update the local search index by rebuilding only changed content and skipping unchanged files. Optionally limit updates to one source type, such as session, doc, skill, or persona.

Instructions

增量更新索引:只重建有改动的内容,没变的文件跳过。首次建库或改动很多时用命令行跑全量更快。不传 source 则更新全部四类来源。

Input Schema

NameRequiredDescriptionDefault
sourceNo只更新某一类来源,可选 session / doc / skill / persona。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.6/5.0
Behavior4/5

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

With no annotations, the description does real work: it discloses incremental rebuild behavior, skipping unchanged files, and the default that omitting source updates all four source types. It does not mention permissions, expected duration, or side effects beyond index mutation, but it covers the core behavior well.

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, no filler, and the incremental behavior is front-loaded. Each sentence adds operational value: behavior, alternative, and default scope.

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 indexing tool with full schema coverage and no output schema, the description covers the essential decision points: incremental update, full-rebuild alternative, and default scope. It could say more about mutation side effects or permissions, but nothing critical is missing.

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 coverage is 100%, so the baseline is 3, but the description adds useful semantics beyond the schema by stating that omitting source updates all four source categories. That default behavior is not fully conveyed by the schema alone.

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

Purpose5/5

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

The description states a specific verb and resource: incrementally updating the RAG index. It immediately clarifies the key behavior—only changed content is rebuilt, unchanged files are skipped—and distinguishes this from a full CLI rebuild, which is enough to separate it from the read-oriented siblings rag_open, rag_stats, and rag_search.

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

Usage Guidelines5/5

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

It explicitly says when to use this tool versus an alternative: use it for incremental updates, but use the command line for initial indexing or when many files changed. That is concrete when/when-not guidance rather than implied usage.

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

Deploy Server

Other Tools