get_quality_gate_by_project
Retrieve the quality gate assigned to a project to know the quality criteria it must meet. Check the gate rules to verify compliance.
Instructions
Return the gate currently bound to a project so workflows can cross-reference status and rules.
Returns information about which quality gate is assigned to the specified project. Use this to determine what quality criteria a project must meet. Requires SONARCLOUD_ORGANIZATION to be set.
Example: get_quality_gate_by_project(project="my-project")
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": {
"project": "<project>"
},
"name": "get_quality_gate_by_project"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project | Yes | Project key to get quality gate for (e.g., 'my-project') |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||