Skip to main content
Glama
kunwarVivek

mcp-github-project-manager

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);
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, irreversible mutation, the description does not specify permissions required, side effects (e.g., whether related data is affected), error conditions, or confirmation steps. This leaves significant gaps in understanding the tool's behavior and risks.

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 is front-loaded and wastes no space, making it easy to parse quickly.

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 complexity of a destructive operation with no annotations, no output schema, and low parameter coverage, the description is incomplete. It lacks critical details about behavior, parameters, and outcomes, making it insufficient for safe and effective use by an AI agent.

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?

The input schema has 0% description coverage, with one parameter ('ruleId') undocumented. The description does not add any meaning about this parameter, such as what a ruleId is, how to obtain it, or its format. Since schema coverage is low, the description fails to compensate, resulting in inadequate 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 the resource ('an automation rule from a project'), which is specific and unambiguous. However, it does not differentiate this tool from sibling tools like 'disable_automation_rule' or 'delete_project', leaving room for potential confusion about when to use this versus those alternatives.

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 such as 'disable_automation_rule' (which might temporarily deactivate instead of permanently delete) or 'delete_project' (which removes an entire project). It lacks explicit context, prerequisites, or exclusions, offering minimal usage direction.

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

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