Skip to main content
Glama
Jeon-byeong-yoon

code-smell-detection-mcp

analyze_python_smells

Detects code smells in Python projects using static analysis and returns categorized JSON results with summaries.

Instructions

Python 프로젝트를 advanced_pyexamine으로 분석해 smell 결과를 JSON으로 반환한다. cli 모드는 로컬 python + advanced_pyexamine 설치가 필요한 개발용 도구다.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
onlyNocomma-separated detector names (ex: "long_method,data_clumps")
projectPathYes분석 대상 Python project path
summaryOnlyNotrue이면 smellGroups 생략, summary만 반환
limitPerGroupNogroup당 최대 반환 항목 수
Behavior2/5

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

With no annotations, the description must carry the burden of disclosing behavior. It notes the cli mode requires local Python and advanced_pyexamine installation, but does not state whether the analysis is read-only, may modify files, or has other side effects. This is insufficient for an analysis tool.

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

Conciseness4/5

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

Two sentences, no fluff. The main function is front-loaded, and the cli prerequisite is an important behavioral note. It's appropriately compact.

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

Completeness3/5

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

For a tool with 4 parameters and no output schema, the description gives a high-level overview and a prerequisite, but lacks details about result structure or workflow integration. It's adequate for basic use but not fully complete given the sibling complexity.

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

Parameters3/5

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

The input schema covers 100% of parameters with descriptions, and the description adds no parameter-specific semantics beyond the schema. Baseline of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states it analyzes a Python project using advanced_pyexamine and returns smell results as JSON. The verb 'analyze' distinguishes it from sibling 'get' tools that retrieve existing results, though it doesn't explicitly name alternatives.

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

Usage Guidelines2/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 siblings like get_latest_pyexamine_result or get_smells_by_file. The description implies it's for running a new analysis but lacks clear context and exclusions.

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/Jeon-byeong-yoon/code-smell-detection-mcp'

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