Skip to main content
Glama
MCP GitHub CrunchTools

MCP GitHub CrunchTools

by crunchtools

Get Ruleset Tool

get_ruleset_tool
Read-only

Retrieve a GitHub ruleset by organization and ruleset ID, including its conditions, rules, and bypass actors; optionally target a repository.

Instructions

Get one ruleset with its conditions, rules and bypass actors.

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": "get_ruleset_tool"
  }
}

Input Schema

NameRequiredDescriptionDefault
orgYesOrganization name (the repository owner when repo is given)
repoNoRepository name; omit for an organization ruleset
ruleset_idYesRuleset ID

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.2.0

TDQS

A3.6/5.0
Behavior3/5

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

The readOnlyHint annotation already establishes this as a safe read, so the description only needs to add context. It does add that the response is deep (conditions, rules, bypass actors), signalling a heavier payload than a summary lookup, but says nothing about error behavior for missing IDs or org-vs-repo scoping.

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?

A single sentence with no filler, front-loading the verb and resource. Every clause earns its place by naming what the result contains.

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?

An output schema exists, so return values need not be explained, and the readOnlyHint covers safety. The remaining gap is minor: nothing states the failure mode or whether org scope is required when repo is null, but the schema covers that case.

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 org, repo and ruleset_id are fully documented in the schema, including that repo is omitted for organization rulesets. The description contributes no additional parameter meaning, which is the baseline case.

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?

States a specific verb and resource ('Get one ruleset') and enumerates the payload it returns (conditions, rules, bypass actors), which separates it from a bulk listing tool. It stops short of naming list_rulesets_tool, so the singular-vs-list distinction is implied rather than stated.

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?

'Get one ruleset' implies usage when a specific ruleset_id is already known, but the description never says when to prefer this over list_rulesets_tool or what happens if the ID does not exist. Usage is inferable from the wording rather than guided.

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