Skip to main content
Glama

create_project_view

Create a new view for GitHub projects to organize tasks as boards, tables, timelines, or roadmaps for better project management and visibility.

Instructions

Create a new view for a GitHub project

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
projectIdYes
nameYes
layoutYes

Implementation Reference

  • Main handler method that executes the create_project_view tool by delegating to the GitHubProjectRepository.createView method.
    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);
      }
    }
  • Zod schema definition for validating input arguments to the create_project_view tool, including projectId, name, and layout.
    // Schema for create_project_view tool
    export const createProjectViewSchema = z.object({
      projectId: z.string().min(1, "Project ID is required"),
      name: z.string().min(1, "View name is required"),
      layout: z.enum(["board", "table", "timeline", "roadmap"]),
    });
    
    export type CreateProjectViewArgs = z.infer<typeof createProjectViewSchema>;
  • Registration of the create_project_view tool in the central ToolRegistry during initialization of built-in tools.
    this.registerTool(createProjectViewTool);
    this.registerTool(listProjectViewsTool);
    this.registerTool(updateProjectViewTool);
  • ToolDefinition export that includes the schema, description, name, and examples for the create_project_view tool.
    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"
          }
        }
      ]
    };
  • Dispatch handler in the main server that routes create_project_view calls to the ProjectManagementService.createProjectView method.
    case "create_project_view":
      return await this.service.createProjectView(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. 'Create' implies a write/mutation operation, but the description doesn't disclose any behavioral traits: no information about permissions required, whether this is idempotent, what happens on duplicate names, rate limits, or what the response contains. For a mutation tool with zero annotation coverage, this is a significant gap.

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 gets straight to the point with no wasted words. It's appropriately sized for a tool with a clear primary function, though the brevity comes at the cost of completeness. Every word earns its place in conveying the core 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 description coverage, no annotations, and no output schema, the description is incomplete. It states what the tool does at a high level but provides none of the contextual information needed for effective use: no parameter explanations, no behavioral context, no usage guidance, and no indication of what the tool returns. The agent would need to guess about many aspects of tool behavior.

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 description must compensate by explaining parameters, but it provides no parameter information whatsoever. The three required parameters (projectId, name, layout) are completely undocumented in the description, and the layout enum values (board, table, timeline, roadmap) aren't mentioned or explained. The description adds zero value beyond what the bare schema provides.

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 target resource ('for a GitHub project'), making the purpose immediately understandable. It distinguishes from siblings like 'create_project' or 'update_project_view' by specifying it's about views rather than projects themselves or updates to existing views. However, it doesn't specify what a 'view' entails in GitHub projects context.

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. It doesn't mention prerequisites (e.g., needing an existing project), differentiate from similar tools like 'create_project' or 'update_project_view', or indicate when this operation is appropriate versus other view-related operations. The agent must 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/HarshKumarSharma/MCP'

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