Skip to main content
Glama
Jeon-byeong-yoon

code-smell-detection-mcp

run_metric_analysis

Run metric analysis on source code or AST to detect code smells and save results.

Instructions

CodeVi backend에 metric analysis 실행을 요청하고 결과를 저장한다.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
astDataNosourceType=ast_json일 때 AST JSON
filePathNo분석 대상 파일 경로
languageNosourceType=source_code일 때 언어
sourceCodeNosourceType=source_code일 때 소스 코드
sourceTypeYes입력 소스 형태
analysisTypeYes실행할 분석 종류
teamProjectIdNoCodeVi team project ID (생략 시 METRICS_DEFAULT_TEAM_PROJECT_ID 사용)
Behavior2/5

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

With no annotations, the description carries the full burden of disclosing behavioral traits. It mentions that results are stored, implying a side effect, but it does not explain permissions, execution duration, failure handling, or whether the operation is asynchronous. Minimal side-effect disclosure is present but insufficient for a run/execute 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?

The description is a single sentence, direct and free of redundant details. It communicates the core action and resource clearly. While it is terse for a tool with 7 parameters, the sentence earns its place by stating purpose concisely.

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

Completeness2/5

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

Given the tool's complexity (7 parameters, nested objects, no output schema) and the absence of annotations, the description is not complete enough. It omits information about return values, side effects, and when to use this tool relative to other analysis tools. The description leaves significant gaps for an agent to safely invoke the tool.

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?

All 7 parameters have schema descriptions (100% coverage), so the baseline is 3. The description itself adds no parameter semantics beyond what the schema provides, and it does not clarify interdependencies like how sourceType determines whether astData or sourceCode is relevant. The schema does the heavy lifting.

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 clearly states the tool's function: requesting the CodeVi backend to execute metric analysis and store the results. This distinguishes it from sibling get/list tools and other analysis tools. The verb 'run' is implicit in the tool name, and the resource is explicitly 'metric analysis'.

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?

The description provides no guidance on when to use this tool versus alternatives. It does not mention prerequisites, exclusions, or how it relates to sibling tools like get_metric_analysis or analyze_python_smells. There is no 'use this when' context.

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