Skip to main content
Glama

skein_close_many

Close many issues in one round-trip. Each item is processed independently in its own SERIALIZABLE transaction; on row-level failure (version_conflict, locked_by_other, pinned_no_force, ...) the rest of the batch still runs. Inspect results[i].ok per row to find the failures and results[i].error.code to branch on the cause (standing_has_open_children: details.childIds you can see + details.unavailableOpenChildren). Result rows preserve input order. A row returning serialization_retry rolled back its close without a version change; resend that row unchanged.

Caps at 100 items per call (matches the REST bulk endpoint). For >100 issues, split client-side. force=true needs force_unlock on each row's project and bypasses lock + version + pinned predicates uniformly across all rows. Per-row reason is required (non-empty after trim) — agents typically pass the same string in every item. Each item may carry an optional commits[] (max 10). Re-close is NOT idempotent — it overwrites closed_reason / closed_at per item; to add commits to already-closed issues use skein_commits_attach per issue. closeOutcome / closeTarget are per item, as on skein_close. closeOutcome is required when transitioning to closed; repeating a close without it preserves the previous outcome. Each row answers closeOutcome, plus closeLink when it named a target.

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": {
      "items": "<items>"
    },
    "name": "skein_close_many"
  }
}

Input Schema

NameRequiredDescriptionDefault
forceNoBypass lock + version + pinned predicates across the entire batch. Needs the key right `manage` (else `insufficient_scope`) and force_unlock on each row's project (project owner, space owner, instance admin); a row without it fails with `force_unlock_forbidden`. Default: false.
itemsYesPer-row close requests. Min 1, max 100. Order is preserved in results[].

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / items / items / 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 / items / items / 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 / items / items / 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 + version + pinned predicates across the entire batch. Needs force_unlock on each row's project (project owner, space owner, instance admin); a row without it fails with `force_unlock_forbidden`. Default: false."New value: +"Bypass lock + version + pinned predicates across the entire batch. Needs the key right `manage` (else `insufficient_scope`) and force_unlock on each row's project (project owner, space owner, instance admin); a row without it fails with `force_unlock_forbidden`. Default: false."
  3. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Goes well past the annotations: per-row SERIALIZABLE transactions, failure isolation so a locked/pinned/conflict row does not abort the batch, the `serialization_retry` rollback semantics with a resend instruction, force_unlock scope requirements per row's project, and explicit non-idempotence where a re-close overwrites closed_reason/closed_at. That is exactly the operational detail the annotations (readOnlyHint=false, idempotentHint=false) cannot convey.

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 behavior and failure model, then caps, then per-row fields, so an agent gets the essentials in the first sentence. Some duplication with the schema ("optional `commits[]` (max 10)") and a slightly repetitive closing about closeOutcome/closeLink, but nothing is filler.

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?

There is no output schema, so the description carries the return-shape burden and does: results[i].ok, results[i].error.code with a worked example (standing_has_open_children with details.childIds), input-order preservation, and the per-row closeOutcome/closeLink echo. For a batch mutation with partial-failure semantics, nothing an agent needs to act on the response 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?

With 100% schema coverage the baseline is 3, but the description adds real meaning beyond the schema: that `reason` is effectively a repeated constant string in practice, that `closeOutcome` becomes conditionally required on a transition and preserves the prior outcome otherwise, and that commits arrays are capped at 10. The `force=true` blast radius across the whole batch is also spelled out more concretely than the schema's per-property note.

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?

"Close many issues in one round-trip" gives a specific verb, resource, and batch scope, and the later reference to "closeOutcome / closeTarget are per item, as on skein_close" positions it against the singular sibling. An agent can tell this is the bulk-close path without opening the schema.

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?

Gives concrete routing and exclusion rules: cap of 100 with client-side splitting for larger sets, and an explicit redirect to `skein_commits_attach` per issue when adding commits to already-closed issues. It is clear about context but never states outright when to prefer `skein_close` over this tool for a single issue, leaving that inference to the reader.

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.