Skip to main content
Glama

pg_slot_open

Provision an isolated Git worktree slot under ~/ag-workspaces without touching your main repo, so you can work on a separate branch safely.

Instructions

Provision or attach an isolated Git worktree slot under ~/ag-workspaces// without touching the user's main repo.

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": {
      "main_repo": "<main_repo>"
    },
    "name": "pg_slot_open"
  }
}

Input Schema

NameRequiredDescriptionDefault
slotNoSlot identifier (e.g. auth-refactor).
branchNoFeature branch name for the isolated worktree (default: feat/ag-v4).
verifyNoFull verification command (e.g. 'pytest -q' or 'npm test').
dev_cmdNoOptional default HTML path or localhost URL for UI probing.
deps_cmdNoOptional hermetic dependency install command for clean-archive checkpoints.
isolationNoTest execution isolation ('host' or network-disabled 'docker').
main_repoYesAbsolute or ~ path to the main Git repository.
quick_verifyNoOptional fast smoke test command.
spawn_daemonNoWhether to spawn a persistent slot watcher daemon.
project_tasksNoRegister prepare/build/dev argv once; execution later only accepts the task name. Subject to current dynamic recipe policy.
container_imageNoContainer image when isolation='docker' (default: python:3.12-slim).
skip_startup_verifyNoSkip running initial full verification on slot creation.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.7.1

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full burden of behavioral disclosure. It usefully states that the user's main repo is not touched, but it omits key consequences for a 12-parameter provisioning tool: whether existing slots are reused, whether spawn_daemon persists after the call, what verification steps run, and what cleanup requires.

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?

A single front-loaded sentence with no filler, stating the action, location, and primary safety boundary immediately. Nothing in the sentence is redundant.

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 complex 12-parameter tool with nested objects, daemon spawning, verification commands, and isolation modes, a one-sentence description is thin. With no annotations and no output schema, an agent lacks lifecycle and side-effect context needed to invoke this 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 100%, so the schema already explains all 12 parameters, including the isolation enum and nested project_tasks object. The description adds only the slot path convention (~/ag-workspaces/<slot>/), which is useful but limited against the schema's existing detail.

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 pair ('Provision or attach') and a clearly scoped resource ('isolated Git worktree slot under ~/ag-workspaces/<slot>/'), including the important boundary that the main repo is untouched. It does not explicitly differentiate itself from siblings like pg_slot_close or pg_sub_worktree, which keeps it from 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 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 choose this over pg_slot_close, pg_slot_list, pg_sub_worktree, or other workflow tools. The only usage signal is implicit in the word 'attach', leaving the agent to infer lifecycle and prerequisites.

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