Skip to main content
Glama
blas0

rev-eng-cursor-regex-mcp

by blas0

Clear Index

index.clear
Destructive

Clears cached index data for a workspace to resolve stale or corrupt local index state. Choose overlay to drop only mutable layer or all for entire cache.

Instructions

Delete cached index data for a workspace. Use this only to recover from stale or corrupt local index state.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
scopeYesChoose `overlay` to drop only the mutable layer or `all` to remove the entire local cache.
workspaceRootNoAbsolute workspace root whose cache should be cleared. Defaults to the server workspace.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
elapsedMsYes
storageDirYes
clearedScopeYes
removedPathsYes
Behavior4/5

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

Annotations already declare destructiveHint: true, so description's disclosure of deletion is consistent. Adds context about what is deleted (cached data) and the conditions (stale/corrupt state), going beyond the annotation flag.

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 tight sentences with no wasted words. The action and purpose are front-loaded, and every sentence serves a clear function: stating the operation and when to use it.

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

Completeness5/5

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

Given the simple destructive action, the description is fully sufficient. Annotations cover safety context, schema covers parameters, and an output schema exists for return values. No further context needed.

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?

Schema description coverage is 100% and the schema already provides clear descriptions for both parameters (scope enum and workspaceRoot). The description adds no additional parameter-level meaning, so baseline 3 is appropriate.

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?

Clearly states the verb 'delete' and resource 'cached index data' for a workspace. Provides specific use case ('recover from stale or corrupt local index state') which distinguishes it from sibling tools like index.ensure or index.status.

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?

Explicitly says 'Use this only to recover from stale or corrupt local index state' which gives clear context. Lacks explicit exclusions or alternatives, but the conditional is strong enough to guide appropriate 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/blas0/rev-eng-cursor-regex-mcp'

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