Skip to main content
Glama

index_status

Check if a repository's semantic index is current, stale, or missing. If stale, it shows how many commits behind, so you can re-index before relying on code search.

Instructions

Report whether a repo's semantic index is fresh, stale, or absent.

Freshness is keyed to the git commit the index was built from — if HEAD has moved on, the index is "stale" and reports how many commits behind. Check this before leaning on semantic results (code_search / mr_review_context): if state is "stale" or "model_mismatch", offer to index_repo(root) first.

Args: root: Absolute path to the repository.

Returns: {state: absent|fresh|stale|model_mismatch|unknown, root, chunks?, indexed_at?, indexed_sha?, current_sha?, commits_behind?, reason?} or {"error": "..."} if the semantic extra is not installed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rootYes
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it explains freshness is keyed to the git commit, what 'stale' means, and the error condition when the semantic extra is not installed. It does not define 'model_mismatch' or discuss resource implications, which leaves a small transparency gap.

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?

Every sentence earns its place: purpose, freshness semantics, actionable usage guidance, then args and returns. It is front-loaded with the core question and uses clear formatting for skimming.

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?

There is no output schema, but the description lists all return fields (state, root, chunks?, indexed_at?, etc.) and the error form. Combined with usage guidance and error handling, a one-parameter status tool is fully covered.

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?

The input schema only declares root as a string, so the description's 'Absolute path to the repository' adds meaningful semantics. Since schema coverage is 0%, this compensation is important and mostly sufficient for a single parameter.

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 opens with a specific verb and resource: 'Report whether a repo's semantic index is fresh, stale, or absent.' It clearly distinguishes itself from sibling tools by framing it as a pre-flight check before using code_search or mr_review_context, and contrasts with index_repo which performs the indexing.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explicitly says 'Check this before leaning on semantic results (code_search / mr_review_context)' and instructs the agent to 'offer to index_repo(root) first' if state is stale or model_mismatch. This gives direct when-to-use guidance and names the relevant alternatives.

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/SurajKGoyal/myopic'

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