smart_score
Recalculate, sync, diagnose, and optimize project health scores across task completion, deployment readiness, architecture compliance, security posture, and code quality components.
Instructions
Central coordination for project health scoring system - recalculate, sync, diagnose, optimize, and reset scores across all MCP tools
Input Schema
Name | Required | Description | Default |
---|---|---|---|
analysisMode | No | Method for weight optimization (for optimize_weights operation) | current_state |
checkDataFreshness | No | Validate data freshness across tools (for diagnose_scores operation) | |
component | No | Score component to reset (for reset_scores operation) | all |
components | No | Score components to recalculate (for recalculate_scores operation) | |
customWeights | No | Custom weight overrides (for optimize_weights operation) | |
forceUpdate | No | Force update even if data is fresh | |
includeHistory | No | Include score history analysis (for diagnose_scores operation) | |
intentId | No | Intent ID to get score trends for (for get_intent_scores operation) | |
operation | Yes | Smart scoring operation to perform | |
preserveHistory | No | Preserve score history in backup (for reset_scores operation) | |
previewOnly | No | Preview changes without applying (for optimize_weights operation) | |
projectPath | Yes | Path to project directory | |
rebalanceWeights | No | Recalculate optimal scoring weights (for sync_scores operation) | |
recalculateAfterReset | No | Immediately recalculate after reset (for reset_scores operation) | |
suggestImprovements | No | Provide score improvement suggestions (for diagnose_scores operation) | |
todoPath | No | Path to TODO.md file (for sync_scores operation) | TODO.md |
triggerTools | No | Tools to trigger for fresh data (for sync_scores operation) | |
updateSources | No | Trigger source tool updates before recalculating |
Input Schema (JSON Schema)
{
"properties": {
"analysisMode": {
"default": "current_state",
"description": "Method for weight optimization (for optimize_weights operation)",
"enum": [
"current_state",
"historical_data",
"project_type"
],
"type": "string"
},
"checkDataFreshness": {
"default": true,
"description": "Validate data freshness across tools (for diagnose_scores operation)",
"type": "boolean"
},
"component": {
"default": "all",
"description": "Score component to reset (for reset_scores operation)",
"enum": [
"task_completion",
"deployment_readiness",
"architecture_compliance",
"security_posture",
"code_quality",
"all"
],
"type": "string"
},
"components": {
"default": [
"all"
],
"description": "Score components to recalculate (for recalculate_scores operation)",
"items": {
"enum": [
"task_completion",
"deployment_readiness",
"architecture_compliance",
"security_posture",
"code_quality",
"all"
],
"type": "string"
},
"type": "array"
},
"customWeights": {
"description": "Custom weight overrides (for optimize_weights operation)",
"properties": {
"architectureCompliance": {
"maximum": 1,
"minimum": 0,
"type": "number"
},
"codeQuality": {
"maximum": 1,
"minimum": 0,
"type": "number"
},
"deploymentReadiness": {
"maximum": 1,
"minimum": 0,
"type": "number"
},
"securityPosture": {
"maximum": 1,
"minimum": 0,
"type": "number"
},
"taskCompletion": {
"maximum": 1,
"minimum": 0,
"type": "number"
}
},
"type": "object"
},
"forceUpdate": {
"default": false,
"description": "Force update even if data is fresh",
"type": "boolean"
},
"includeHistory": {
"default": true,
"description": "Include score history analysis (for diagnose_scores operation)",
"type": "boolean"
},
"intentId": {
"description": "Intent ID to get score trends for (for get_intent_scores operation)",
"type": "string"
},
"operation": {
"description": "Smart scoring operation to perform",
"enum": [
"recalculate_scores",
"sync_scores",
"diagnose_scores",
"optimize_weights",
"reset_scores",
"get_score_trends",
"get_intent_scores"
],
"type": "string"
},
"preserveHistory": {
"default": true,
"description": "Preserve score history in backup (for reset_scores operation)",
"type": "boolean"
},
"previewOnly": {
"default": false,
"description": "Preview changes without applying (for optimize_weights operation)",
"type": "boolean"
},
"projectPath": {
"description": "Path to project directory",
"type": "string"
},
"rebalanceWeights": {
"default": false,
"description": "Recalculate optimal scoring weights (for sync_scores operation)",
"type": "boolean"
},
"recalculateAfterReset": {
"default": true,
"description": "Immediately recalculate after reset (for reset_scores operation)",
"type": "boolean"
},
"suggestImprovements": {
"default": true,
"description": "Provide score improvement suggestions (for diagnose_scores operation)",
"type": "boolean"
},
"todoPath": {
"default": "TODO.md",
"description": "Path to TODO.md file (for sync_scores operation)",
"type": "string"
},
"triggerTools": {
"description": "Tools to trigger for fresh data (for sync_scores operation)",
"items": {
"enum": [
"manage_todo_json",
"smart_git_push",
"compare_adr_progress",
"analyze_content_security",
"validate_rules"
],
"type": "string"
},
"type": "array"
},
"updateSources": {
"default": true,
"description": "Trigger source tool updates before recalculating",
"type": "boolean"
}
},
"required": [
"operation",
"projectPath"
],
"type": "object"
}