Skip to main content
Glama
GitHub PR Issue Analyser

GitHub PR Issue Analyser

by saidsef

Github Api Delete

github_api_delete
Destructive

Deletes GitHub resources via REST DELETE paths or GraphQL removal mutations when no other tool supports the removal; actions are irreversible and limited by token permissions.

Instructions

Sends a DELETE to any path under api.github.com, or runs a GraphQL mutation that deletes or removes something, for a removal no other tool makes. Neither can be undone. GitHub decides what the token may remove. See #543.

Workflow and conventions: github_get_skill('api-requests').

Input Schema

NameRequiredDescriptionDefault
bodyNoJSON request body, which a few DELETE routes require
pathNoPath under https://api.github.com, such as repos/octocat/hello-world/labels/bug
graphqlNoA GraphQL mutation that deletes or removes something
max_bytesNoCap on the body returned
variablesNoVariables for the GraphQL mutation

Output Schema

NameRequiredDescriptionDefault
bodyYes
statusYes
has_moreYes
truncatedYes
bytes_totalYes
bytes_returnedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv55.0.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=false, and openWorldHint=true, so the safety profile is covered structurally. The description adds real context beyond that: 'Neither can be undone' and 'GitHub decides what the token may remove', which tells the agent the outcome depends on token scope rather than the tool. It does not cover error behavior or rate limits, which keeps it from a 5.

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 irreversibility warning and the token-scope caveat are front-loaded and earn their place. 'See #543' is a dangling reference with no meaning to an agent, and appending the skill pointer as a trailing 'Workflow and conventions' line is slightly wasteful but still useful.

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 and annotations carry the destructive/non-idempotent profile, so the description only needs to cover intent and risk, which it does. Minor gaps are the relationship between the path and graphql parameters and what failure looks like when the token lacks permission.

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 100%, so every parameter already carries a description, and the baseline is 3. The description adds the framing that there are two modes (path-DELETE vs GraphQL mutation), which helps the agent pick between the path/graphql/variables parameters, but it does not clarify mutual exclusivity or defaults.

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: a raw DELETE to any path under api.github.com, or a GraphQL mutation that removes something. The phrase 'for a removal no other tool makes' implicitly separates it from dedicated siblings like github_delete_branch, github_delete_release, and github_delete_tag, though it never names them.

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?

'for a removal no other tool makes' gives a clear selection rule against the dedicated delete tools, and 'Workflow and conventions: github_get_skill("api-requests")' points to required setup knowledge. It stops short of explicit when-not guidance, such as warning that branch/release/tag deletion should go to the specialized tools.

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

Deploy Server

Other Tools