Skip to main content
Glama

DeepSource MCP Server

by sapientpants

deepsource_update_metric_setting

Configure reporting and enforcement of quality metrics in DeepSource projects. Enable or disable metric display in the UI/API and set thresholds to fail checks when unmet.

Instructions

Update the settings for a quality metric in a DeepSource project.

This allows configuring how metrics are used in the project:

  • Enable/disable reporting the metric in the UI and API
  • Enable/disable enforcing thresholds (failing checks when thresholds aren't met)

Example:

  • Enable reporting and enforce thresholds: isReported=true, isThresholdEnforced=true
  • Only report but don't enforce: isReported=true, isThresholdEnforced=false
  • Disable completely: isReported=false, isThresholdEnforced=false

Input Schema

NameRequiredDescriptionDefault
isReportedYesWhether the metric should be reported
isThresholdEnforcedYesWhether the threshold should be enforced (can fail checks)
metricShortcodeYesThe shortcode of the metric to update
projectKeyYesThe unique identifier for the DeepSource project
repositoryIdYesThe GraphQL repository ID (get this from deepsource_quality_metrics response)

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "isReported": { "description": "Whether the metric should be reported", "type": "boolean" }, "isThresholdEnforced": { "description": "Whether the threshold should be enforced (can fail checks)", "type": "boolean" }, "metricShortcode": { "description": "The shortcode of the metric to update", "enum": [ "LCV", "BCV", "DCV", "DDP", "SCV", "TCV", "CMP" ], "type": "string" }, "projectKey": { "description": "The unique identifier for the DeepSource project", "type": "string" }, "repositoryId": { "description": "The GraphQL repository ID (get this from deepsource_quality_metrics response)", "type": "string" } }, "required": [ "projectKey", "repositoryId", "metricShortcode", "isReported", "isThresholdEnforced" ], "type": "object" }

You must be authenticated.

Other Tools from DeepSource MCP Server

Related Tools

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/sapientpants/deepsource-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server