Skip to main content
Glama

delete_project_column

Remove a project column in GitHub by specifying its unique column ID using the GitHub MCP Server. Streamline project management and maintain organized workflows.

Instructions

Delete a project column

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
column_idYesThe unique identifier of the column

Implementation Reference

  • The core handler function that executes the tool logic by sending a DELETE request to the GitHub API to delete the specified project column.
    export async function deleteProjectColumn(columnId: number) { try { const url = `https://api.github.com/projects/columns/${columnId}`; await githubRequest(url, { method: 'DELETE', headers: { 'Accept': 'application/vnd.github.inertia-preview+json' } }); return { success: true }; } catch (error) { if (error instanceof GitHubError) { throw error; } throw new GitHubError(`Failed to delete project column: ${(error as Error).message}`, 500, { error: (error as Error).message }); } }
  • Zod schema for input validation of the delete_project_column tool, requiring the column_id.
    export const DeleteProjectColumnSchema = z.object({ column_id: z.number().describe("The unique identifier of the column"), });
  • index.ts:240-244 (registration)
    Tool registration in the MCP server's listTools response, defining name, description, and input schema.
    { name: "delete_project_column", description: "Delete a project column", inputSchema: zodToJsonSchema(projects.DeleteProjectColumnSchema), },
  • Server-side handler in the CallToolRequest that parses input, invokes the deleteProjectColumn function, and returns the formatted response.
    case "delete_project_column": { const args = projects.DeleteProjectColumnSchema.parse(request.params.arguments); const result = await projects.deleteProjectColumn(args.column_id); 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/tuanle96/mcp-github'

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