Skip to main content
Glama

delete_release

Remove a release from a GitHub repository by specifying the owner, repository name, and release ID to manage project versioning.

Instructions

Delete a release from a GitHub repository

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ownerYesRepository owner (username or organization)
repoYesRepository name
release_idYesThe ID of the release

Implementation Reference

  • Core handler function that executes the DELETE request to the GitHub Releases API to delete the specified release.
    export async function deleteRelease(
      github_pat: string,
      owner: string,
      repo: string,
      release_id: number
    ): Promise<void> {
      await githubRequest(
        github_pat,
        `https://api.github.com/repos/${owner}/${repo}/releases/${release_id}`,
        {
          method: "DELETE",
        }
      );
    }
  • MCP tool dispatcher case that parses arguments, calls the deleteRelease function, and returns success response.
    case "delete_release": {
      const args = releases._DeleteReleaseSchema.parse(params.arguments);
      await releases.deleteRelease(args.github_pat, args.owner, args.repo, args.release_id);
      return {
        content: [{ type: "text", text: JSON.stringify({ success: true }, null, 2) }],
      };
    }
  • Zod schemas defining the input parameters for the delete_release tool, used for validation and JSON schema generation.
    export const DeleteReleaseSchema = z.object({
      owner: z.string().describe("Repository owner (username or organization)"),
      repo: z.string().describe("Repository name"),
      release_id: z.number().describe("The ID of the release")
    });
    
    export const _DeleteReleaseSchema = DeleteReleaseSchema.extend({
      github_pat: z.string().describe("GitHub Personal Access Token"),
    });
  • src/index.ts:174-178 (registration)
    Tool registration in the list of tools provided by the MCP server.
    {
      name: "delete_release",
      description: "Delete a release from a GitHub repository",
      inputSchema: zodToJsonSchema(releases.DeleteReleaseSchema),
    },
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. While 'Delete' implies a destructive operation, it lacks details on permissions required, whether the action is reversible, rate limits, or what happens to associated assets. This is inadequate for a mutation tool with zero annotation coverage.

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?

The description is a single, efficient sentence that directly states the tool's purpose without unnecessary words. It's front-loaded and wastes no space, making it highly concise and well-structured for quick comprehension.

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?

Given the tool's destructive nature, lack of annotations, and no output schema, the description is incomplete. It doesn't cover behavioral aspects like safety, permissions, or response format, which are critical for a deletion operation. This leaves significant gaps in understanding how to use the tool effectively.

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 the input schema fully documents the parameters (owner, repo, release_id). The description adds no additional meaning beyond what's in the schema, such as format examples or constraints, resulting in the baseline score of 3 for adequate but unenhanced parameter documentation.

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 clearly states the action ('Delete') and resource ('a release from a GitHub repository'), making the purpose immediately understandable. However, it doesn't distinguish this tool from potential alternatives like 'list_releases' or 'create_release' among the sibling tools, which would require explicit comparison for a score of 5.

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?

The description provides no guidance on when to use this tool versus alternatives, prerequisites, or context. With sibling tools like 'list_releases' and 'create_release' available, there's no indication of when deletion is appropriate or what conditions must be met, leaving usage unclear.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/MissionSquad/mcp-github'

If you have feedback or need assistance with the MCP directory API, please join our Discord server