Skip to main content
Glama

pg_folder_adopt

Adopt a non-Git folder into ~/ag-workspaces in place, APFS-clone an external folder into it, or sync an imported clone back to its origin.

Instructions

Adopt a non-Git folder inside ~/ag-workspaces in-place, APFS-clone an external folder into ~/ag-workspaces, or sync an imported clone back to its origin.

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_folder_adopt"
  }
}

Input Schema

NameRequiredDescriptionDefault
opYes
folderNo
dry_runNo
projectNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.7.1

TDQS

B3.4/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 behavioral burden and does disclose meaningful traits: adoption is in-place (mutates the original folder), the external import is an APFS clone (platform-dependent, copy-on-write), and sync_back writes to the origin. It omits reversibility, failure handling, and what `dry_run` actually changes, which matters for a mutating tool with zero annotation coverage.

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 dense sentence that front-loads the three modes with no filler. It is efficient, though splitting the behaviors into a short list would make the mode-to-parameter mapping easier to scan.

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?

No output schema and no annotations, so the prose must carry everything. The mode semantics are covered well enough to choose a path, but the absence of any per-parameter explanation and of dry_run/error behavior leaves it only partially complete for a 4-parameter mutating tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate, and it does not. Only the semantics of `op` are loosely implied; `folder`, `project`, and especially `dry_run` are never mentioned, so three of four parameters remain undefined in both schema and prose.

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?

Uses a specific verb+resource formula and enumerates three distinct behaviors: in-place adoption of a non-Git folder under ~/ag-workspaces, APFS-cloning an external folder in, and syncing an imported clone back. The paths and folder types make the scope concrete. It stops short of explaining that the three behaviors collapse into two `op` values, so the description and the enum are not explicitly reconciled.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Each described behavior implies a clear triggering scenario (folder already inside the workspace vs. external folder vs. imported clone), which is real when-to-use guidance. It does not state exclusions or explain how the scenarios map onto the `adopt` and `sync_back` enum values, leaving that connection inferential.

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