Skip to main content
Glama

pg_project_task

Start, inspect, read bounded logs from, wait on, or stop registered prepare, build, and dev tasks in a workspace slot worktree.

Instructions

Start, inspect, read bounded logs or stop a registered prepare/build/dev task in its slot worktree. Start currently requires POSIX host isolation.

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": {
      "op": "<op>"
    },
    "name": "pg_project_task"
  }
}

Input Schema

NameRequiredDescriptionDefault
opYes
nameNo
slotNoWorkspace slot name (optional if only one slot is open or `--slot` default is set).
run_idNoExact run identity returned by start/status; required for wait.
wait_secondsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.7.1

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It does disclose that logs are bounded, that tasks must be pre-registered, and the POSIX constraint on start, which is useful. But it says nothing about stop semantics (kill vs. graceful, idempotency), that `wait` blocks up to wait_seconds, or what status returns.

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 tight sentences with the scope and operations front-loaded and the environment caveat placed last. There is no filler, and every clause conveys operational information.

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 a five-operation, five-parameter tool with no annotations and no output schema, the description covers the core purpose and one key constraint but omits the `wait` operation, stop/kill semantics, and any indication of what the calls return. Adequate to select the tool, thin for invoking it correctly.

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 only 40%, so the description needs to compensate. It clarifies `op` by enumerating four of the five operations and clarifies `name` as the registered prepare/build/dev task, but `wait` and `wait_seconds` (0-20, blocking behavior) are left entirely unexplained.

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 concrete verbs (start, inspect, read logs, stop) against a specific resource: a registered prepare/build/dev task in its slot worktree. That is far more than a restatement of the name. It loses a point because the `wait` op is never mentioned, and nothing distinguishes this tool's status behavior from the sibling pg_task_status.

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?

It gives one real prerequisite: start requires POSIX host isolation, which tells the agent when start will fail. However, there is no guidance on choosing this tool over pg_task_status or pg_slot_status, and no when-not conditions; usage is only implied by the op list.

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