Skip to main content
Glama

skein_commits_detach

DestructiveIdempotent

Remove git commit refs from an issue without touching status, closed_reason, closed_at, version or locked_by. The counterpart of skein_commits_attach, and the only way back from a hash that should not have been linked — a hash is accepted on its FORM alone (lowercase hex, 7..64), so a fabricated one passes validation and, before this tool, stayed linked forever. 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.

Matches on HASH, not on (repo, hash): every row of this issue carrying the hash is removed, whichever repo it was filed under, so a ref attached to the WRONG repo is removable too. Issue may be in any status. Caller must hold the lock OR pass force=true (force_unlock: project owner, space owner, instance admin) — unlocked issues are open to any agent.

The response carries detached (the rows actually removed, each with the repoId you never named) and notFound (the hashes that had no row on this issue) at the TOP LEVEL in both lean and verbose mode. Read them: a typo in the hash produces the same success as a real removal, and only notFound tells the two apart.

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": {
      "issueId": "<issueId>",
      "hashes": "<hashes>"
    },
    "name": "skein_commits_detach"
  }
}

Input Schema

NameRequiredDescriptionDefault
forceNoBypass lock predicate. Needs the key right `manage` (else `insufficient_scope`) and force_unlock on the issue's project (project owner, space owner, instance admin); others get `force_unlock_forbidden`. Default: false.
hashesYesCommit hashes to unlink from this issue. Max 10. Lowercase hex, 7..64 chars — the same shape skein_close and skein_commits_attach accept, validated here too so a malformed hash is refused instead of silently reported as `notFound`. Must match the stored hash exactly: this is a string match, not a git lookup, so an abbreviation does not remove the full hash it prefixes.
issueIdYesFull hierarchical issue id (e.g. "demo-42").
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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / force / description
      Previous value: -"Bypass lock predicate. Needs force_unlock on the issue's project (project owner, space owner, instance admin); others get `force_unlock_forbidden`. Default: false."New value: +"Bypass lock predicate. Needs the key right `manage` (else `insufficient_scope`) and force_unlock on the issue's project (project owner, space owner, instance admin); others get `force_unlock_forbidden`. Default: false."
  2. First observed

TDQS

A4.4/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, so the safety profile is partly carried. The description still adds real behavioral context beyond them: matching is by hash alone rather than (repo, hash), so rows under the wrong repo are also removed; the default response is a lean acknowledgement that keeps the expectedVersion cycle going; and `detached`/`notFound` are surfaced at the top level. It stops short of describing failure modes beyond lock/scope errors, so a 3 fits a description that is additive but not exhaustive.

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 core action and its non-effects, then the operational caveats, then the return contract. It is dense and slightly long for a four-parameter tool, but nearly every clause carries information an agent needs (force semantics, cross-repo matching, notFound ambiguity).

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, yet the description specifies the acknowledgement shape (id, ok, version plus post-state stamps) versus verbose IssueDetail, and names the top-level response fields. Combined with lock/force prerequisites and cross-repo matching behavior, nothing needed to invoke it correctly is missing.

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 100%, so the schema already documents all four parameters and the baseline is 3. The description earns one extra point by adding semantics the schema cannot express: matching is a string match against stored hashes, not a git lookup, so an abbreviation will not remove the full hash it prefixes, and every matching row is removed regardless of repoId.

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 (remove git commit refs from an issue) and immediately bounds the scope (status, closed_reason, closed_at, version, locked_by untouched). It also names its sibling explicitly as 'the counterpart of skein_commits_attach', so an agent can distinguish attract from detach without opening either schema.

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?

Gives the exact situation that selects this tool: recovering from a hash that should not have been linked, including a fabricated hash that passed form validation. It adds the preconditions that matter for choosing to call it now (issue may be in any status; caller must hold the lock or pass force=true, with force_unlock escalated to project owner/space owner/instance admin) rather than deferring to another tool.

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.