Skip to main content
Glama

find_dead_code

Identify unused functions, classes, and imports in your codebase to eliminate dead code.

Instructions

Kullanılmayan (dead) kodu tespit eder.

Args: path: Proje kök dizini file: Belirli bir dosya (None ise tüm proje)

Returns: Kullanılmayan fonksiyon, sınıf ve import listesi

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
fileNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

No annotations provided, and the description does not disclose behavioral aspects such as whether the tool is read-only, destructive, requires permissions, or any side effects. For a static analysis tool, this is minimal transparency.

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 short and includes structured Args and Returns sections. It is efficient and front-loaded with the core purpose in the first sentence.

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?

The description covers the basic purpose and parameters, but lacks context on what constitutes 'dead code', scanning behavior, or how results are structured. Given the output schema exists, the description doesn't need to detail returns, but more context on usage would improve completeness.

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 0%, so the description partially compensates by explaining 'path' as project root directory and 'file' as a specific file or None for whole project. However, it lacks details on expected formats or constraints.

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 clearly states the tool detects unused (dead) code, using a specific verb and resource. It distinguishes from sibling tools like detect_code_smells or analyze_impact, which address different concerns.

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

Usage Guidelines2/5

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

No guidance on when to use this tool over alternatives. Does not mention prerequisites, limitations, or situations where other tools would be more appropriate.

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/iamseyhmus7/mcp-codebase-oracle'

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