clear_cache
Clear cached parse results for a project to free memory and ensure up-to-date code analysis.
Instructions
Clear all cached parse results for a project
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectRoot | Yes | Project root directory |
Clear cached parse results for a project to free memory and ensure up-to-date code analysis.
Clear all cached parse results for a project
| Name | Required | Description | Default |
|---|---|---|---|
| projectRoot | Yes | Project root directory |
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description shoulders the burden of behavioral disclosure. It states the tool clears cached data, but does not mention if the operation is reversible, how it affects concurrent operations, or any side effects like performance impact. A clear destructive operation should at least note irreversibility.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single sentence with no redundant information. It is appropriately sized and front-loaded with the core purpose.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's simplicity (one parameter, no output schema), the description is moderately complete. It identifies the action and resource but lacks context about consequences, failure modes, or best practices, which would be helpful for an agent to invoke correctly.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The input schema provides a full description of the single required parameter (projectRoot). The description adds no additional meaning beyond what is already in the schema, so it meets the baseline for high schema coverage.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the action (clear) and the resource (cached parse results) with a specific scope (for a project). It distinguishes from sibling tools like clear_session_cache and get_cache_stats by mentioning 'all cached parse results' and 'for a project'.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No guidelines are provided about when to use this tool versus alternatives such as clear_session_cache or other cache management tools. The description does not include any prerequisites, caveats, or exclusions.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/achatainga/mcp-code-context'
If you have feedback or need assistance with the MCP directory API, please join our Discord server