Skip to main content
Glama

Update an issue

forgejo_update_issue
DestructiveIdempotent

Modify an existing issue's state, title, body, labels, or assignees. Close, reopen, or replace any of these fields in one operation.

Instructions

Changes an existing issue: state, title, body, labels or assignees. Write operation: requires the 'write:issue' scope.

Parameters:

  • owner, repo (optional when defaults are configured)

  • number (required)

  • state ('open' | 'closed', optional): closes or reopens the issue

  • title (string, optional): replaces the current title

  • body (string, optional): replaces the current body — this overwrites, it does not append

  • labels (string[], optional): replaces the full label set; unknown names are skipped and reported

  • assignees (string[], optional): replaces the full assignee list

At least one changing field is required; omitted fields are left untouched.

Returns: { number, title, state, labels, assignees, html_url, unresolved_labels }

Examples:

  • "close issue 42" -> number=42, state='closed'

  • "reopen it and retitle it" -> number=42, state='open', title='…'

To add to a discussion without altering the issue, use forgejo_comment_issue instead. Also accepts a pull request number, but only its issue-side fields change — it cannot merge or close a PR's branch.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bodyNoReplacement body (overwrites, no append).
repoNoRepository name. Defaults to FORGEJO_DEFAULT_REPO.
ownerNoRepository owner (user or organisation). Defaults to FORGEJO_DEFAULT_OWNER.
stateNoNew state: 'closed' closes the issue, 'open' reopens it.
titleNoReplacement title.
labelsNoReplacement label set, by name.
numberYesIssue number as displayed (#42 -> 42).
assigneesNoReplacement assignee list, by login.
response_formatNo'markdown' for a readable rendering, 'json' for the full data.markdown

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv1.0.0

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the annotations, it discloses key write behaviors: body overwrites rather than appends, labels and assignees are fully replaced, unknown labels are skipped and reported, and omitted fields remain unchanged. It also states the required write:issue scope. These details align with destructiveHint=true and add meaningful operational context.

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 well-structured: a clear lead sentence, parameter block, behavioral note, return fields, and examples. It is fairly long but justified for a 9-parameter tool. A small amount of parameter detail duplicates the schema, but the organization keeps it scannable.

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?

Given the tool's complexity, 9 parameters, no output schema, and the write-side annotations, the description covers auth scope, overwrite semantics, required-field conditions, defaults, return value shape, and practical examples. Nothing essential for invoking it correctly is missing.

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

Parameters5/5

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

Even though schema coverage is 100%, the description adds crucial semantics beyond the schema: 'replaces the current title', 'this overwrites, it does not append', 'replaces the full label set', and 'replaces the full assignee list'. The 'at least one changing field is required' rule is also a valuable addition.

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 first sentence names the verb ('Changes') and the resource ('an existing issue'), plus the exact mutable attributes: state, title, body, labels, or assignees. This clearly distinguishes it from siblings like forgejo_create_issue and forgejo_comment_issue.

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 clearly states that the target must be an existing issue, requires the issue number, and requires at least one changing field. It also says omitted fields are left untouched. It does not explicitly name alternatives or say 'use forgejo_create_issue for new issues', but the usage context is unambiguous.

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

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/Birdiz/forgejo-mcp'

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