Skip to main content
Glama

create_roadmap

Generate project roadmaps with milestones and tasks for GitHub projects to organize development work and track progress.

Instructions

Create a project roadmap with milestones and tasks

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
projectYes
milestonesYes

Implementation Reference

  • The core handler function that implements the create_roadmap tool logic: validates input, creates GitHub project, milestones, and associated issues.
    async createRoadmap(data: {
      project: CreateProject;
      milestones: Array<{
        milestone: CreateMilestone;
        issues: CreateIssue[];
      }>;
    }): Promise<{
      project: Project;
      milestones: Array<Milestone & { issues: Issue[] }>;
    }> {
      try {
        // Validate input with Zod schema
        const validatedData = CreateRoadmapSchema.parse(data);
    
        // Create properly typed project without using 'any'
        const projectData = {
          ...validatedData.project,
          type: ResourceType.PROJECT,
          status: ResourceStatus.ACTIVE,
          visibility: validatedData.project.visibility || 'private',
          views: [] as ProjectView[],
          fields: [] as CustomField[],
          // Ensure shortDescription is used (description is handled via separate update)
          shortDescription: validatedData.project.shortDescription,
        };
    
        const project = await this.projectRepo.create(
          createResource(ResourceType.PROJECT, projectData)
        );
    
        const milestones = [];
    
        // Create milestones and issues with proper error handling
        for (const { milestone, issues } of validatedData.milestones) {
          try {
            // Ensure milestone description is not undefined
            const milestoneWithRequiredFields = {
              ...milestone,
              description: milestone.description || ''
            };
    
            const createdMilestone = await this.milestoneRepo.create(milestoneWithRequiredFields);
    
            const createdIssues = await Promise.all(
              issues.map(async (issue) => {
                try {
                  return await this.issueRepo.create({
                    ...issue,
                    milestoneId: createdMilestone.id,
                  });
                } catch (error) {
                  throw this.mapErrorToMCPError(error);
                }
              })
            );
    
            milestones.push({
              ...createdMilestone,
              issues: createdIssues,
            });
          } catch (error) {
            throw this.mapErrorToMCPError(error);
          }
        }
    
        return { project, milestones };
      } catch (error) {
        if (error instanceof z.ZodError) {
          throw new ValidationError(`Invalid roadmap data: ${error.message}`);
        }
    
        throw this.mapErrorToMCPError(error);
      }
    }
  • Zod schema defining input validation for create_roadmap tool arguments.
    export const createRoadmapSchema = z.object({
      project: z.object({
        title: z.string().min(1, "Project title is required"),
        shortDescription: z.string().optional(),
        visibility: z.enum(["private", "public"]),
      }),
      milestones: z.array(
        z.object({
          milestone: z.object({
            title: z.string().min(1, "Milestone title is required"),
            description: z.string().min(1, "Milestone description is required"),
            dueDate: z.string().datetime("Due date must be a valid ISO date string").optional(),
          }),
          issues: z.array(
            z.object({
              title: z.string().min(1, "Issue title is required"),
              description: z.string().min(1, "Issue description is required"),
              priority: z.enum(["high", "medium", "low"]).default("medium"),
              type: z.enum(["bug", "feature", "enhancement", "documentation"]).default("feature"),
              assignees: z.array(z.string()),
              labels: z.array(z.string()),
            })
          ).optional().default([]),
        })
      ),
    });
  • ToolDefinition export including name, description, schema, and examples for the create_roadmap tool.
    export const createRoadmapTool: ToolDefinition<CreateRoadmapArgs> = {
      name: "create_roadmap",
      description: "Create a project roadmap with milestones and tasks",
      schema: createRoadmapSchema as unknown as ToolSchema<CreateRoadmapArgs>,
      examples: [
        {
          name: "Simple project roadmap",
          description: "Create a basic project with two milestones",
          args: {
            project: {
              title: "New Mobile App",
              shortDescription: "Develop a new mobile application for our users",
              visibility: "private",
            },
            milestones: [
              {
                milestone: {
                  title: "Design Phase",
                  description: "Complete all design work for the mobile app",
                  dueDate: "2025-05-01T00:00:00Z",
                },
                issues: [
                  {
                    title: "Create wireframes",
                    description: "Create wireframes for all app screens",
                    priority: "high",
                    type: "feature",
                    assignees: ["designer1"],
                    labels: ["design", "ui"],
                  },
                  {
                    title: "Design system",
                    description: "Develop a consistent design system",
                    priority: "medium",
                    type: "feature",
                    assignees: [],
                    labels: ["design"],
                  },
                ],
              },
              {
                milestone: {
                  title: "Development Phase",
                  description: "Implement the designed features",
                  dueDate: "2025-06-15T00:00:00Z",
                },
                issues: [
                  {
                    title: "User authentication",
                    description: "Implement user login and registration",
                    priority: "high",
                    type: "feature",
                    assignees: ["developer1"],
                    labels: ["auth", "backend"],
                  },
                ],
              },
            ],
          },
        },
      ],
    };
  • Registration of the createRoadmapTool in the central ToolRegistry during built-in tools initialization.
    this.registerTool(createRoadmapTool);
  • MCP server dispatch: switch case in executeToolHandler that routes create_roadmap calls to ProjectManagementService.createRoadmap.
    case "create_roadmap":
      return await this.service.createRoadmap(args);
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries full burden for behavioral disclosure. While 'create' implies a write operation, the description doesn't address permissions needed, whether this is an atomic operation, what happens on failure, or what the response contains. For a complex creation tool with nested objects, this leaves significant behavioral questions unanswered.

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 states the core purpose without unnecessary words. It's appropriately sized for a tool description and gets straight to the point with zero wasted text.

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?

For a complex creation tool with nested parameters, no annotations, and no output schema, the description is insufficiently complete. It doesn't explain what constitutes a successful creation, what gets returned, error conditions, or how this tool relates to the many sibling tools in the project management domain.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 0% schema description coverage and 2 complex nested parameters, the description provides minimal parameter guidance. It mentions 'milestones and tasks' which hints at the 'milestones' parameter structure, but offers no insight into the 'project' parameter or the specific structure expected for either parameter. The description doesn't compensate for the schema's lack of descriptions.

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 ('create') and resource ('project roadmap with milestones and tasks'), providing a specific verb+resource combination. However, it doesn't distinguish this tool from similar siblings like 'create_project' or 'create_milestone', which reduces its differentiation value.

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. With multiple sibling tools for creating projects, milestones, and other project management entities, there's no indication of when this comprehensive roadmap creation tool is preferred over more granular alternatives.

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/HarshKumarSharma/MCP'

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