Validate algorithmic complexity
validate_complexityEstimate code time and space complexity via static loop analysis and comment annotations to identify performance bottlenecks before submission.
Instructions
Estimate time and space complexity of code through static loop analysis and comment annotations.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"code": "<code>"
},
"name": "validate_complexity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Source code to analyze | |
| language | No | Language (cpp, python, java, etc.) |