update_metric_threshold
Adjust the threshold for a code quality metric in a DeepSource project to tighten or relax standards.
Instructions
Update the threshold for a specific 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>",
"metricKey": "<metricKey>"
},
"name": "update_metric_threshold"
}
}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 | |
| metricKey | Yes | Context key for the metric | |
| thresholdValue | No | New threshold value, or null to remove |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| projectKey | Yes | ||
| metricShortcode | Yes | ||
| metricKey | Yes | ||
| thresholdValue | No | ||
| message | Yes | ||
| next_steps | Yes |