Skip to main content
Glama

kage_refresh

Rebuild repo indexes, code graph, memory graph, metrics, and stale-memory metadata after meaningful file changes. Use before PR checks; non-default branches skip metadata rewrites unless force is set.

Instructions

Rebuild repo indexes, code graph, memory graph, metrics, and stale-memory metadata. Agents should run this after meaningful file/content changes before PR checks; push-only or same-tree commits do not need another refresh. On non-default git branches metadata-only packet rewrites are skipped (quiet refresh) to avoid merge conflicts; pass force to persist them anyway.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_dirYes
forceNoPersist packet metadata rewrites even on a non-default branch
Behavior4/5

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

With no annotations, the description carries full burden. It discloses critical behaviors: quiet refresh on non-default branches, force flag to override, and conditions for skipping. It lacks mention of authentication or state mutation, but covers the main behavioral nuances.

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 fluff. The first sentence states the purpose, and the second gives usage and conditional behavior. All information is essential and front-loaded.

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?

Given 2 parameters, no output schema, and no annotations, the description covers purpose, usage, parameter behavior, and branch logic. It could mention error conditions or what happens on success, but it is largely complete for decision-making.

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 coverage is 50% (only force has a description). The description adds behavioral context for force but only implies project_dir's role via 'rebuild repo indexes'. It does not fully compensate for the missing schema description of project_dir.

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 uses the specific verb 'Rebuild' and lists exact resources: repo indexes, code graph, memory graph, metrics, and stale-memory metadata. This clearly defines the tool's function and distinguishes it from sibling tools that are query/action focused.

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 explicitly states when to use (after meaningful changes before PR checks) and when not needed (push-only/same-tree commits). However, it does not name alternative sibling tools for comparison, which would strengthen guidance.

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/kage-core/Kage'

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