Index source maintainability
code_maintainability-indexBuild a structural AST from a caller-supplied JavaScript, TypeScript, Python, or Go snippet, or from a caller-supplied AST, and score cyclomatic complexity, cognitive load, nesting depth, and duplicated function structure. The snippet is not executed or stored. Price $0.04 USDC. POST /api/v1/code/maintainability-index. Unpaid calls return 402 and do not run.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "code_maintainability-index"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ast | No | ||
| source | No | ||
| language | No |