Skip to main content
Glama
WayneLiu519888

Test Impact Analysis MCP Server

test_recommendation

Recommends test execution order and generates minimal viable test set by analyzing code changes, using risk weight and confidence scoring to prioritize high-risk modules.

Instructions

基于代码变更智能推荐测试用例执行顺序。在 Phase 2 影响分析结果上计算推荐分, 按优先级排序测试用例,生成最小可行测试集(覆盖所有高风险模块的最少测试)。

test_recommendation(name="gh-backend") — 分析从水位到 HEAD test_recommendation(module="用户中心") — 按模块分析

推荐分 = 风险权重(h=100/m=50/l=20) × 置信度(0-100) 强烈建议(≥7000) | 建议(≥2000) | 可选(<2000)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNo仓库别名
moduleNo模块名
fromNo起始 SHA(不传=当前水位)
toNo目标 SHA(不传=远程 HEAD)
Behavior4/5

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

With no annotations, the description carries full burden. It reveals the scoring formula (risk weights × confidence), thresholds, and categorization. It does not explicitly state read-only behavior, but the recommendation nature implies no destructive actions. The behavioral context is well disclosed.

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 concise with no wasted words. It uses an effective structure: main purpose, usage examples, and formula in separate blocks. Every sentence adds information.

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?

The description assumes knowledge of 'Phase 2' without explanation. It describes output as categories and a minimal test set, but does not specify exact output structure (e.g., list of test cases with scores). Given no output schema, more detail on return format is needed.

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 coverage is 100%, baseline 3. The description adds value by giving concrete examples (e.g., name='gh-backend' for repo alias, module='用户中心' for module analysis) and explaining defaults for from/to (current watermark, remote HEAD). This enriches the schema.

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 it recommends test execution order based on code changes and Phase 2 impact analysis, generating a minimal viable test set. The examples further clarify usage with name and module, distinguishing it from sibling tools like impact_analysis and risk_assessment.

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?

The description provides explicit usage examples (name vs module) and explains the scoring formula and threshold categories. It implies that Phase 2 analysis should be done first, but does not explicitly state when not to use this tool or directly compare with all siblings.

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/WayneLiu519888/Test-Impact-Analysis-MCP'

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