Skip to main content
Glama
charliemtnez

ghost-inspector-mcp

by charliemtnez

Ghost Inspector: who imports each module

gi_module_usage
Read-only

Identify which tests break when editing a module by tracing import chains. Flags dead, stale, and vacuous tests that silently pass.

Instructions

Answers the one question the API cannot: if I edit this module, which tests break? Builds the reverse index of execute steps — for every imported test, its direct importers and its full transitive blast radius through nested chains. Run this BEFORE editing any module.

Also surfaces three things that only appear once the index exists: import-only tests nobody imports (dead, or a test that lost its caller and is silently not running); imported tests NOT flagged import-only, which run standalone and inside their importers, so an edit changes both paths; and execute steps pointing at ids that no longer exist.

šŸ”“ It also finds vacuousTests: tests that execute no steps at all, because their definition is only execute calls and the chain bottoms out in empty modules. Those pass — nothing can fail — so the dashboard shows them green while they assert nothing, which is worse than a red test and invisible any other way. Emptying one shared module does this to every test that imports it.

This is the expensive tool. steps is absent from the test listing, so it costs one request per test in the account — a few seconds for a few hundred tests, at deliberately low concurrency because the rate limit is undisclosed. Call it once and work from the result rather than per module. A definition that cannot be read is counted in scanned.unreadable, never skipped silently, because a missing definition understates a blast radius.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
moduleNoCase-insensitive substring of a module name. Narrows the listing and names every importer instead of capping the list.
Behavior5/5

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

Despite having readOnlyHint and openWorldHint annotations, the description goes far beyond them by disclosing performance characteristics (one request per test at low concurrency), edge cases (import-only tests, dangling execute steps, vacuousTests), and error handling (unreadable definitions counted). It also surfaces surprising behaviors like vacuous tests passing silently, which is critical context.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is lengthy but densely packed with high-value information. It is front-loaded with the core purpose and then expands into important behavioral and edge-case details. The structure uses clear paragraphs and an emoji marker for emphasis, but it could potentially be tightened without losing meaning.

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?

Given the tool's complexity and lack of an output schema, the description thoroughly explains what the tool returns (reverse index, importer lists, blast radius), flags important edge cases, and provides operational guidance. It covers performance, error semantics, and even conditions that make the tool necessary, making it highly complete for an agent.

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?

The input schema has 100% coverage for the single optional 'module' parameter, including its case-insensitive substring matching and its effect on capping. The description itself adds minimal parameter-level detail beyond what the schema already documents, so a baseline score of 3 is appropriate.

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, action-oriented question - 'if I edit this module, which tests break?' - and clearly states it builds a reverse index of execute steps. It distinguishes itself from sibling tools by targeting module import relationships and blast radius, not just inventory or stale-test detection.

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 instructs to 'Run this BEFORE editing any module' and advises to 'Call it once and work from the result rather than per module.' It also warns that this is the expensive tool and explains the cost implications, giving clear usage context without needing to compare to 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/charliemtnez/ghost-inspector-mcp'

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