Skip to main content
Glama
postgresai

postgresai

Official

view_action_item

Retrieve full details for one or multiple action items by UUID. Use it to inspect an action item's status, context, and specifics within a Postgres organization.

Instructions

View action item(s) with all details. Supports single ID or multiple IDs.

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

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.
action_item_idNoSingle action item ID (UUID)
action_item_idsNoMultiple action item IDs (UUIDs)

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 provided, so the description carries the full behavioral burden. "With all details" hints at return verbosity, but nothing is said about authorization needs (the global-token/org_id distinction), error behavior for unknown or missing IDs, or whether the call is read-only and side-effect free.

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, front-loaded with the core purpose and no filler. The second sentence largely duplicates what the schema already shows, so it does not fully earn its place, but the definition is far from bloated.

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?

All four parameters are optional, there is no output schema, and no annotations exist, so the description must compensate — yet it never states that at least one of action_item_id or action_item_ids is effectively needed, nor what the response contains. For a detail-fetch tool with a subtle global-vs-org-token requirement, this leaves significant gaps.

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 baseline is 3: each parameter (including org_id token semantics and debug) is already documented in the schema. The description's only parameter-related content is the single-ID vs multiple-ID distinction, which the schema already encodes as two separate properties.

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 pairs a specific verb ("View") with the resource ("action item(s)") and adds a scope hint ("with all details"), so an agent knows this is a detail-fetch by ID. It stops short of distinguishing itself from the sibling list_action_items, which also returns action items.

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?

"Supports single ID or multiple IDs" merely restates the two schema parameters and is not when-to-use guidance. There is no mention of when to prefer this over list_action_items, or of prerequisites such as required org context or whether at least one ID must be supplied.

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