Skip to main content
Glama

link_thread_artifact

Idempotent

Attach an uploaded workspace artifact to a thread as evidence by its sha256 hash, moving the thread's version. Requires a prior upload and workspace:write; relinking keeps the first link.

Instructions

Link an artifact your workspace holds to a thread as evidence, by its sha256. Upload it first; a hash your workspace does not hold is not found. Linking twice keeps the first link. Moves the thread's version. 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": "link_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

A4.4/5.0
Behavior5/5

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

Beyond the annotations it discloses a non-obvious side effect ('Moves the thread's version'), an authorization requirement ('Requires workspace:write'), and failure semantics ('a hash your workspace does not hold is not found'). The duplicate-link rule reinforces idempotentHint=true with concrete behavior rather than merely restating it.

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 sentences, front-loaded with the core action and followed by prerequisites, edge cases, and permissions. Nearly every clause earns its place; only the version-move sentence is terse enough to need a beat of interpretation.

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?

For a two-parameter mutation with no output schema, the description covers purpose, precondition, idempotent behavior, side effect, and auth scope — everything needed to call it correctly. Nothing material is left for the agent to guess.

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 coverage is 50%: sha256 is documented in the schema, and the description adds that it must be a hash the workspace holds, but thread_id carries no description in either place. The added meaning is real but partial, so this sits at the baseline for a partially documented schema.

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?

The description names a specific verb and resource ('Link an artifact ... to a thread as evidence') and pins the identifier ('by its sha256'), which separates it cleanly from unlink_thread_artifact and from upload_artifact. An agent knows exactly what operation this performs 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?

It gives a concrete precondition — 'Upload it first' — and an error condition for hashes the workspace does not hold, which tells the agent when this call will fail and what to do instead. It does not explicitly name sibling alternatives (e.g. unlink_thread_artifact), so it stops short of full when/when-not routing.

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