Skip to main content
Glama
Project Scope MCP Server

Project Scope MCP Server

find_dead_code

Identify unused exports and functions in a repository to reduce bundle size and improve maintainability. Run periodically to clean up legacy code.

Instructions

Identify dead code (unused exports and functions). Helps reduce bundle size and improve maintainability. Run periodically to clean up legacy code.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "path": "<path>"
    },
    "name": "find_dead_code"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesRoot path of the repository

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the entire behavioral burden. It never states that the operation is read-only/non-mutating, whether the analysis is static or heuristic (and thus prone to false positives), whether it scans the whole repository or only the given path, or how expensive it is on large repos. Only the definitional scope of "unused exports and functions" is disclosed.

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?

Three short sentences, front-loaded with the definition of what is detected, followed by benefit and cadence. The benefit clause ("reduce bundle size and improve maintainability") is mildly promotional but does convey intended use, so little is wasted.

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?

For a one-parameter analysis tool with no annotations and no output schema, the description covers what is found but not what is returned — the shape of the result (file/line list, counts, severity) is left to inference, and the caller cannot tell how to act on findings. Adequate to invoke, incomplete to interpret.

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 description coverage is 100% — the single `path` parameter is already documented as "Root path of the repository" — so the schema does the heavy lifting and the baseline of 3 applies. The description adds no meaning about path semantics, such as whether subdirectory roots are supported or how exclusions are handled.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Identify dead code (unused exports and functions)" gives a specific verb plus a parenthetical definition of the resource, so an agent knows exactly what class of finding to expect. It does not name or contrast with any sibling, but no sibling in the list covers dead-code detection, so the absence of routing is a minor gap rather than ambiguity.

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

Usage Guidelines3/5

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

"Run periodically to clean up legacy code" implies a usage context (cleanup/maintenance passes) but gives no when-not conditions, no prerequisites, and no explicit alternative for narrower analyses such as impact or structure queries. Usage is only implied, not prescribed.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.