update_metric_setting
Update quality metric settings for a DeepSource project by specifying metric code and toggling report and threshold enforcement.
Instructions
Update the settings for a quality metric
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": {
"projectKey": "<projectKey>",
"repositoryId": "<repositoryId>",
"metricShortcode": "<metricShortcode>",
"isReported": "<isReported>",
"isThresholdEnforced": "<isThresholdEnforced>"
},
"name": "update_metric_setting"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectKey | Yes | DeepSource project key to identify the project | |
| repositoryId | Yes | Repository GraphQL ID | |
| metricShortcode | Yes | Code for the metric to update | |
| isReported | Yes | Whether the metric should be reported | |
| isThresholdEnforced | Yes | Whether the threshold should be enforced |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| projectKey | Yes | ||
| metricShortcode | Yes | ||
| settings | Yes | ||
| message | Yes | ||
| next_steps | Yes |