Turn code metrics on or off
statica_metric_setEnable or disable individual code metrics by key for a project; unnamed metrics retain their state, and changes affect all users of the server project—confirm before applying.
Instructions
Turn individual code metrics on or off by key (for example FUCYC). Metrics not named keep their state. Applies to everyone using the server project; confirm with the user first.
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": {
"projectDir": "<projectDir>"
},
"name": "statica_metric_set"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| on | No | Metric keys to turn on. | |
| off | No | Metric keys to turn off. | |
| projectDir | Yes | Absolute path of the project directory being analyzed (usually the session's working directory). |