Skip to main content
Glama
kunwarVivek

mcp-github-project-manager

get_automation_rule

Retrieve details of a specific automation rule to manage GitHub project workflows, enabling users to view rule configurations and settings for automated task management.

Instructions

Get details of a specific automation rule

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ruleIdYes

Implementation Reference

  • Primary handler implementation in ProjectManagementService that retrieves a specific automation rule by ID from the automation repository, formats the response, and handles errors.
    async getAutomationRule(data: { ruleId: string }): Promise<{
      id: string;
      name: string;
      description?: string;
      projectId: string;
      enabled: boolean;
      triggers: any[];
      actions: any[];
      createdAt: string;
      updatedAt?: string;
    }> {
      try {
        const rule = await this.automationRepo.findById(data.ruleId);
        if (!rule) {
          throw new ResourceNotFoundError(ResourceType.RELATIONSHIP, data.ruleId);
        }
    
        return {
          id: rule.id,
          name: rule.name,
          description: rule.description,
          projectId: rule.projectId,
          enabled: rule.enabled,
          triggers: rule.triggers,
          actions: rule.actions,
          createdAt: rule.createdAt.toISOString(),
          updatedAt: rule.updatedAt?.toISOString()
        };
      } catch (error) {
        throw this.mapErrorToMCPError(error);
      }
    }
  • Tool definition including schema (zod validation), description, and usage examples for get_automation_rule. Schema requires 'ruleId' string.
    export const getAutomationRuleTool: ToolDefinition<GetAutomationRuleArgs> = {
      name: "get_automation_rule",
      description: "Get details of a specific automation rule",
      schema: getAutomationRuleSchema as unknown as ToolSchema<GetAutomationRuleArgs>,
      examples: [
        {
          name: "Get rule details",
          description: "Retrieve details of an automation rule",
          args: {
            ruleId: "AR_kwDOLhQ7gc4AOEbH"
          }
        }
      ]
    };
  • Registration of the getAutomationRuleTool in the central ToolRegistry singleton.
    this.registerTool(getAutomationRuleTool);
  • MCP server dispatcher that routes 'get_automation_rule' tool calls to the ProjectManagementService handler.
    case "get_automation_rule":
      return await this.service.getAutomationRule(args);
  • Getter for the AutomationRuleRepository used by the handler to persist/retrieve rules.
      return this.factory.createAutomationRuleRepository();
    }

Tool Definition Quality

Score is being calculated. Check back soon.

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