Skip to main content
Glama
MCP GitHub CrunchTools

MCP GitHub CrunchTools

by crunchtools

Update Org Actions Policy Tool

update_org_actions_policy_tool

Update an organization Actions policy by sending only the fields you change, while replacing or preserving stored event, actor, and workflow targeting rules as needed.

Instructions

Change an organization Actions policy; only the fields given are sent.

Giving allowed_events or allowed_actors REPLACES the policy's stored rules: pass every rule to keep. Omitted workflow paths keep the stored workflow targeting.

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

Input Schema

NameRequiredDescriptionDefault
orgYesOrganization name
nameNoNew policy name
policy_idYesPolicy ID
enforcementNodisabled, active or evaluate
allowed_actorsNoActors ({id, type}) that may trigger them
allowed_eventsNoEvents that may trigger the targeted workflows
workflow_path_excludeNoWorkflow file paths or globs to skip
workflow_path_includeNoWorkflow file paths or globs
repository_name_excludeNoRepository name patterns to skip
repository_name_includeNoRepository name patterns (required with any other repository_name field)
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
Behavior4/5

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

With no annotations provided, the description carries the full behavioral burden and usefully discloses that only supplied fields are sent. It also warns that passing allowed_events or allowed_actors replaces stored rules and that omitted workflow paths preserve existing targeting, which is valuable mutation behavior beyond the schema.

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?

The description is front-loaded and compact: the first sentence states the operation and partial-update behavior, and the remaining sentences call out the key replacement hazard. There is no redundant or filler wording.

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 an 11-parameter mutation tool with full schema descriptions and an output schema, the description covers the most important non-obvious behavior. It is not fully complete because it omits permission requirements and general error or reversibility expectations.

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 description coverage is 100%, so the baseline is 3. The description adds meaningful semantics beyond the schema by explaining replacement behavior for allowed_events and allowed_actors and preservation behavior for omitted workflow path fields.

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 states a specific verb and resource: 'Change an organization Actions policy.' It is clearly an update operation, though it does not explicitly distinguish itself from sibling create/get/list policy tools.

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

Usage Guidelines3/5

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

The phrasing implies use for modifying an existing organization Actions policy, but it gives no explicit when-to-use guidance versus create/get/list alternatives. It also omits prerequisites such as required permissions or when a policy_id is valid.

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