Skip to main content
Glama

set_thread_block

DestructiveIdempotent

Set an explicit dispatch block on a thread to prevent claim_next and explicit claims until cleared; a required reason categorizes the block.

Instructions

Set (upsert) an explicit dispatch block on a thread (G14): claim_next skips it and an explicit claim is refused, until cleared. reason is the closed enum dag|gate|human|child|quota|unclaimable — not a free string. Distinct from DAG-children-must-be-terminal. Requires thread:transition.

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>",
      "reason": "<reason>"
    },
    "name": "set_thread_block"
  }
}

Input Schema

NameRequiredDescriptionDefault
reasonYes
thread_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv479.0.0

TDQS

A3.9/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing upsert semantics, the concrete downstream effect on claim_next and explicit claims, the persistence rule ('until cleared'), and the authorization requirement ('Requires thread:transition'). That is exactly the kind of operational context annotations 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 effect and scoping constraints in a few dense sentences; nearly every clause adds information. The parenthetical code '(G14)' is opaque internal shorthand that costs a little without adding meaning.

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 an existing annotation set and no output schema, the description supplies the effect, lifecycle, and permission gate needed to call it correctly. It is slightly thin on failure modes (e.g., unknown thread_id) but nothing essential is missing.

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 0%, so the description must carry parameter meaning; it does clarify that reason is a closed enum and 'not a free string', but the specific enum values are already visible in the schema. thread_id is never described beyond its name (presumably the target thread), leaving a gap against the low coverage baseline.

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?

States a specific verb and resource ('Set (upsert) an explicit dispatch block on a thread') and immediately describes the observable effect: claim_next skips it and explicit claims are refused. It also separates itself from the DAG-children-must-be-terminal mechanism, though it never names the sibling tools (clear_thread_block / get_thread_block) it pairs with.

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?

The 'until cleared' phrasing implies clear_thread_block is the undo path and the 'Distinct from DAG-children-must-be-terminal' clause heads off one confusion, but there is no explicit statement of when to choose this over a related tool such as set_thread_attributes or a wait. Usage is inferable rather than stated.

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