Skip to main content
Glama
postgresai

postgresai

Official

create_action_item

Create a new action item for an issue to track remediation work, with optional SQL commands and configuration changes.

Instructions

Create a new action item for an issue

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

Input Schema

NameRequiredDescriptionDefault
debugNoEnable verbose debug logs
titleYesAction item title
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.
configsNoConfiguration parameter changes
issue_idYesIssue ID (UUID)
sql_actionNoSQL command to execute, e.g. 'DROP INDEX CONCURRENTLY idx_unused;'
descriptionNoDetailed description

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/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 of behavioral disclosure, but it says nothing about permissions, side effects, or irreversibility. The schema exposes a parameter named sql_action that can execute arbitrary SQL commands like 'DROP INDEX CONCURRENTLY', a high-risk capability the description never mentions.

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?

The single sentence is front-loaded with the verb and resource and has no filler or redundancy. It is efficient, though its brevity reflects under-specification rather than tight writing.

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?

For a seven-parameter mutation tool with no annotations and no output schema, the definition is too thin. It omits return behavior, error conditions, the meaning of the sql_action and configs parameters, and the org-token requirements noted only in the param schema.

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 all seven parameters including org_id, configs, and sql_action are already documented in the schema. The description adds no meaning beyond what the schema provides, 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?

The description uses a specific verb and resource ("Create a new action item") and scopes it to an issue, so it is clearly distinct from siblings like update_action_item or view_action_item. It stops short of naming an alternative or spelling out that it only makes sense for an existing issue, so it is clear but not fully differentiated.

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 guidance on when to use this versus create_issue, list_action_items, or update_action_item, and no prerequisites are stated. An agent must infer from the name alone that this is a write operation for a specific existing issue.

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