Skip to main content
Glama
postgresai

postgresai

Official

update_issue

Edit an existing issue's title, description, status, labels, or hidden state, and upload attachments to append to the description.

Instructions

Update an existing issue (title, description, status, labels, is_hidden). Use status=1 to close, status=0 to reopen. Local files passed via 'attachments' are uploaded and appended to 'description'; if 'description' is omitted, the existing description is fetched first and appended to.

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_id": "<issue_id>"
    },
    "name": "update_issue"
  }
}

Input Schema

NameRequiredDescriptionDefault
debugNoEnable verbose debug logs
titleNoNew title (supports \n as newline)
labelsNoLabels to set on the issue
org_idNoOrganization ID. Optional with a per-organization token (uses the stored org); REQUIRED with a global token, which can reach every organization the user belongs to and will not assume one. Use orgs_list / `pgai orgs` to discover valid values.
statusNoStatus: 0=open, 1=closed
issue_idYesIssue ID (UUID)
is_hiddenNotrue hides the issue, false unhides it (PostgresAI staff only; same as CLI --hidden / --no-hidden). Omit (or pass null) to leave unchanged.
attachmentsNoLocal file paths to upload and append as markdown links (images render inline). When provided without 'description', the existing description is fetched and appended to.
descriptionNoNew description (supports \n as newline)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose non-obvious behavior: attachments are uploaded and appended, and when description is omitted the existing description is fetched and appended to rather than overwritten. The is_hidden staff-only restriction and close/reopen semantics are also surfaced. Gaps remain around patch-vs-replace semantics for other fields and what the call returns or errors on.

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?

Three sentences, front-loaded with purpose and followed by the two conditional behaviors an agent would otherwise get wrong. The final clause ("appended to") is slightly elliptical but the intent is recoverable, and there is no filler.

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

Completeness4/5

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

For a 9-parameter mutation tool with no annotations and no output schema, the description covers purpose, mutable fields, and the two surprising conditional behaviors. What is missing is modest: confirmation of partial-update semantics for unmentioned fields and any note on the response or failure modes.

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

Parameters3/5

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

Schema description coverage is 100%, so every one of the 9 parameters is already documented, including the status code mapping and the attachments/description interaction. The description restates that interaction and the status codes, adding almost no meaning beyond the schema; baseline 3 applies.

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?

Opens with a specific verb+resource ("Update an existing issue") and enumerates the mutable fields, so an agent knows immediately what can be changed. It does not explicitly differentiate itself from siblings like update_issue_comment or update_action_item, but the resource is unambiguous.

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

Usage Guidelines3/5

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

Usage is implied by the verb: call this to modify an issue that already exists. The only explicit guidance is field-level ("Use status=1 to close, status=0 to reopen"), with no statement of preconditions, no when-not, and no routing to sibling tools such as viewing the issue first or updating a comment instead.

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