Skip to main content
Glama
MCP GitHub CrunchTools

MCP GitHub CrunchTools

by crunchtools

List Rulesets Tool

list_rulesets_tool
Read-only

List an organization's or repository's GitHub rulesets to inspect branch, tag, push, or repository rules, with paging and target filters.

Instructions

List an organization's rulesets, or one repository's.

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

Input Schema

NameRequiredDescriptionDefault
orgYesOrganization name (the repository owner when repo is given)
pageNoPage number (default: 1)
repoNoRepository name; omit for the organization's rulesets
targetsNoComma-separated filter: branch, tag, push, repository
per_pageNoResults per page, max 100 (default: 30)

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 is a safe read. The description adds the useful scope distinction (org-wide vs repo-scoped), but says nothing about pagination behavior, result ordering, or the fact that filters like targets narrow results – details an agent would want for a paginated list.

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 front-loaded sentence with zero filler; the scope clause follows immediately. There is no redundancy or hedging that would waste the agent's context.

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?

This is a simple read tool with full schema coverage and an output schema, so return values need no explanation. The description covers the essential scope decision; only minor extras like pagination expectations or the targets filter are left entirely to the schema.

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 every parameter (org, repo, targets, page, per_page) is already documented in the schema. The description only reinforces the org/repo relationship, which the schema's own 'repo' description also states, so no meaningful meaning is added beyond the schema baseline.

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 gives a specific verb ('List') and resource ('rulesets') and immediately scopes it to two cases: an organization's rulesets or a single repository's. That is enough to separate it from get_ruleset_tool and create_ruleset_tool, though it never names those siblings explicitly.

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?

Usage is implied by the phrase 'or one repository's' – the agent can infer that supplying a repo narrows the listing. There is no explicit when-to-use/when-not guidance and no pointer to get_ruleset_tool for single-ruleset retrieval, so the agent must infer the boundary from the tool names.

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