Skip to main content
Glama

skein_reparent

Destructive

Move an EXISTING issue under a new parent. This is THE tool for re-parenting — skein_dep_add(type="parent-child") only ADDS a parent and rejects a second one with parent_already_set; setting the parent at creation uses parentId on skein_create. skein_reparent atomically replaces the issue's single parent-child edge in one SERIALIZABLE transaction (self-healing a double-parented child to exactly one edge), bumps the issue version, and emits issue.reparented plus the per-edge dependency.deleted / dependency.created audit rows. ANSWERS WITH AN ACKNOWLEDGEMENT by default — the id, the applied state and the new version, no issue card and no prose — so the expectedVersion cycle continues without a re-read; pass verbose for the full IssueDetail.

Required: id (the issue to move), newParentId (the new parent), and expectedVersion for optimistic concurrency. On version mismatch returns {error:"version_conflict", currentVersion:<int>} — re-read with skein_show and retry. The new parent must be in the SAME project (reparent_cross_project otherwise) and must not already be a descendant of the issue (dependency_cycle; its path only if you see every issue on it). An issue cannot be its own parent (reparent_self).

NOT lock-gated: reparent moves a graph edge (like skein_dep_add / skein_dep_remove), so a lock held by another session does not block it — concurrency is guarded by expectedVersion alone.

NOT idempotent: re-running with the same newParentId still performs a real move (DELETE+INSERT) and bumps the version — compare parentIdCurrent first if you want to avoid a no-op move. On success returns the acknowledgement (id, status, the new version); pass verbose for the full IssueDetail.

Post-action summary: report ✓ <id> re-parented under <newParentId> so the user can scan the move.

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": {
      "id": "<id>",
      "newParentId": "<newParentId>",
      "expectedVersion": "<expectedVersion>"
    },
    "name": "skein_reparent"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesFull hierarchical id of the issue to move (e.g. "demo-42" or "demo-42.1").
verboseNoReturn the full IssueDetail, prose included. Default false = acknowledgement: `id`, `ok`, `version` plus the post-state stamps that apply (`status`, `assignee`, lock / claim / close stamps) — no issue card and no free text. The version is always there, so the expectedVersion cycle needs no extra read. Details: skein_get_instructions.
newParentIdYesFull hierarchical id of the new parent. Must be in the same project and must not be a descendant of the issue.
expectedVersionYesThe version the agent expects on the issue. The move only proceeds when the live version matches; otherwise returns version_conflict with the live version.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Goes well past the annotations: atomic SERIALIZABLE edge replacement, self-healing of a double-parented child, version bump, emitted audit events, and the fact that a session lock does not gate it. The 'NOT idempotent' note corroborates idempotentHint=false and explains the DELETE+INSERT consequence, so nothing contradicts the annotation set.

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?

Front-loaded with the purpose and sibling routing, then layered into transaction behavior, params, errors, and lock semantics. It loses a point for redundancy: the acknowledgement/`verbose` return behavior is described twice in near-identical terms, and idempotency is restated.

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

Completeness5/5

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

No output schema exists, and the description fully compensates by specifying the default acknowledgement payload, the verbose alternative, the conflict error shape, and even the post-action summary line. An agent could call this and handle both success and failure paths without any other source.

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

Parameters4/5

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

Schema coverage is already 100%, yet the description adds real meaning: expectedVersion drives the conflict/retry cycle with a concrete `{error:"version_conflict", currentVersion}` shape, and `verbose` is tied to the acknowledgement-vs-IssueDetail tradeoff. The constraints on `newParentId` restate schema text, which is why it stops short of 5.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Move an EXISTING issue under a new parent') and immediately distinguishes itself from the two alternatives that could be confused with it: `skein_dep_add(type="parent-child")` for add-only and `parentId` on skein_create for creation-time parenting.

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

Usage Guidelines5/5

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

Explicitly declares itself 'THE tool for re-parenting' and names the conditions under which siblings are used instead, including the `parent_already_set` rejection path. It also gives preconditions (same project, no descendant, no self-parent) and pins each to a specific error code.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.