Skip to main content
Glama

scan_dead_code

Scan a Python repository to identify dead code and dependency issues without modifying files. Returns a human-readable report so you can fix problems safely.

Instructions

Scan a Python repository for real dead code (vulture) and dependency issues (deptry). Read-only — never modifies anything. Returns a human-readable list of findings, or "No real candidates found."

repo_path: path to the repository to scan (must contain a pyproject.toml for the dependency checks to run; dead-code scanning works regardless). min_confidence: vulture's own confidence threshold (0-100). Lower values surface more candidates but more false positives.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
repo_pathNo.
min_confidenceNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.1.2

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations present, the description carries full burden and does so well: it states the tool is read-only, never modifies anything, and describes the exact output (human-readable findings or 'No real candidates found.'). It also discloses the pyproject.toml dependency for deptry and explains the confidence threshold's trade-off. No annotation contradiction.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is compact—three sentences for behavior plus two parameter explanations—and all content earns its place, with read-only status front-loaded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter tool with an output schema and a single sibling, this description covers input semantics, prerequisites, behavioral safety, and result format. The only omitted piece is explicit sibling differentiation, which belongs to usage guidelines. Combined with schema and output schema, an agent has everything needed to invoke it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema has 0% description coverage, and the description fills in all of it: repo_path is the path to the repository and must contain pyproject.toml for dependency checks, and min_confidence maps to vulture's 0-100 threshold with a false-positive trade-off. This goes well beyond the parameter names and defaults.

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 opens with a specific verb-resource pair: scan a Python repository, and names the two tools (vulture, deptry) and the two classes of findings (dead code, dependency issues). This clearly distinguishes it from the sibling propose_removal_pr, whose action is proposing a PR, not scanning.

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?

No explicit guidance on when to use this tool versus propose_removal_pr, nor any when-not conditions. However, the read-only declaration and human-readable output imply this is an analysis step, and the requirement about pyproject.toml provides some context. This makes usage predictable but not explicitly ruled for alternatives.

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/pamela-0/safe-fix-mcp'

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