Skip to main content
Glama

dead_code

Identify unused exported symbols in codebases to find cleanup targets like orphaned functions and dead interfaces, respecting Python's all for precise export tracking.

Instructions

Find exported symbols never referenced by other files. Potential cleanup targets — unused exports, orphaned functions, dead interfaces. Respects Python all for precise export tracking.

max_tokens: cap output size (default 8000) to prevent context overflow
exclude_dirs: comma-separated directory prefixes to skip
output_format: "text" (default) or "json" for structured response
include_low: include low-confidence (likely false positive) symbols (default False,
    saves ~47% tokens — ~1,300 tokens on a typical repo)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
repo_pathYes
max_tokensNo
exclude_dirsNo
output_formatNotext
include_lowNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

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/Elmoaid/TempoGraph'

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