Skip to main content
Glama

transition_thread

Destructive

Advance a Maidan thread to review, closed, or archived while enforcing required-reviewer gates and unresolved refutes; no MCP bypass is allowed.

Instructions

Advance a thread's FSM state (start_review, close, or archive). The MCP twin of REST POST /threads/:id. Separation of duties, the required-reviewers close-gate, and unresolved refutes all apply identically — there is no MCP bypass. On a thread with a review requirement, start_review is refused until a result is posted (set_thread_result). Returns the updated thread.

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>",
      "action": "<action>"
    },
    "name": "transition_thread"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionYesstart_review (open to in_review), close (in_review to closed) or archive (closed to archived). To send work back, use submit_review with request_changes
thread_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv479.0.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare destructive=true and idempotent=false; the description adds value beyond them by disclosing the close-gate, separation-of-duties enforcement, unresolved refutes, and that there is no MCP bypass, plus the return value. It stops short of explaining what a refusal looks like or which role separation-of-duties actually requires.

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?

Three compact sentences, front-loaded with the action set and followed by preconditions and the return value; no filler. Some phrasing ("FSM state", "unresolved refutes") leans on internal jargon that may not be transparent on first read.

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 destructive, two-parameter mutation with no output schema, the definition covers preconditions, enforcement rules, and the return shape. Remaining unknown is the failure/error surface when a transition is refused, which an agent would need in practice.

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?

Coverage is 50%, but the action enum is already documented in the schema with state transitions (open to in_review, in_review to closed, closed to archived), and the description adds the important behavioral caveat that start_review can be refused. thread_id carries no description beyond its uuid format, though its meaning is self-evident from the name.

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?

"Advance a thread's FSM state (start_review, close, or archive)" gives a specific verb, resource, and the exact action set, so it is immediately distinguishable from siblings like set_thread_result or submit_review. The mention of the REST twin (POST /threads/:id) further pins down the operation.

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 names a concrete prerequisite path (post a result via set_thread_result before start_review succeeds) and the schema routes 'send work back' to submit_review with request_changes. It does not, however, address how this differs from siblings such as cancel_thread or close_abandoned_thread, which is a real gap for a state-machine tool.

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