get_code_index_stats
Get embedding statistics for a project — how many files and chunks are indexed and when.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | Project UUID |
Get embedding statistics for a project — how many files and chunks are indexed and when.
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | Project UUID |
Changes observed during successful MCP inspections.
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description adds useful behavioral context by stating what the statistics include — file/chunk counts and indexing timestamps — but does not describe permissions, rate limits, or response shape.
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 definition is a single, front-loaded sentence with no wasted words. The resource and scope appear immediately, followed by the specific statistics returned.
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?
For a simple, read-only, single-parameter statistics tool with full schema coverage and safety annotations, the description is nearly complete. It explains what the stats represent, though it does not mention whether results are scoped to the latest build or include historical indexing events — a minor gap for an agent interpreting the output.
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?
There is only one parameter, project_id, and the schema already documents it at 100% coverage as a project UUID. The description does not add any syntax, format, or selection guidance beyond what the schema provides, so the baseline score of 3 is appropriate.
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 states a specific verb and resource — getting embedding statistics for a project — and clarifies exactly which statistics are returned: file count, chunk count, and indexing timestamps. It is clear enough to distinguish this from index_project_code or clear_code_index, but it does not explicitly name those siblings or state the contrast.
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?
Usage is only implied: an agent can infer this tool is for inspecting index status, likely before or after indexing or searching. However, the description gives no explicit when-to-use guidance, prerequisites, or comparison with alternatives such as index_project_code, clear_code_index, or search_project_code.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Add one secure layer between your agents and this server.