Skip to main content
Glama

Create a GitHub issue

github_issue_create

Create a GitHub issue with labels, assignees, milestone, parent, and blockers in one call, and get the issue back even when an optional step fails.

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. A milestone that does not exist fails before the issue is made unless create_milestone is true. Once the issue exists, a failed kind, parent or blocked_by 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.

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.
labelsNoLabels to add; they must exist.
parentNoThe parent issue: 12, #12, owner/repo#12 or its URL.
assigneesNoLogins, or "@me".
milestoneNoA milestone title.
blocked_byNoIssues that block this one, in the same forms as parent.
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), keyed by step; {} when none.
foreignYes
milestoneYes
relationsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.6/5.0
Behavior5/5

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

Goes well past the annotations (readOnlyHint=false, destructiveHint=false, idempotentHint=false, openWorldHint=true) by disclosing partial-failure semantics: after creation, a failed kind/parent/blocked_by step is reported in errors while the issue is still returned. It also warns that a missing milestone fails before the issue is made, that a type:<kind> label is created when missing, and that assignees are notified — all behavioral traits the structured fields do not convey.

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?

Roughly three dense sentences with no filler, and the scope statement is front-loaded ahead of the edge-case behavior. The reference-format sentence is compact but packs several parameters into prose rather than structure, which costs a little scannability.

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?

With an output schema present, the description need not explain return values, and it correctly focuses on the non-obvious parts: partial success, the milestone precondition, and reference formats. For a 10-parameter write tool with broad side effects, an agent has everything needed to call it correctly.

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 3 is the baseline, but the description adds real meaning: the kind fallback resolution order (Issue Type, else a created type:<kind> label) and the accepted issue-reference grammar (12, #12, owner/repo#12, URL), including that a bare number resolves against the new issue's repository. These are resolution rules rather than restatements of the schema text.

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?

States a specific verb and resource ('Create an issue in a repository') and immediately scopes what can be settled in the same call: kind, labels, assignees, milestone, parent, blocked-by. This clearly separates it from the sibling set (close, reopen, relate, develop, read, edit, comment), all of which operate on existing issues.

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?

Gives an explicit precondition ('a repository the viewer may write to') and explains the failure/success contract, including that a missing milestone aborts before creation unless create_milestone is true. It never names an alternative tool explicitly, but the create-vs-edit boundary is unambiguous from the verb, so this is clear context without exclusions.

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