Skip to main content
Glama
postgresai

postgresai

Official

update_issue_comment

Update an existing issue comment by changing its text or uploading local attachments, which are appended as markdown links (images render inline).

Instructions

Update an existing issue comment. Local files passed via 'attachments' are uploaded and appended to 'content' as markdown links.

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": {
      "comment_id": "<comment_id>"
    },
    "name": "update_issue_comment"
  }
}

Input Schema

NameRequiredDescriptionDefault
debugNoEnable verbose debug logs
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.
contentNoNew comment text (supports \n as newline). Either 'content' or 'attachments' must be non-empty.
comment_idYesComment ID (UUID)
attachmentsNoLocal file paths to upload and append as markdown links (images render inline)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations at all, the description carries the full burden and does disclose a real side effect: local files are uploaded and appended to 'content' as markdown links, with images rendering inline. However, it never says whether 'content' replaces or appends to the existing text, what happens when 'content' is omitted and only attachments are supplied, or what permissions the update requires.

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

Conciseness5/5

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

Two short sentences, front-loaded with the core action and followed by the one genuinely surprising behavior. Nothing is wasted.

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

Completeness3/5

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

For a five-parameter mutation tool with no annotations and no output schema, the description covers the attachment mechanic but leaves replacement-vs-append semantics and permission/auth expectations unstated. Adequate but with clear gaps.

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 coverage is 100%, so every parameter is already documented, including the attachment/markdown-link behavior that the description repeats almost verbatim. The description adds no syntax, format, or constraint detail beyond the schema, so the 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?

States a specific verb and resource ('Update an existing issue comment') and adds the non-obvious attachment side effect. It does not explicitly contrast with the sibling 'post_issue_comment', so the agent must infer that this edits rather than creates.

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?

The word 'existing' implies this is for comments that already exist, but there is no explicit when-to-use versus 'post_issue_comment' or 'update_issue', and no stated prerequisites such as ownership or permission requirements.

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