Skip to main content
Glama
postgresai

postgresai

Official

list_issues

Fetches PostgresAI issues with filters for organization, status, and hidden state, plus pagination, so you can review and triage database observations.

Instructions

List issues from PostgresAI API (same as CLI 'issues list')

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list_issues"
  }
}

Input Schema

NameRequiredDescriptionDefault
debugNoEnable verbose debug logs
limitNoMax number of issues to return (default: 20)
offsetNoNumber of issues to skip (default: 0)
org_idNoOrganization ID. Optional with a per-organization token (falls back to config); 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.
statusNoFilter by status: 'open', 'closed', or omit for all (note: the CLI defaults to open). Rows carry status as 'open'/'closed'.
hidden_onlyNoList only hidden issues (PostgresAI staff; same as CLI --hidden-only)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.8/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden, and it discloses almost nothing: it does not state that the call is read-only, whether results are paginated (the schema has limit/offset but the description never mentions paging behavior), what an issue record contains, or any token/permission implications. The only real disclosure is that output mirrors the CLI's 'issues list'.

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

Conciseness3/5

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

It is a single short sentence with the verb and resource front-loaded, and nothing is padded. However, the brevity reads as under-specification rather than discipline for a six-parameter tool, so it does not earn a top score on structure.

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

Completeness2/5

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

With no annotations and no output schema across six optional parameters, the description should at minimum signal the read-only nature and the shape of a returned issue. It instead repeats the tool name plus a CLI alias, leaving the agent dependent entirely on the schema for correct invocation.

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%, and the schema already explains limit/offset defaults, org_id token behavior, status filtering, and hidden_only. The description adds no parameter meaning beyond the CLI equivalence, which loosely implies flag parity with 'issues list'; the baseline of 3 is appropriate when the schema does the work.

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?

The description names a specific verb and resource ("List issues") and identifies the backing source (PostgresAI API), so an agent can tell what is returned at a coarse level. It does not distinguish this from siblings such as list_action_items, view_issue, or create_issue, leaving selection to the name alone.

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

Usage Guidelines2/5

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

There is no statement of when to use this versus a sibling or when not to use it. The only contextual hint is the CLI equivalence ("same as CLI 'issues list'"), which helps a human familiar with the CLI but gives no guidance to an agent about alternatives like view_issue or list_action_items.

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