Skip to main content
Glama

delete_issue_label

Remove a specific label from an issue in an AtomGit repository by specifying the owner, repository, issue number, and label name for precise issue management.

Instructions

Remove a label from an issue in a repository

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
issue_numberYesIssue number
nameYesLabel name
ownerYesRepository owner, typically referred to as 'username'. Case-insensitive.
repoYesRepository name. Case-insensitive.

Implementation Reference

  • The core handler function that sends a DELETE request to the AtomGit API to remove a specific label from an issue.
    export async function deleteIssueLabel( owner: string, repo: string, issue_number: number, name: string ) { return atomGitRequest( `https://api.atomgit.com/repos/${encodeURIComponent(owner)}/${encodeURIComponent(repo)}/issues/${encodeURIComponent(issue_number)}/labels/${encodeURIComponent(name)}`, { method: "DELETE", } ); }
  • Zod schema defining the input parameters for the delete_issue_label tool.
    export const DeleteIssueLabelSchema = z.object({ owner: z.string().describe("Repository owner, typically referred to as 'username'. Case-insensitive."), repo: z.string().describe("Repository name. Case-insensitive."), issue_number: z.number().describe("Issue number"), name: z.string().describe("Label name"), });
  • index.ts:192-196 (registration)
    Tool registration in the listTools handler, specifying name, description, and input schema.
    { name: "delete_issue_label", description: "Remove a label from an issue in a repository", inputSchema: zodToJsonSchema(label.DeleteIssueLabelSchema), },
  • index.ts:485-493 (registration)
    Dispatch case in the CallToolRequest handler that parses arguments and invokes the deleteIssueLabel function.
    case "delete_issue_label": { const args = label.DeleteIssueLabelSchema.parse(request.params.arguments); const { owner, repo, issue_number, name } = args; const result = await label.deleteIssueLabel(owner, repo, issue_number, name); return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }], }; }

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/kaiyuanxiaobing/atomgit-mcp-server'

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