Skip to main content
Glama
postgresai

postgresai

Official

update_action_item

Modify an action item by marking it done or not done, approving or rejecting it, and editing its title or description so task status and details stay current.

Instructions

Update an action item: mark as done/not done, approve/reject, or edit title/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": {
      "action_item_id": "<action_item_id>"
    },
    "name": "update_action_item"
  }
}

Input Schema

NameRequiredDescriptionDefault
debugNoEnable verbose debug logs
titleNoNew 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.
statusNoApproval status: 'waiting_for_approval', 'approved', or 'rejected'
is_doneNoMark as done (true) or not done (false)
descriptionNoNew description
status_reasonNoReason for approval/rejection
action_item_idYesAction item ID (UUID)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden, and it discloses almost nothing beyond the modes of update. It does not say whether the update is partial or requires full state, whether approve/reject has permission requirements or triggers notifications, whether changes are reversible, or what the response contains. For a mutation tool with zero annotation coverage, this is a substantial gap.

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?

A single front-loaded sentence with no filler; the verb, resource, and mode list arrive immediately. The slash-delimited mode list is slightly telegraphic but efficient and readable.

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 8-parameter mutation tool with no annotations and no output schema, the parameter surface is fully covered by the schema, but the behavior of the operations is not. An agent still cannot tell what approving does to the item's state or assignees, whether unlisted fields are preserved, or whether approval fails without elevated permissions. Adequate to select the tool, insufficient to predict its effects.

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 every parameter, including the org_id/token nuance and status enum values, is already documented in the schema, establishing a baseline of 3. The description's grouping of parameters by intent (is_done, status, title/description) loosely mirrors the schema and adds no syntax, format, or interaction detail such as whether status_reason is required when rejecting.

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 states a specific verb ('Update') and resource ('an action item') and then enumerates the three modes of update: done/not-done toggling, approve/reject, and title/description edits. An agent can tell this is the mutation counterpart to view_action_item/create_action_item without opening a schema. It stops short of explicitly naming a sibling to differentiate from.

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 rather than stated: an agent can infer this is the tool for changing an existing action item, and the three listed modes suggest which parameter to reach for (is_done vs status vs title/description). There is no explicit when-not-to-use guidance, no mention of prerequisites or required roles for approval, and no reference to alternatives such as create_action_item or view_action_item.

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