Skip to main content
Glama

github_actions_update_repo_actions_policy

Idempotent

Updates an existing Actions policy for a repository by policy ID, enabling changes to workflow permissions and controls via the GitHub REST API.

Instructions

Update 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_update_repo_actions_policy"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNoRequest body (JSON object)
repoYesrepo
ownerYesowner
policy_idYespolicy_id

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.0.0

TDQS

C2.9/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=false, openWorldHint=true, and idempotentHint=true, so the agent knows this is an idempotent external mutation. The description adds nothing beyond that: it doesn't say what portions of the policy get overwritten, whether partial updates are supported, what the body must contain, or what permissions are required. For a mutation with a free-form body parameter, this is a meaningful gap.

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

Conciseness4/5

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

A single short sentence with zero wasted wording and the resource front-loaded. It is efficient, though it is thin rather than richly informative.

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

Completeness3/5

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

The tool has a free-form nested body object, no output schema, and no annotations covering what gets mutated. The one-line description is not complete for that complexity: it omits body contents, permission requirements, and overwrite semantics.

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 four parameters (owner, repo, policy_id, body) are documented in the schema at least nominally. The description adds no meaning beyond that, and says nothing about the nested request-body structure. Baseline 3 applies when the schema does the heavy lifting.

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 names a specific verb (Update) and resource (a repository Actions policy), which is enough for an agent to know the general operation. It does not, however, distinguish this from siblings like github_actions_update_org_actions_policy or github_actions_create_repo_actions_policy, leaving scope differentiation to the agent.

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 mention of prerequisites such as admin permissions on the repo, and no pointer to the create/get/delete alternatives. The agent must infer usage purely from the name.

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