Skip to main content
Glama
GitHub PR Issue Analyser

GitHub PR Issue Analyser

by saidsef

Github Create Empty Commit

github_create_empty_commit

Trigger a fresh CI run by pushing an empty commit to a branch or pull request with no file changes, preserving caller identity and Dependabot rebase behavior.

Instructions

Pushes a commit that changes no file, so CI starts a new run under the caller's name. A re-run keeps the privileges of the first run, which for Dependabot is a read-only token. Dependabot stops rebasing a branch once another commit is pushed to it, unless the message carries [dependabot skip], as the default does. GitHub signs the commit, as it does one made in the web interface. See #490 and #534.

Workflow and conventions: github_get_skill('ci-checks').

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": {
      "repo_owner": "<repo_owner>",
      "repo_name": "<repo_name>"
    },
    "name": "github_create_empty_commit"
  }
}

Input Schema

NameRequiredDescriptionDefault
branchNoBranch to commit to. Omit it and pr_number for the default branch
messageNoCommit message. The default carries [dependabot skip], so Dependabot keeps rebasing the branchchore: trigger CI [dependabot skip]
pr_numberNoPull request whose head branch to commit to, in place of branch
repo_nameYes
repo_ownerYes
expected_head_shaNoRefuse unless the head still matches this SHA
allow_default_branchNoCommit to the default branch, which is refused otherwise

Output Schema

NameRequiredDescriptionDefault
branchYes
html_urlYes
tree_shaYes
commit_shaYes
parent_shaYes
parent_tree_shaYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv47.0.0

TDQS

A4.3/5.0
Behavior5/5

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

Annotations only declare the safety profile; the description adds substantive behavior the agent could not infer: the commit is attributed to the caller, re-runs inherit first-run privileges, Dependabot's token is read-only, and pushing a commit halts Dependabot rebasing unless the message carries [dependabot skip]. The note that GitHub signs the commit sets expectations about commit provenance.

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?

The substantive sentences are dense and front-loaded around the core behavior, with no filler. The trailing issue references ('See #490 and #534') are opaque pointers that add little for an agent deciding how to call the tool.

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 7-parameter mutation tool with open-world access, the description covers motivation, side effects on CI and Dependabot, and commit provenance, and an output schema means return values need not be explained. Failure modes (refusal when allow_default_branch is false or expected_head_sha mismatches) 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 coverage is 71% and every parameter already carries a description, including the [dependabot skip] rationale for the message default. The description reinforces that rationale but adds no new syntax, format, or interaction detail (for example branch vs pr_number precedence) beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a specific verb and resource plus the defining constraint: 'Pushes a commit that changes no file'. That single phrase separates it from the file-changing sibling without needing to name it.

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 states the motivating scenario clearly (start a new CI run, re-run privileges, Dependabot rebasing) and routes the agent to github_get_skill('ci-checks') for workflow conventions. It stops short of explicit exclusions such as 'use github_commit_files when you actually have file changes', so the when-not side is inferred.

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