Skip to main content
Glama

unlink_thread_artifact

DestructiveIdempotent

Removes an artifact from a thread by SHA-256 and reports whether it was linked, updating the thread version when removed. Requires workspace:write.

Instructions

Unlink an artifact from a thread. Returns whether it was linked. Moves the thread's version when it was. Requires workspace:write.

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": {
      "thread_id": "<thread_id>",
      "sha256": "<sha256>"
    },
    "name": "unlink_thread_artifact"
  }
}

Input Schema

NameRequiredDescriptionDefault
sha256Yesthe artifact's sha256, hex
thread_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv479.0.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=true, and readOnlyHint=false, so the safety profile is covered. The description adds real value beyond that: it states the return value ('Returns whether it was linked'), an otherwise-invisible side effect ('Moves the thread's version when it was'), and the auth scope required. It does not clarify whether the artifact record itself survives unlinking, which matters given destructiveHint=true.

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?

Four short, front-loaded sentences that each convey a distinct fact (action, return value, side effect, permission). Telegraphic phrasing but no wasted wording; slightly clipped style costs it a point.

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

Completeness4/5

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

For a two-parameter mutation with no output schema, the description supplies the return shape, the thread-version side effect, and the permission requirement — everything an agent needs to invoke it correctly. The only real gap is whether the underlying artifact is retained after unlinking.

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 50%: sha256 is documented in the schema while thread_id carries only a uuid format hint. The description adds no meaning about either parameter, so a baseline 3 is appropriate given the schema does half the work.

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?

The description opens with a specific verb+resource pair, 'Unlink an artifact from a thread,' which an agent can immediately distinguish from the sibling link_thread_artifact by the verb alone. It does not explicitly name the sibling or contrast behavior, so it falls short of a 5.

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

Usage Guidelines3/5

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

There is no explicit when-to-use versus when-not-to-use guidance; the agent must infer that this is the inverse of link_thread_artifact. The 'Requires workspace:write' prerequisite gives useful context for eligibility but is not the same as routing guidance.

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

Deploy Server

Other Tools