Skip to main content
Glama

skein_commits_attach

Idempotent

Attach git commit refs to an existing issue without touching status, closed_reason, closed_at, version or locked_by. Use this — NOT a second skein_close — when the original close forgot commits[] or a closing commit landed afterwards: re-closing silently overwrites the original closed_reason, this tool is the additive path. 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.

Issue may be in any status. Re-attaching the same hash is a silent no-op; the issue.commits_attached event is still emitted for the audit trail. Caller must hold the lock OR pass force=true (force_unlock: project owner, space owner, instance admin) — unlocked issues are open to any agent. No expectedVersion: the attach does not bump version.

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>",
      "commits": "<commits>"
    },
    "name": "skein_commits_attach"
  }
}

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.
commitsYesCommit-refs to link to this issue. Max 10. Each needs `hash`; identify the repo with `repoId` or `repoUrl` from the project's gitRepos[], or omit both when the project has exactly one repo. Re-sends dedup silently per (issue, repo, hash). See skein_get_instructions ("Commit refs"). Must be non-empty.
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. Changed3 schema fields changed
    • changedInput schema / properties / commits / items / properties / author / description
      Previous value: -"Commit author (name or email)."New value: +"Commit author (name or email), at most 256 characters after trimming."
    • changedInput schema / properties / commits / items / properties / message / description
      Previous value: -"Commit subject line."New value: +"Commit subject line, at most 1000 characters after trimming."
    • changedInput schema / properties / commits / items / properties / url / description
      Previous value: -"Canonical commit URL."New value: +"Canonical commit URL: absolute http(s), at most 2048 characters after trimming."
  2. 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."
  3. First observed

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare idempotentHint=true, destructiveHint=false and readOnlyHint=false, and the description corroborates them with real detail: silent no-op on duplicate hashes, the audit event still emitted, lock-or-force requirement with the specific error codes, and that no version bump occurs. That is substantive context beyond the annotations, but the safety profile itself was already carried by structured hints.

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 action and the sibling exclusion before any detail, and every paragraph addresses a real decision. It is somewhat over-packed with ALL-CAPS emphasis and repeats the acknowledgement-vs-prose point already stated in the `verbose` schema description.

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?

With no output schema, the description carries the return-value burden itself, specifying the acknowledgement fields (`id`, `ok`, `version`, post-state stamps) and that `verbose` yields IssueDetail. Auth, idempotency, version behavior and the empty-list constraint are all covered for a 4-parameter mutation tool.

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 documents hash, repoId/repoUrl, force's scope key and verbose. The description adds only the return-shape consequence of `verbose` (acknowledgement vs full IssueDetail) and the lock/force rule, which is genuinely useful but limited given the schema does the heavy lifting.

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 ('Attach git commit refs to an existing issue') and immediately bounds the scope by listing what it does NOT touch (status, closed_reason, closed_at, version, locked_by). It explicitly distinguishes itself from the closest sibling, skein_close, so an agent can select it without opening a 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 an explicit when-to-use rule ('the original close forgot `commits[]` or a closing commit landed afterwards'), an explicit when-not ('NOT a second skein_close'), and the reason the alternative is harmful (re-closing silently overwrites closed_reason). It also states the tool works in any status, removing a common precondition guess.

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.