Skip to main content
Glama

delete_branch

Deletes a specified branch from a GitHub repository using owner, repo, and branch name, helping remove obsolete or merged branches.

Instructions

Delete a branch

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": {
      "owner": "<owner>",
      "repo": "<repo>",
      "branch": "<branch>"
    },
    "name": "delete_branch"
  }
}

Input Schema

NameRequiredDescriptionDefault
repoYesRepository name
ownerYesRepository owner
branchYesBranch name to delete

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.2

TDQS

C2.5/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, yet it only implies destruction. It does not say whether the deletion is permanent, whether it works on the default branch, what happens to unmerged commits or open pull requests, or what permissions are required.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three words with zero waste, but the brevity comes from omission rather than discipline. There is nothing to be misled by, but nothing front-loaded that helps an agent either.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

This is a destructive mutation with no annotations and no output schema, a case where the description needs to explain consequences and error conditions. It supplies none of that, leaving the agent to guess at the blast radius of the call.

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 owner, repo, and branch are already documented and the description adds no syntax, format, or constraint details. Baseline 3 applies when the schema does the work.

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

Purpose3/5

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

"Delete a branch" names a verb and resource, but it is essentially a restatement of the tool name delete_branch and adds no scope information (remote vs. local, which repository context, default-branch restrictions). An agent learns nothing about the operation beyond what the name already implies.

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

Usage Guidelines2/5

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

There is no guidance on when to use this versus siblings such as create_branch or merge_pull_request, nor any precondition or caution. The description gives no when/when-not information at all.

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