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
| Name | Required | Description | Default |
|---|---|---|---|
| ruleId | Yes |
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" } } ] };
- src/infrastructure/tools/ToolRegistry.ts:281-281 (registration)Registration of the deleteAutomationRuleTool in the central ToolRegistry singleton during built-in tools initialization.this.registerTool(deleteAutomationRuleTool);
- src/infrastructure/tools/ToolRegistry.ts:97-97 (registration)Import of deleteAutomationRuleTool from ToolSchemas.ts for registration.deleteAutomationRuleTool,
- src/index.ts:472-473 (handler)MCP server dispatch handler that routes 'delete_automation_rule' tool calls to ProjectManagementService.deleteAutomationRule.case "delete_automation_rule": return await this.service.deleteAutomationRule(args);