Skip to main content
Glama
postgresai

postgresai

Official

view_issue

View a specific issue with its comments and seen-by list, and record the token owner as an AI agent viewer for tracking.

Instructions

View a specific issue with its comments and who has seen it (seen_by). Viewing records the token owner in the issue's seen-by list as an AI agent.

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": "view_issue"
  }
}

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.
issue_idYesIssue ID (UUID)

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 it discloses a genuinely non-obvious side effect: viewing records the token owner in the issue's seen-by list as an AI agent. That mutation-on-read detail is exactly what an agent needs to know before calling it. It stops short of covering permission requirements or behavior for a missing/inaccessible issue.

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 short sentences with the resource and payload scope front-loaded, followed by the side-effect warning. Nothing is wasted, though it could gain slightly by naming the discovery alternative in the same breath.

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 three-parameter read tool with no output schema and no annotations, the description names what comes back (comments, seen_by) and flags the write side effect, which covers the main unknowns. Remaining gaps—auth/org-token nuances and error behavior—are partly absorbed by the rich org_id schema text.

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 issue_id, org_id, and debug are already fully documented in the schema. The description adds no parameter-level meaning beyond implying that issue_id identifies the record; 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 ("View a specific issue") and scopes the payload to comments plus a seen-by list, so it is clearly distinct from a list operation. It never names a sibling tool, so differentiation comes only from the noun phrasing.

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 single-issue framing implies you need a known issue_id, which rules out browsing, but there is no explicit when-to-use, when-not, or pointer to list_issues/search for discovery. Guidance is inferable rather than stated.

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