Skip to main content
Glama
postgresai

postgresai

Official

post_issue_comment

Posts comments to issues, optionally as threaded replies, and uploads local attachments to storage as markdown links appended to the comment body.

Instructions

Post a new comment to an issue (optionally as a reply). Local files passed via 'attachments' are uploaded to PostgresAI storage and the resulting markdown links are appended to the comment body (image extensions render inline).

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": "post_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.
contentNoComment text (supports \n as newline)
issue_idYesIssue ID (UUID)
attachmentsNoLocal file paths to upload and append as markdown links (images render inline). Either 'content' or 'attachments' must be non-empty.
parent_comment_idNoParent comment ID (UUID) for replies

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations provided, the description carries the full behavioral burden. It usefully discloses that attachments are uploaded to PostgresAI storage and appended as markdown links, with images rendering inline, but it does not cover permissions, error behavior, or what the tool returns.

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?

Two compact sentences front-load the core action before explaining attachment handling. There is no filler, though the attachment detail is the only elaboration provided.

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 mutation tool with six parameters and full schema coverage, the description covers the main behavior and the non-obvious attachment side effect. It could say more about the created comment's return value, but no output schema exists to demand that.

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 the input schema already documents each parameter, including the attachment and reply semantics. The description reinforces the attachment-append behavior but adds little beyond what the schema states.

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 ('Post a new comment to an issue'), notes the reply variant, and is clearly distinguishable from the sibling update_issue_comment. An agent knows exactly what this tool 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?

Usage is implied by the phrase 'optionally as a reply,' but there is no explicit when-to-use guidance or contrast with update_issue_comment for edits. It also does not clarify when to attach files here versus using upload_file separately.

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