Skip to main content
Glama

Edit a GitHub issue

github_issue_edit
DestructiveIdempotent

Edit a GitHub issue in one call: change title, body, labels, assignees, milestone, or organization issue fields, with inputs validated before any write.

Instructions

Change an issue in one call: title, body (body replaces it, append_body adds after a blank line), kind (an Issue Type, else a type: label that replaces the other type: labels), labels and assignees to add or remove (added assignees are notified), milestone or remove_milestone, and organization issue fields to set or clear. A milestone that does not exist is an error unless create_milestone is true. Issue fields, their options and values are checked before anything is written; a repository without issue fields refuses them. Needs write permission on the repository. An issue is 12, #12, owner/repo#12 or its URL; a bare number means the working tree's repository, or repo.

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": {
      "issue": "<issue>"
    },
    "name": "github_issue_edit"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNoThe new body, which replaces the whole old one; empty clears it.
kindNoSuch as bug: the organization's Issue Type of that name, else the type:<kind> label, replacing other type: labels.
repoNoowner/name; defaults to the working tree's repository (its origin). Used for a bare number.
issueYesThe issue, as 12, #12, owner/repo#12 or its URL.
titleNoThe new title.
milestoneNoA milestone title to set.
add_labelsNoLabels to add; they must exist.
append_bodyNoText added after the current body, set off by a blank line.
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.
add_assigneesNoLogins, or "@me".
remove_labelsNo
create_milestoneNoCreate the milestone when it does not exist; needs milestone.
remove_assigneesNo
remove_milestoneNoTake the issue out of its milestone.
clear_issue_fieldsNoIssue fields to clear, by name.

Output Schema

NameRequiredDescriptionDefault
urlYes
kindYesWhere the kind landed; null when none was given.
repoYes
issueYes
changedYesThe arguments that were applied.
foreignYes
milestoneYesThe milestone that was set; null when none was set or it was removed.
issue_fieldsYesThe issue's field values after the edit, by field name; null when issue_fields and clear_issue_fields were not given, or when the values could not be read back.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.7.0
    • addedInput schema / properties / clear_issue_fields
      Added value: +{
      +  "description": "Issue fields to clear, by name.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • 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"
      +}
    • 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 issue's field values after the edit, by field name; null when issue_fields and clear_issue_fields were not given, or when the values could not be read back."
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "repo",
      -  "issue",
      -  "url",
      -  "changed",
      -  "kind",
      -  "milestone",
      -  "foreign"
      -]New value: +[
      +  "repo",
      +  "issue",
      +  "url",
      +  "changed",
      +  "kind",
      +  "milestone",
      +  "issue_fields",
      +  "foreign"
      +]
  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 already flag destructiveHint=true, idempotentHint=true, and openWorldHint=true, but the description adds substantial context beyond them: write permission is required, issue fields are validated before any write occurs, a repository without issue fields rejects them, a nonexistent milestone errors unless create_milestone is true, added assignees are notified, and body replacement versus append_body behavior is spelled out. This is exactly the mutation-specific detail annotations cannot 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?

The description is front-loaded with the action and a compact enumeration of editable fields, followed by operational caveats and the issue-reference grammar. It is dense and every clause carries information, though the single long enumeration sentence is somewhat heavy for readability.

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 15 parameters, nested issue_fields, an output schema, and rich annotations, this description covers the prerequisites (write permission), validation semantics, error conditions, and reference formats an agent needs to invoke it correctly. Nothing essential is left unstated.

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 description coverage is already 87%, so the bar is lower, but the description still adds real meaning: it explains the body/append_body distinction, that kind prefers an Issue Type and falls back to a type:<kind> label that replaces other type: labels, that create_milestone requires milestone, and that an issue can be a number, #12, owner/repo#12, or a URL with bare numbers resolving to the working tree's repo. A few parameters (remove_labels, remove_assignees) get no elaboration, keeping it just short of a 5.

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?

The description opens with a specific verb and resource ('Change an issue in one call') and then enumerates exactly what can be changed: title, body, kind, labels, assignees, milestone, issue fields. That level of specificity lets an agent distinguish it from github_issue_read, github_issue_close, or github_issue_comment without opening any schema.

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?

The description makes clear this is the single-call tool for modifying issue attributes and covers edge cases like a missing milestone and repositories without issue fields. It does not, however, explicitly point to sibling alternatives (e.g. use github_issue_close to close rather than editing state, or github_issue_relate for relations), so an agent must infer the boundaries itself.

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