deepsource_update_metric_threshold
Modify or remove threshold values for quality metrics in a DeepSource project, enabling precise control over pass/fail criteria per language or repository.
Instructions
Update the threshold for a specific quality metric in a DeepSource project.
This allows setting or removing threshold values that determine if a metric passes or fails. Thresholds can be set per language or for the entire repository (AGGREGATE).
Examples:
- Set a 80% line coverage threshold: metricShortcode="LCV", metricKey="AGGREGATE", thresholdValue=80
- Remove a threshold: metricShortcode="LCV", metricKey="AGGREGATE", thresholdValue=null
Input Schema
Name | Required | Description | Default |
---|---|---|---|
metricKey | Yes | The language or context key for the metric | |
metricShortcode | Yes | The shortcode of the metric to update | |
projectKey | Yes | The unique identifier for the DeepSource project | |
repositoryId | Yes | The GraphQL repository ID (get this from deepsource_quality_metrics response) | |
thresholdValue | No | The new threshold value (null to remove the threshold) |
Input Schema (JSON Schema)
You must be authenticated.
Other Tools from DeepSource MCP Server
Related Tools
- @sapientpants/deepsource-mcp-server
- @sapientpants/deepsource-mcp-server
- @sapientpants/deepsource-mcp-server
- @sapientpants/deepsource-mcp-server
- @sapientpants/deepsource-mcp-server
- @sapientpants/deepsource-mcp-server