Skip to main content
Glama
UrbanDiver

Local DeepWiki MCP Server

by UrbanDiver

detect_bugs

Read-onlyIdempotent

Scan a repository for potential bugs using AST pattern matching across 10 languages. Detects issues like mutable default arguments, bare excepts, unreachable code, and empty catch blocks.

Instructions

Scan a repository for potential bugs using AST pattern matching. Detects bug patterns across Python, JavaScript, TypeScript, Go, Rust, Java, C, C++, C#, and Kotlin including mutable default arguments, bare excepts, unreachable code, empty catch blocks, missing breaks, and more. Set enrich=true for LLM verification.

No prior indexing required.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
repo_pathYesPath to the repository to scan
min_confidenceNoMinimum confidence threshold (default: medium)
languagesNoFilter to specific languages
enrichNoUse LLM to verify and explain top findings (default: false)
enrich_top_nNoMax findings to send to LLM (default: 10, max: 50)
exclude_testsNoExclude test files (default: true)
file_pathNoScope to a single file (relative path)
top_nNoMaximum findings to return (default: 50, max: 500)
Behavior5/5

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

Adds significant context beyond annotations: describes AST pattern matching mechanism, lists specific bug patterns, and mentions LLM verification option. No contradiction with readOnlyHint.

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?

Three concise sentences: purpose, scope/details, and a key usage tip. Front-loaded with essential information.

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

Completeness4/5

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

Covers purpose, languages, main feature (enrich), and a setup requirement. Could briefly mention output format but overall adequate given no output schema.

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

Parameters4/5

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

Schema covers all 8 parameters; description adds clarity for the 'enrich' parameter beyond its schema description, enhancing agent understanding.

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?

Clearly states the tool scans repositories for bugs using AST pattern matching, naming specific languages and bug patterns, which distinguishes it from sibling tools like detect_secrets or analyze_architecture.

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

Usage Guidelines4/5

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

Provides useful guidance like 'Set enrich=true for LLM verification' and 'No prior indexing required', but lacks explicit when-not-to-use or comparison to alternative tools.

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/UrbanDiver/local-deepwiki-mcp'

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