codacy_quality
Retrieve quality gate policies and repository-specific thresholds for issues, coverage, complexity, and duplication to define pass/fail conditions.
Instructions
[INSTRUCTIONS] Returns the full threshold configuration for a policy. Use the policyId from codacy_quality.list_policies. Thresholds define pass/fail conditions for issues, coverage, complexity, and duplication.
Get details of a specific gate policy including all thresholds.. Select operation via the action parameter. Actions: get_policy, get_settings, list_policies
Workflow:
'get_policy': [INSTRUCTIONS] Returns the full threshold configuration for a policy. Use the policyId from codacy_quality.list_policies. Thresholds define pass/fail conditions for issues, coverage, complexity, and duplication.
Get details of a specific gate policy including all thresholds.. Requires: policyId
'get_settings': [INSTRUCTIONS] Returns the quality gate configuration — thresholds for issues, coverage, complexity, and duplication. These settings determine what isUpToStandards means for PRs and commits.
Get quality settings for a repository (commit/PR/repository thresholds).
'list_policies': [INSTRUCTIONS] Gate policies are organization-level quality rules applied to repositories. Common mistake: confusing policies with repository-specific settings — policies are templates, settings are per-repo. isDefault=true means this policy applies to all repos without explicit overrides.
List gate policies for an organization. [Cache-Control: no-store]
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Which operation to perform | |
| policyId | No | Gate policy ID. Required for: get_policy | |
| provider | No | Git provider. For: get_policy, get_settings, list_policies | |
| repository | No | Repository name. For: get_settings | |
| organization | No | Organization name. For: get_policy, get_settings, list_policies |