calculate_code_metrics
Analyze source files to compute Halstead volume, maintainability index, cyclomatic complexity, and SLOC density, providing objective code quality metrics for audits and maintenance decisions.
Instructions
Computes Halstead volume, maintainability index, cyclomatic complexity, and SLOC density metrics across source files. (0.01 USDC on Base L2)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| payload | Yes | Input parameters or JSON string payload for the tool execution | |
| paymentSignature | No | Base L2 USDC micropayment signature or transaction hash for x402 settlement |