Skip to main content
Glama

create_issue

Create a new issue in a GitHub repository to report bugs, request features, or track tasks. Specify repository, title, and optional details like labels or assignees.

Instructions

Create a new issue in a GitHub repository

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ownerYes
repoYes
titleYes
bodyNo
assigneesNo
milestoneNo
labelsNo

Implementation Reference

  • Core handler function that performs the HTTP POST request to the GitHub API to create an issue.
    export async function createIssue(
      github_pat: string,
      owner: string,
      repo: string,
      options: z.infer<typeof CreateIssueOptionsSchema>
    ) {
      return githubRequest(
        github_pat,
        `https://api.github.com/repos/${owner}/${repo}/issues`,
        {
          method: "POST",
          body: options,
        }
      );
    }
  • Zod schemas defining the input structure for creating an issue, including options, base schema, and extended schema with GitHub PAT.
    export const CreateIssueOptionsSchema = z.object({
      title: z.string(),
      body: z.string().optional(),
      assignees: z.array(z.string()).optional(),
      milestone: z.number().optional(),
      labels: z.array(z.string()).optional(),
    });
    
    export const CreateIssueSchema = z.object({
      owner: z.string(),
      repo: z.string(),
      ...CreateIssueOptionsSchema.shape,
    });
    
    export const _CreateIssueSchema = CreateIssueSchema.extend({
      github_pat: z.string().describe("GitHub Personal Access Token"),
    });
  • src/index.ts:104-107 (registration)
    Tool registration in the ListTools response, specifying name, description, and input schema.
      name: "create_issue",
      description: "Create a new issue in a GitHub repository",
      inputSchema: zodToJsonSchema(issues.CreateIssueSchema),
    },
  • MCP server dispatch handler case for 'create_issue', parsing args and calling the core createIssue function.
    case "create_issue": {
      const args = issues._CreateIssueSchema.parse(params.arguments);
      const { github_pat, owner, repo, ...options } = args;
      const issue = await issues.createIssue(github_pat, owner, repo, options);
      return {
        content: [{ type: "text", text: JSON.stringify(issue, null, 2) }],
      };
    }
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. It states the tool creates a new issue, implying a write operation, but doesn't mention authentication requirements, rate limits, error conditions, or what the response looks like. For a mutation tool with zero annotation coverage, this leaves significant behavioral gaps.

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 directly states the tool's purpose without unnecessary words. It's appropriately sized and front-loaded, with zero wasted text, making it easy to parse quickly.

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 of a 7-parameter mutation tool with no annotations, 0% schema coverage, and no output schema, the description is incomplete. It lacks details on parameters, behavioral traits, return values, and usage context, making it inadequate for the agent to fully understand how to invoke the tool 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%, meaning none of the 7 parameters are documented in the schema. The description adds no parameter information beyond the tool's purpose, failing to compensate for the coverage gap. It doesn't explain what 'owner', 'repo', 'title', etc., represent or their expected formats.

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 issue') and the target resource ('in a GitHub repository'), providing specific verb+resource information. However, it doesn't differentiate this tool from sibling tools like 'update_issue' or 'list_issues' beyond the basic action, missing explicit sibling differentiation.

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 'update_issue' for modifying existing issues or 'list_issues' for viewing them. There's no mention of prerequisites, context, or exclusions, leaving the agent with minimal usage direction.

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