Skip to main content
Glama

kimi_cache_invalidate

Invalidate session cache entries to force fresh analysis. Use when cached sessions are stale and you need updated codebase context.

Instructions

Manually invalidate session cache entries. Use when you want to force fresh analysis or if you suspect cached sessions are stale.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
work_dirNoSpecific working directory to invalidate. If not provided, ALL caches are cleared.
Behavior2/5

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

No annotations are provided, so the description must carry the full behavioral burden. It only states the basic purpose and one use case, but does not disclose side effects, permissions, or what 'invalidate' actually means (e.g., deletion vs marking).

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 sentences with no unnecessary words. The action and usage context are front-loaded, making it efficient for an AI agent to parse.

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?

The tool is simple (one optional parameter, no output schema), and the description covers the basic purpose and parameter behavior. However, it lacks information about the return value or what 'invalidate' entails operationally, which could be improved.

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 description coverage is 100%; the description adds value by explaining the default behavior when 'work_dir' is not provided (ALL caches cleared). This goes beyond the schema's own description.

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 specifies the verb 'invalidate' and the resource 'session cache entries', and provides a reason for use. Distinguishes from sibling tools like kimi_list_sessions and kimi_analyze because it focuses on cache invalidation.

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 states when to use: 'force fresh analysis' or 'suspect stale sessions'. Does not mention when not to use or explicitly reference sibling alternatives, but the context is clear.

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/howardpen9/kimi-code-mcp'

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