Skip to main content
Glama

set_thread_attributes

DestructiveIdempotent

Replace a thread's task attributes in full to define work type, routing engine, threat-model flag, repo, acceptance criteria, and related metadata so tasks are routed and reviewed correctly.

Instructions

Replace a thread's task attributes in full. The kind says what sort of work it is (change, plan or review), the engine says who or what it is routed to (unattended, session or human), and threat_model marks work that needs a threat model. A claim_next that names an engine takes only work routed to that engine, so an unattended worker is never handed session or human work. A thread nobody described reads as a change with no engine and no threat model.

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>",
      "kind": "<kind>"
    },
    "name": "set_thread_attributes"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindYes
laneNothe service lane it may run in: batch (async, cheapest) or flex; omitted runs at standard rates
repoNothe repository the task changes, as owner/name (a GitHub URL is read as its owner/name); with linear_issue it says which half of a ticket the thread owns, where a workspace keeps [linear_issue, repo] unique
sizeNo
tierNothe change's review tier; omitted reads as B in the metrics
engineNoomit to leave the work unrouted
thread_idYes
acceptanceNohow a reviewer verifies the task; the worker must satisfy it
linear_issueNothe Linear issue the task is for, such as ENG-123; where the workspace turned claim comments on, the claim and release are said on it
threat_modelNo
author_familyNofor a review: the provider family that wrote the change under review; claim_next never hands the thread to a claimer of that family. Once set it is kept: a later set neither clears nor changes it

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv479.0.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and idempotentHint=true, so the description's job is to say what is destroyed — and "Replace … in full" does exactly that, warning that omission clears attributes. It also discloses the default read for an undescribed thread (change, no engine, no threat model) and the routing interaction with claim_next, which is genuine behavior beyond the annotations. It omits any permission or concurrency caveats.

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 sentences, front-loaded with the full-replacement rule that matters most for a destructive, idempotent mutation. Each sentence carries information, though the claim_next sentence is somewhat indirect for a setter tool and the field glossary is dense in a single run-on sentence.

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

Completeness3/5

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

For an 11-parameter destructive mutation with no output schema, the description covers the core attributes and their defaults but leaves the full-replacement claim in tension with author_family's documented "once set it is kept" behavior, an exception the agent must discover in the schema. Guidance on what happens to lane, tier, size, and acceptance when omitted is also absent from the description.

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?

With 64% schema coverage and 11 parameters, the schema already carries most meaning, and the description adds semantic framing for kind (sort of work), engine (routing target), and threat_model. It says nothing about lane, repo, size, tier, acceptance, linear_issue, or author_family beyond what the schema states, so it neither compensates for the uncovered third nor adds much to the covered fields.

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?

"Replace a thread's task attributes in full" gives a specific verb (replace), resource (thread attributes), and a scope qualifier (in full) that distinguishes this from partial setters like set_thread_owner or set_thread_block. It then names the three attributes it governs (kind, engine, threat_model). It does not explicitly contrast itself against the other set_thread_* siblings, so it stops 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?

Usage is implied rather than stated: the reader infers this is the tool for setting routing/kind/threat-model, and the claim_next sentence explains a downstream consequence of the engine value. There is no explicit "use this when…" or "do not use this when…" and no named alternative for partial edits, leaving the agent to work out that any omitted attribute is wiped.

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