Skip to main content
Glama

Create a GitHub issue

github_issue_create

Create a GitHub issue with title, body, labels, assignees, milestone, parent, dependencies, organization fields, and project board values in one call.

Instructions

Create an issue in a repository the viewer may write to, and settle its place in the same call: kind (an Issue Type, else a type: label that is created when missing), labels, assignees (they are notified), milestone, parent and blocked-by issues, organization issue fields, and a project board with field values (the Status starts as Todo, or Waiting when an open issue blocks it). Everything that can fail is checked before the issue is made: the milestone exists (unless create_milestone is true), the issue fields, their options and values exist (a repository without issue fields refuses them), and the board accepts the values. Once the issue exists, a failed kind, parent, blocked_by, issue_fields, project or fields. step does not fail the call: it is listed in errors and the issue is still returned. An issue is 12, #12, owner/repo#12 or its URL; a bare number means the new issue's repository. A board is named by project: its number, owner/number or its URL, used as it is; any other project is a title, and no project is Roadmap: the open board of that whole title is looked up, never guessed, in owner's boards if owner is given, else in the boards linked to repo, then its organization's, then the viewer's. Needs a token with the project scope; if GitHub reports missing scopes, run gh auth refresh -s project.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "title": "<title>"
    },
    "name": "github_issue_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNoMarkdown body; empty when left out.
kindNoSuch as bug or feature: the organization's Issue Type of that name, else the type:<kind> label.
repoNoowner/name; defaults to the working tree's repository (its origin).
titleYesThe issue's title.
fieldsNoBoard field values to set, by field name: {"Target": "2026-12-01"}; needs project. A Status given here replaces the default. The issue's organization fields go in issue_fields.
labelsNoLabels to add; they must exist.
parentNoThe parent issue: 12, #12, owner/repo#12 or its URL.
projectNoA board to put the issue on: its number, owner/number or its URL, or its title; none by default. The issue starts as Todo on the board when it has that Status option, or Waiting when it is blocked by an open issue and the board has that option.
assigneesNoLogins, or "@me".
milestoneNoA milestone title.
blocked_byNoIssues that block this one, in the same forms as parent.
issue_fieldsNoThe organization's issue fields to set, by field name (without regard to case): {"Priority": "High", "Target date": "2026-12-01"}. Each takes a text, a number, a date as YYYY-MM-DD, an option name, or a list of option names for a multi-select field.
create_milestoneNoCreate the milestone when it does not exist; needs milestone.

Output Schema

NameRequiredDescriptionDefault
kindYesWhere the kind landed; null when none was given or its step failed.
repoYes
issueYes
errorsYesFailed steps (kind, parent, blocked_by, issue_fields, project, fields.<Name>), keyed by step; {} when none.
foreignYes
projectYesThe board item; null when no project was given or its step failed.
milestoneYes
relationsYes
issue_fieldsYesThe new issue's field values, by field name; null when issue_fields was not given, its step failed, or the values could not be read back.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changedv0.7.0
    • addedInput schema / properties / fields
      Added value: +{
      +  "additionalProperties": {
      +    "type": [
      +      "string",
      +      "number"
      +    ]
      +  },
      +  "description": "Board field values to set, by field name: {\"Target\": \"2026-12-01\"}; needs project. A Status given here replaces the default. The issue's organization fields go in issue_fields.",
      +  "propertyNames": {
      +    "type": "string"
      +  },
      +  "type": "object"
      +}
    • addedInput schema / properties / issue_fields
      Added value: +{
      +  "additionalProperties": {
      +    "anyOf": [
      +      {
      +        "type": "string"
      +      },
      +      {
      +        "type": "number"
      +      },
      +      {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      }
      +    ]
      +  },
      +  "description": "The organization's issue fields to set, by field name (without regard to case): {\"Priority\": \"High\", \"Target date\": \"2026-12-01\"}. Each takes a text, a number, a date as YYYY-MM-DD, an option name, or a list of option names for a multi-select field.",
      +  "propertyNames": {
      +    "type": "string"
      +  },
      +  "type": "object"
      +}
    • addedInput schema / properties / project
      Added value: +{
      +  "description": "A board to put the issue on: its number, owner/number or its URL, or its title; none by default. The issue starts as Todo on the board when it has that Status option, or Waiting when it is blocked by an open issue and the board has that option.",
      +  "type": "string"
      +}
    • changedOutput schema / properties / errors / description
      Previous value: -"Failed steps (kind, parent, blocked_by), keyed by step; {} when none."New value: +"Failed steps (kind, parent, blocked_by, issue_fields, project, fields.<Name>), keyed by step; {} when none."
    • addedOutput schema / properties / issue_fields
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "number"
      +          },
      +          {
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          }
      +        ]
      +      },
      +      "propertyNames": {
      +        "type": "string"
      +      },
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "The new issue's field values, by field name; null when issue_fields was not given, its step failed, or the values could not be read back."
      +}
    • addedOutput schema / properties / project
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": false,
      +      "properties": {
      +        "fields": {
      +          "additionalProperties": {
      +            "type": [
      +              "string",
      +              "number"
      +            ]
      +          },
      +          "description": "The values that were set, by field name as the board spells it: an option or iteration by its name, a number as a number.",
      +          "propertyNames": {
      +            "type": "string"
      +          },
      +          "type": "object"
      +        },
      +        "item_id": {
      +          "description": "The project item's node ID (PVTI_…).",
      +          "type": "string"
      +        },
      +        "number": {
      +          "maximum": 9007199254740991,
      +          "minimum": -9007199254740991,
      +          "type": "integer"
      +        },
      +        "owner": {
      +          "description": "The login of the user or organization that owns the board.",
      +          "type": "string"
      +        },
      +        "title": {
      +          "type": "string"
      +        },
      +        "url": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "number",
      +        "title",
      +        "url",
      +        "owner",
      +        "item_id",
      +        "fields"
      +      ],
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "The board item; null when no project was given or its step failed."
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "repo",
      -  "issue",
      -  "kind",
      -  "milestone",
      -  "relations",
      -  "foreign",
      -  "errors"
      -]New value: +[
      +  "repo",
      +  "issue",
      +  "kind",
      +  "milestone",
      +  "relations",
      +  "issue_fields",
      +  "project",
      +  "foreign",
      +  "errors"
      +]
  2. First observedv0.3.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare the generic write profile (readOnlyHint=false, destructiveHint=false, openWorldHint=true, idempotentHint=false). The description adds substantial non-obvious behavior: everything fallible is validated before creation, but failures after creation (kind, parent, blocked_by, issue_fields, project, fields.<Name>) are reported in an errors list without failing the call, and it discloses the required token scope with a concrete remediation command ('gh auth refresh -s project').

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose and preconditions are front-loaded and there is little filler; nearly every clause carries a distinct rule. However, it is delivered as a few very long, comma-heavy sentences that bundle unrelated concerns (reference grammar, board resolution, error handling), making it harder to scan than it needs to be.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 13-parameter, nested-object creation tool with an output schema, the description covers what an agent needs: pre-flight validation, partial-failure semantics, permission/scope requirements with a fix, and the tricky resolution rules for projects and issue references. Return values are left to the output schema, which is appropriate.

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

Parameters4/5

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

Schema coverage is already 100%, so the baseline is 3; the description goes further by defining the accepted issue-reference grammar (12, #12, owner/repo#12, URL, with bare numbers resolving against the new issue's repo), the kind-to-type:<kind> label fallback, the default Status (Todo, or Waiting when blocked), and the owner-dependent board title resolution. It does not restate every parameter's type, but it adds genuine semantics beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a concrete verb and resource ('Create an issue in a repository') and then enumerates the full scope of what can be set in the same call (kind, labels, assignees, milestone, parent, blocked-by, issue fields, project board). This is clearly a creation tool, distinguishable from github_issue_edit, github_issue_comment and github_project_item_create.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

States the precondition ('a repository the viewer may write to') and, in depth, when the project parameter is treated as a number/URL versus a title, including the lookup order (owner's boards, repo-linked, org, viewer). It does not explicitly name sibling tools for modifying an existing issue, which keeps it at 4 rather than 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.