Skip to main content
Glama

github_actions_get_repo_actions_policy

Read-only

Retrieve a repository's GitHub Actions policy by owner, repo, and policy_id to inspect its configuration and verify which Actions permissions are enforced.

Instructions

Get a repository Actions policy

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>",
      "policy_id": "<policy_id>"
    },
    "name": "github_actions_get_repo_actions_policy"
  }
}

Input Schema

NameRequiredDescriptionDefault
repoYesrepo
ownerYesowner
policy_idYespolicy_id

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.0.0

TDQS

C2.5/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. The description adds nothing further: no mention of what a policy object covers, permission requirements (admin scope is typical for policy reads), or failure behavior for an invalid policy_id.

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 front-loaded sentence with no waste, so structure is fine. However, the brevity is under-specification rather than efficiency – nothing beyond the title is conveyed.

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?

For a read tool with an opaque policy_id and no output schema, the description should explain what kind of policy is returned and how to discover a valid id. Those gaps leave the agent unable to call it confidently without consulting siblings or trial and error.

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 coverage is 100%, so all three parameters are structurally documented, and the baseline of 3 applies. The description contributes no extra meaning about what policy_id identifies or how owner/repo scope interacts with it.

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

Purpose3/5

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

"Get a repository Actions policy" names a verb and a resource, but it is close to a restatement of the tool name and does not clarify how it differs from the singular/plural neighbors (get_repo_actions_policies) or the org-level variant (get_org_actions_policy). An agent knows it retrieves something called a policy, but not which one.

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, no indication of whether a valid policy_id must be obtained elsewhere, and no exclusion pointing to get_repo_actions_policies or the org-scoped sibling. The agent must infer selection from the tool 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