Skip to main content
Glama

create_project

Create a new project for a GitHub repository by specifying owner, repository name, and project details to organize development tasks.

Instructions

Create a new project for a repository

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ownerYesRepository owner (username or organization)
repoYesRepository name
nameYesThe name of the project
bodyNoThe description of the project

Implementation Reference

  • The main handler function that executes the create_project tool logic by sending a POST request to GitHub API to create a project in the specified repository.
    export async function createProject(
      github_pat: string,
      owner: string,
      repo: string,
      name: string,
      body?: string
    ): Promise<z.infer<typeof ProjectSchema>> {
      const response = await githubRequest(
        github_pat,
        `https://api.github.com/repos/${owner}/${repo}/projects`,
        {
          method: "POST",
          body: {
            name,
            body,
          },
          headers: {
            "Accept": "application/vnd.github.inertia-preview+json",
          },
        }
      );
      return ProjectSchema.parse(response);
    }
  • Input schema definition for the create_project tool (public version without github_pat).
    export const CreateProjectSchema = z.object({
      owner: z.string().describe("Repository owner (username or organization)"),
      repo: z.string().describe("Repository name"),
      name: z.string().describe("The name of the project"),
      body: z.string().optional().describe("The description of the project"),
    });
  • Extended input schema including the required github_pat for internal parsing.
    export const _CreateProjectSchema = CreateProjectSchema.extend({
      github_pat: z.string().describe("GitHub Personal Access Token"),
    });
  • Output schema for parsing the GitHub project response.
    export const ProjectSchema = z.object({
      id: z.number(),
      node_id: z.string(),
      url: z.string(),
      html_url: z.string(),
      columns_url: z.string(),
      owner_url: z.string(),
      name: z.string(),
      body: z.string().nullable(),
      number: z.number(),
      state: z.string(),
      creator: GitHubIssueAssigneeSchema,
      created_at: z.string(),
      updated_at: z.string(),
    });
  • src/index.ts:255-258 (registration)
    Tool registration in the listTools response, defining name, description, and input schema.
      name: "create_project",
      description: "Create a new project for a repository",
      inputSchema: zodToJsonSchema(projects.CreateProjectSchema),
    },
  • Dispatch handler in the main CallToolRequest handler that parses arguments and calls the projects.createProject function.
    case "create_project": {
      const args = projects._CreateProjectSchema.parse(params.arguments);
      const { github_pat, owner, repo, name, body } = args;
      const result = await projects.createProject(github_pat, owner, repo, name, body);
      return {
        content: [{ type: "text", text: JSON.stringify(result, null, 2) }],
      };
    }
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. It states the tool creates something but doesn't mention permissions required, whether it's idempotent, what happens on failure, or the format of the response. For a mutation tool with zero annotation coverage, this leaves critical behavioral traits unspecified, though it doesn't contradict any annotations.

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 front-loads the core action ('Create a new project') and resource ('for a repository'). There is zero waste or unnecessary elaboration, 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?

Given the complexity (a mutation tool with 4 parameters) and lack of annotations or output schema, the description is incomplete. It doesn't cover behavioral aspects like permissions, error handling, or response format, nor does it provide usage guidance. For a tool that creates resources in a collaborative environment like GitHub, this leaves significant gaps for 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?

Schema description coverage is 100%, so the schema already documents all parameters (owner, repo, name, body) with clear descriptions. The description adds no additional meaning beyond implying a repository context, which is redundant with the schema. This meets the baseline of 3 when the schema does the heavy lifting, but no value is added.

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 project') and resource ('for a repository'), making the purpose immediately understandable. It distinguishes from siblings like 'create_project_card' or 'create_project_column' by focusing on the project itself rather than project components. However, it doesn't specify what kind of project (e.g., GitHub project board) or differentiate from 'list_projects', so it's not fully specific.

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 repository access), when to choose 'create_project' over 'create_project_column' or 'create_project_card', or any constraints. The agent must infer usage from the name and context alone, which is insufficient for clear decision-making.

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/MissionSquad/mcp-github'

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