Skip to main content
Glama
kunwarVivek

mcp-github-project-manager

create_project_view

Create a new view for a GitHub project to organize tasks using board, table, timeline, or roadmap layouts.

Instructions

Create a new view for a GitHub project

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
projectIdYes
nameYes
layoutYes

Implementation Reference

  • Core handler: Executes GraphQL mutation `createProjectV2View` to create a new GitHub Projects v2 view with specified name and layout.
    async createView(projectId: ProjectId, name: string, layout: ProjectView["layout"]): Promise<ProjectView> {
      const mutation = `
        mutation($input: CreateProjectV2ViewInput!) {
          createProjectV2View(input: $input) {
            projectV2View {
              id
              name
              layout
            }
          }
        }
      `;
    
      try {
        const graphqlLayout = mapToGraphQLViewLayout(layout);
    
        const variables = {
          input: {
            projectId,
            name,
            layout: graphqlLayout
          }
        };
    
        const response = await this.graphql<CreateProjectV2ViewResponse>(mutation, variables);
    
        if (!response.createProjectV2View?.projectV2View) {
          throw new Error('Failed to create project view: Invalid response from GitHub API');
        }
    
        const view = response.createProjectV2View.projectV2View;
    
        return {
          id: view.id,
          name: view.name,
          layout: view.layout.toLowerCase() as ViewLayout,
          fields: [],
          sortBy: [],
          groupBy: undefined,
          filters: []
        };
      } catch (error) {
        this.logger.error(`Failed to create project view for project ${projectId}`, error);
        throw this.handleGraphQLError(error);
      }
  • Service layer handler: Validates input and delegates to GitHubProjectRepository.createView
    async createProjectView(data: {
      projectId: string;
      name: string;
      layout: 'board' | 'table' | 'timeline' | 'roadmap';
    }): Promise<ProjectView> {
      try {
        return await this.projectRepo.createView(
          data.projectId,
          data.name,
          data.layout
        );
      } catch (error) {
        throw this.mapErrorToMCPError(error);
      }
    }
  • MCP tool dispatcher: Routes 'create_project_view' tool calls to ProjectManagementService.createProjectView
    case "create_project_view":
      return await this.service.createProjectView(args);
  • Tool definition including Zod input schema (projectId, name, layout), description, and examples
    export const createProjectViewTool: ToolDefinition<CreateProjectViewArgs> = {
      name: "create_project_view",
      description: "Create a new view for a GitHub project",
      schema: createProjectViewSchema as unknown as ToolSchema<CreateProjectViewArgs>,
      examples: [
        {
          name: "Create kanban board view",
          description: "Create a board view for a project",
          args: {
            projectId: "PVT_kwDOLhQ7gc4AOEbH",
            name: "Development Board",
            layout: "board"
          }
        }
      ]
    };
  • Registers createProjectViewTool in the central ToolRegistry singleton (imported from ToolSchemas.ts line 44)
    this.registerTool(createProjectViewTool);
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. 'Create' implies a write/mutation operation, but the description doesn't specify permissions required, whether the view is immediately active, error conditions, or what happens on success. This is inadequate for a mutation tool with zero annotation coverage.

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 with zero wasted words. It's front-loaded with the core action and resource, making it easy to parse quickly. Every word earns its place in conveying the essential purpose.

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 mutation tool with 3 required parameters, 0% schema coverage, no annotations, and no output schema, the description is incomplete. It states what the tool does at a high level but lacks crucial details about behavior, parameters, and outcomes that an agent needs to invoke it correctly.

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?

Schema description coverage is 0%, so the schema provides no parameter documentation. The description mentions no parameters at all, failing to compensate for this gap. It doesn't explain what 'projectId', 'name', or 'layout' represent or how they should be used, leaving all three parameters semantically undefined.

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 a new view') and the resource ('for a GitHub project'), making the purpose immediately understandable. However, it doesn't differentiate this tool from its sibling 'create_project' or 'create_roadmap', which also create project-related entities, so it doesn't reach the highest score.

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 like 'create_project' or 'update_project_view'. It doesn't mention prerequisites (e.g., needing an existing project) or contextual constraints, leaving the agent to infer usage from the tool name alone.

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