Skip to main content
Glama
MCP GitHub CrunchTools

MCP GitHub CrunchTools

by crunchtools

Create Org Actions Policy Tool

create_org_actions_policy_tool

Creates an organization Actions policy so you can allow events like pull_request_target and scope which workflows and repositories it covers, overriding GitHub's default blocking in public repos.

Instructions

Create an organization Actions policy.

GitHub blocks pull_request_target in public repositories by default unless an Actions event policy allows it; such a policy is made here with allowed_events ["pull_request_target", ...] and workflow_path_include naming the workflow files it covers.

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": "<name>",
      "enforcement": "<enforcement>",
      "repository_name_include": "<repository_name_include>"
    },
    "name": "create_org_actions_policy_tool"
  }
}

Input Schema

NameRequiredDescriptionDefault
orgYesOrganization name
nameYesPolicy name
enforcementYesdisabled, active or evaluate (evaluate is Enterprise only)
allowed_actorsNoActors ({id, type}) that may trigger them
allowed_eventsNoEvents that may trigger the targeted workflows (GitHub event names such as pull_request_target, push)
workflow_path_excludeNoWorkflow file paths or globs to skip
workflow_path_includeNoWorkflow file paths or globs, e.g. [".github/workflows/ci.yml"]; omitted means every workflow
repository_name_excludeNoRepository name patterns to skip
repository_name_includeYesRepository name patterns; ["~ALL"] for all
repository_name_protectedNoAlso match on rename protection

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.2.0

TDQS

A3.9/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It does disclose a genuinely useful behavioral fact — GitHub blocks pull_request_target by default unless a policy allows it — but omits permission requirements, whether creation fails or merges when a policy already exists, and the effect of the enforcement value.

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

Conciseness5/5

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

Two short passages with zero filler: the action comes first, then the rationale and the parameter pairing that matters. Nothing is repeated from the schema.

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

Completeness4/5

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

For a 10-parameter mutation tool the description is reasonably complete: the schema is fully documented and an output schema exists, so return values need no explanation. The remaining gap is the absence of any mutation/auth caveats, which matters given there are no annotations.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3; the description earns above that by explaining how allowed_events and workflow_path_include combine, clarifying that the latter scopes which workflow files the allowed events apply to. Other parameters (enforcement, repository_name_include, allowed_actors) are left to the schema.

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 opens with a specific verb+resource ("Create an organization Actions policy"), which is unambiguous about what is produced. It does not explicitly distinguish itself from siblings like update_org_actions_policy_tool or get_org_actions_policy_tool, but the create/get/update verb difference is implicit and clear.

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

Usage Guidelines4/5

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

It supplies a concrete when-to-use scenario: a policy must be created here when you need pull_request_target permitted in a public repo, naming the two parameters that accomplish it. It stops short of stating exclusions or pointing at the update/list siblings for related tasks.

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