Skip to content

DORA metrics

GitLab computes the four DORA metrics from a project’s deployments: deployment frequency, lead time for changes, time to restore service and change failure rate. dora_metrics.project and dora_metrics.group read one of them over a date range, by day, by month or as one figure, optionally for chosen environment tiers.

  • “What is the deployment frequency of project 42 this quarter?”
  • “Show the monthly change failure rate of group platform”
  • “How long did project 42 take to restore service in September?”
  • Dynamic, the default surface: call gitlab_execute_action with action set to the action’s ID, such as dora_metrics.group, and its parameters in params. gitlab_find_action finds an ID from a description of the task.
  • Meta (GITLAB_MCP_TOOL_SURFACE=meta): call gitlab_dora_metrics with action set to the action’s name, such as group, and its parameters in params.
  • Individual (GITLAB_MCP_TOOL_SURFACE=individual): call the action’s own tool, such as gitlab_get_group_dora_metrics, with its parameters as the arguments.

How many of these actions an instance serves at each tier, out of a total of 2:

  • Free: 0
  • Premium: 0
  • Ultimate: 2

Read-only actions: 2 of 2, the ones a deployment in read-only mode keeps.

The description of each action, and of each of its parameters, is the text the server serves for it on the default surface, quoted as served.

ActionIndividual
dora_metrics.groupgitlab_get_group_dora_metrics
dora_metrics.projectgitlab_get_project_dora_metrics

Get the four DORA DevOps performance metrics aggregated across a group over a date window. Returns: one time series of date/value data points for the requested metric (deployment frequency, lead time for changes, time to restore service, or change failure rate), bucketed by interval. See also: dora_metrics.project.

  • Meta-tool: gitlab_dora_metrics, action group
  • Individual tool: gitlab_get_group_dora_metrics
  • Tier: Ultimate
  • Behavior: read-only, idempotent
ParameterTypeMandatoryDescription
group_idstring/integeryesGroup ID or URL-encoded path
metricstring (deployment_frequency, lead_time_for_changes, time_to_restore_service, change_failure_rate)yesDORA metric type: deployment_frequency, lead_time_for_changes, time_to_restore_service, change_failure_rate
end_datestringnoEnd date (YYYY-MM-DD)
environment_tiersstring[]noFilter by environment tiers (e.g. production, staging)
intervalstring (daily, monthly, all)noAggregation interval: daily, monthly, all (default: daily)
start_datestringnoStart date (YYYY-MM-DD)

Get the four DORA DevOps performance metrics for a project over a date window. Returns: one time series of date/value data points for the requested metric (deployment frequency, lead time for changes, time to restore service, or change failure rate), bucketed by interval. See also: dora_metrics.group.

  • Meta-tool: gitlab_dora_metrics, action project
  • Individual tool: gitlab_get_project_dora_metrics
  • Tier: Ultimate
  • Behavior: read-only, idempotent
ParameterTypeMandatoryDescription
metricstring (deployment_frequency, lead_time_for_changes, time_to_restore_service, change_failure_rate)yesDORA metric type: deployment_frequency, lead_time_for_changes, time_to_restore_service, change_failure_rate
project_idstring/integeryesProject ID or URL-encoded path
end_datestringnoEnd date (YYYY-MM-DD)
environment_tiersstring[]noFilter by environment tiers (e.g. production, staging)
intervalstring (daily, monthly, all)noAggregation interval: daily, monthly, all (default: daily)
start_datestringnoStart date (YYYY-MM-DD)