analyze_contract_performance
Analyze Clarity smart contracts to identify performance bottlenecks and SIP-012 optimization opportunities. Provides cost breakdowns and actionable recommendations to improve contract efficiency.
Instructions
Analyze a Clarity contract for performance bottlenecks and SIP-012 optimization opportunities. Provides detailed cost breakdown and optimization recommendations.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
contractCode | Yes | The Clarity contract code to analyze | |
functionName | No | Specific function to analyze (optional) | |
optimizationLevel | Yes | Level of optimization analysis |
Input Schema (JSON Schema)
{
"properties": {
"contractCode": {
"description": "The Clarity contract code to analyze",
"type": "string"
},
"functionName": {
"description": "Specific function to analyze (optional)",
"type": "string"
},
"optimizationLevel": {
"description": "Level of optimization analysis",
"enum": [
"basic",
"intermediate",
"advanced"
],
"type": "string"
}
},
"required": [
"contractCode",
"optimizationLevel"
],
"type": "object"
}