dev_complexity
Code complexity analyzer (cyclomatic complexity per function) — Offline McCabe cyclomatic complexity for a source file: every function and method with line, length, complexity, radon-style rank A-F, max nesting depth and parameter count, plus hotspots with refactoring hints, rank counts, average/max and a verdict SIMPLE / MODERATE / COMPLEX. Supports JavaScript/TypeScript, Python, Go, Java, Kotlin, C/C++, C#, PHP, Rust and Swift (auto-detected). Params: code (source text) or url (raw file or GitHub blob link), language (optional hint). Max 200,000 chars; no code is executed. Price: $0.004 USDC (Base, via x402).
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": "dev_complexity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | e.g. function f(x){ if (x > 1 && x < 9) { return 1 } return x ? 2 : 3 } |