Skip to main content
Glama
postgresai

postgresai

Official

create_issue

Creates a new PostgresAI issue with title, description, labels, project or organization context, and optional attachment uploads appended as markdown links.

Instructions

Create a new issue in PostgresAI. Local files passed via 'attachments' are uploaded to PostgresAI storage and the resulting markdown links are appended to the issue description.

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": {
      "title": "<title>"
    },
    "name": "create_issue"
  }
}

Input Schema

NameRequiredDescriptionDefault
debugNoEnable verbose debug logs
titleYesIssue title (required)
labelsNoLabels to apply to the issue
org_idNoOrganization ID. Optional with a per-organization token (uses the config value); 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.
is_hiddenNoCreate as a hidden, staff-internal issue (PostgresAI staff only; same as CLI --hidden)
project_idNoProject ID to associate the issue with
attachmentsNoLocal file paths to upload and append as markdown links to the description (images render inline)
descriptionNoIssue description (supports \n as newline)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/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. It does disclose a genuinely non-obvious side effect — local attachment paths are uploaded to PostgresAI storage and their markdown links are appended to the description — but it says nothing about what is returned (issue id/link), whether the call is idempotent, or what permissions the write 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 with the core action front-loaded and the surprising attachment side effect immediately after; nothing is redundant or padded.

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 an eight-parameter mutation tool with no annotations and no output schema, the definition covers purpose and one side effect, while the rich schema covers parameter meaning. It still omits what the caller gets back and any error/failure conditions, which matters for a create operation.

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 the parameters are already documented in detail, including the org_id global-token caveat and staff-only is_hidden. The description only reinforces the attachments semantics by naming the storage destination, which is a small increment over the schema.

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 ('Create a new issue in PostgresAI') and adds a second concrete behavior about attachment handling. It does not, however, distinguish itself from siblings like create_action_item or update_issue.

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?

The description never says when to choose this tool versus create_action_item, update_issue, or list_issues, nor does it state prerequisites such as authentication or organization scoping. Usage is only inferable from the verb.

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