Verify dead code with an LLM
verify_dead_codeReview suspected unused code candidates with an LLM after static analysis to reduce false positives before deleting dead code; requires SKYLOS_API_KEY and provider credentials.
Instructions
Ask an LLM to review selected unused function, class, import and variable candidates, with its reasoning.
Use it after analyze when you need fewer false positives before
deleting code. Sends code snippets and search results to the chosen
model provider, so it needs the skylos[llm] extra and provider
configuration, including credentials when required. Candidates outside
the review limits, or whose use remains uncertain, can remain
unverified. Does not edit files.
Refuses to run when the static analysis was incomplete.
Requires SKYLOS_API_KEY: this tool returns an authentication error unless the MCP server is started with SKYLOS_API_KEY set. Without a key only analyze works (5 calls/day). The local CLI needs no key: skylos verify <file> and skylos agent install-hooks.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Directory or file to scan. A relative path resolves against the MCP server's working directory. | |
| model | No | LLM model name passed to the provider (e.g. gpt-4.1 or a Claude model). Configure the provider's credentials in the MCP server's environment when required by that provider. | gpt-4.1 |
| confidence | No | Minimum confidence (0-100) for dead-code findings. Higher values report fewer, surer candidates; 60 is the CLI default. | |
| max_verify | No | Maximum findings in the main LLM verification pass. Entry discovery, prefiltering and challenges can make additional model calls. | |
| max_challenge | No | Maximum number of surviving findings the model re-checks in a second pass. | |
| exclude_folders | No | Extra folder names to skip, comma-separated (e.g. "migrations,scripts"). Added to the default excludes. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |