Skip to main content
Glama

pg_slot_close

Stops a managed background watcher daemon for a workspace slot while preserving worktree files, so you can close the slot without deleting its files.

Instructions

Stop a managed background watcher daemon for a workspace slot (worktree files are preserved).

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": {
      "slot": "<slot>"
    },
    "name": "pg_slot_close"
  }
}

Input Schema

NameRequiredDescriptionDefault
slotYesSlot name to stop.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.7.1

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral burden. It does valuable work by disclosing the side effect boundary: the daemon is stopped while worktree files survive. It does not say whether the operation is idempotent, what happens if the slot is not running or does not exist, or what confirmation is returned.

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?

One front-loaded sentence with no filler; the parenthetical about preserved worktree files is placed immediately after the action, where it matters most.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a one-parameter lifecycle tool with no output schema and no annotations, the definition covers the crucial state effect (daemon stopped, files preserved). The remaining gap is error behavior for unknown or already-closed slots, which is minor at this complexity.

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?

There is a single parameter with 100% schema description coverage ('Slot name to stop.'), so the schema already does the work and baseline 3 applies. The description adds only the framing that the slot belongs to a workspace and denotes a managed watcher.

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: stop a managed background watcher daemon for a workspace slot. The parenthetical clarifies scope of effect, and the verb 'stop' contrasts cleanly with sibling slot tools like pg_slot_open and pg_slot_list. No sibling is named explicitly, so it stops short of a 5.

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 by the slot lifecycle (open/list/status/close), but the description never states when to call this versus e.g. leaving a slot running or checking pg_slot_status first. No preconditions or exclusions are given, so the agent must infer the lifecycle model.

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