Skip to main content
Glama
MCP GitHub CrunchTools

MCP GitHub CrunchTools

by crunchtools

Update Ruleset Tool

update_ruleset_tool

Modify an existing GitHub organization or repository ruleset by sending only the fields to change, replacing rules, bypass actors, or conditions when provided.

Instructions

Change a ruleset; only the fields given are sent.

Given rules, bypass_actors or conditions REPLACE the stored ones: pass the complete list, and both halves of the conditions (ref_name_include, and repository_name_include on an organization ruleset).

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>",
      "ruleset_id": "<ruleset_id>"
    },
    "name": "update_ruleset_tool"
  }
}

Input Schema

NameRequiredDescriptionDefault
orgYesOrganization name (the repository owner when repo is given)
nameNoNew ruleset name
repoNoRepository name; omit for an organization ruleset
rulesNoComplete list of rules, each {type, parameters}
targetNobranch, tag, push, or repository (organization only)
ruleset_idYesRuleset ID
enforcementNodisabled, active or evaluate
bypass_actorsNoComplete list of actors that may bypass the ruleset
ref_name_excludeNoRef patterns to skip
ref_name_includeNoRef patterns
repository_name_excludeNoRepository name patterns to skip
repository_name_includeNoRepository name patterns (organization only)
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.8/5.0
Behavior4/5

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

With no annotations at all, the description carries the full burden and does disclose the most consequential behavior: this is a partial update ("only the fields given are sent") yet rules, bypass_actors and conditions are wholesale replaced, which is exactly the data-loss trap an agent needs warned about. It omits permissions requirements, whether null clears a field, and reversibility, so it is not fully transparent.

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?

Two tight sentences with the partial-update rule front-loaded and the destructive replace rule immediately after; no wasted wording. The second sentence is densely packed and the phrase "both halves of the conditions" takes a moment to parse, which keeps it from a 5.

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 13-parameter mutation with 100% schema coverage and an output schema, the description supplies the critical behavioral context an agent cannot get from structured fields. The remaining gap is the omitted-vs-null distinction, since every optional field defaults to null while the description only says "only the fields given are sent".

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, but the description earns more by explaining the replace-vs-merge semantics per field group and by clarifying the coupling between ref_name_include and repository_name_include on organization rulesets, which the schema states only as separate flat properties.

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 and resource ("Change a ruleset"), which is clearly distinguishable in intent from create_ruleset_tool and get_ruleset_tool by verb alone. It does not explicitly name or contrast those siblings, so it stops short of a 5.

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?

It gives strong guidance on how to use the list-valued parameters (send the complete list, include both halves of conditions), but gives no guidance on when to choose this tool over create_ruleset_tool or list_rulesets_tool, nor any prerequisites such as admin rights on the org.

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