Verify dead code with an LLM
verify_dead_codeVerify suspected dead code findings with an LLM to cut false positives before deleting unused functions, classes, imports, or variables after a static analysis scan.
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, analyze works (5 calls/day) and the local map tools (change_map and the graph_* tools) work with no limit. The local CLI needs no key: skylos verify <file> and skylos agent install-hooks.
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": "verify_dead_code"
}
}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 |