github_repos_get_org_rulesets
Fetch all repository rulesets for an organization. Filter by target types and paginate results to enforce compliance policies.
Instructions
Get all organization repository rulesets
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": {
"org": "<org>"
},
"name": "github_repos_get_org_rulesets"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| org | Yes | org | |
| page | No | The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." | |
| targets | No | A comma-separated list of rule targets to filter by. If provided, only rulesets that apply to the specified targets will be returned. For example, `branch,tag,push`. | |
| per_page | No | The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." |