Skip to main content
Glama
syaryn
by syaryn

index_directory

Recursively indexes text files in a directory, clearing and rebuilding the index for Japanese full-text search.

Instructions

Recursively indexes all text files in the given root_path.

WARNING: This will remove all existing index entries that start with this root_path before re-indexing.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
root_pathYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations, the description discloses the destructive behavior (removing existing index entries). It does not cover other behavioral aspects like file permissions or performance impact, but the key side effect is mentioned.

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?

The description is two sentences: one for purpose and one for warning. Both are essential and concise, with no redundant information.

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?

The tool has an output schema, so not describing output is acceptable. The description covers the operation and key side effect, but could mention file types or index format for completeness.

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?

The only parameter, root_path, has no description in the schema (0% coverage). The description adds 'given root_path' but no further details like format or existence requirements, partially compensating but not fully.

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 clearly states the purpose: recursively indexing all text files in a root_path. This distinguishes it from sibling tools like delete_index or search_documents.

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 description includes a warning about removing existing index entries before re-indexing, which guides usage context. It does not explicitly compare to alternatives but implies careful use.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/syaryn/mcp-jp-fts'

If you have feedback or need assistance with the MCP directory API, please join our Discord server