Skip to main content
Glama

delete_automation_rule

Remove an automation rule from a GitHub project to stop automated actions like task assignments or status updates based on triggers.

Instructions

Delete an automation rule from a project

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ruleIdYes

Implementation Reference

  • The main handler function that executes the delete_automation_rule tool logic. Verifies the rule exists via automationRepo.findById, then calls automationRepo.delete(ruleId). Returns success boolean.
    async deleteAutomationRule(data: { ruleId: string }): Promise<{ success: boolean }> { try { // Verify rule exists const rule = await this.automationRepo.findById(data.ruleId); if (!rule) { throw new ResourceNotFoundError(ResourceType.RELATIONSHIP, data.ruleId); } await this.automationRepo.delete(data.ruleId); return { success: true }; } catch (error) { throw this.mapErrorToMCPError(error); } }
  • ToolDefinition for delete_automation_rule including name, description, input schema (deleteAutomationRuleSchema requiring ruleId: string), and example usage.
    export const deleteAutomationRuleTool: ToolDefinition<DeleteAutomationRuleArgs> = { name: "delete_automation_rule", description: "Delete an automation rule from a project", schema: deleteAutomationRuleSchema as unknown as ToolSchema<DeleteAutomationRuleArgs>, examples: [ { name: "Delete rule", description: "Remove an automation rule from a project", args: { ruleId: "AR_kwDOLhQ7gc4AOEbH" } } ] };
  • Registration of the deleteAutomationRuleTool in the central ToolRegistry singleton during built-in tools initialization.
    this.registerTool(deleteAutomationRuleTool);
  • Import of deleteAutomationRuleTool from ToolSchemas.ts for registration.
    deleteAutomationRuleTool,
  • MCP server dispatch handler that routes 'delete_automation_rule' tool calls to ProjectManagementService.deleteAutomationRule.
    case "delete_automation_rule": return await this.service.deleteAutomationRule(args);

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/kunwarVivek/mcp-github-project-manager'

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