Skip to main content
Glama

github_actions_get_repo_actions_policies

Read-only

List GitHub Actions policies for a repository, including inherited policies from higher levels, with pagination support.

Instructions

List repository Actions policies

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": {
      "owner": "<owner>",
      "repo": "<repo>"
    },
    "name": "github_actions_get_repo_actions_policies"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoThe 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)."
repoYesrepo
ownerYesowner
per_pageNoThe 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)."
has_parentsNoInclude policies configured at higher levels that apply to this repository

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.0.0

TDQS

C2.8/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered without the description. Beyond that, the description adds nothing: it doesn't explain what has_parents does, whether paginated results must be walked to see all policies, or anything about the shape of the returned policy list. For a list endpoint with a scope-altering flag, this leaves real behavioral gaps.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is a single four-word phrase with no wasted words and the resource is front-loaded, but the terseness comes at the cost of substance rather than being efficient compression. There is no structure beyond the bare noun phrase.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With five parameters, a required owner/repo pair, and no output schema, the description should carry more weight than one phrase. It says nothing about pagination behavior, the effect of has_parents on results, or what a returned policy contains, so an agent cannot call it confidently without opening the schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema itself documents page, per_page, owner, repo, and the has_parents flag, which establishes a baseline of 3. The description contributes no additional meaning about any parameter, including the semantically important has_parents toggle.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a specific verb-resource pair, 'List repository Actions policies', which is clear enough to distinguish it from the plural-org sibling github_actions_get_org_actions_policies and the singular github_actions_get_repo_actions_policy. It does not explicitly say how it differs from the singular get_repo_actions_policy, so the differentiation is implied rather than stated.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use guidance at all: nothing says to call this to enumerate all policies configured for a repository versus get_repo_actions_policy for a single one, and no prerequisites or exclusions are mentioned. The agent must infer usage from the name alone.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools