Skip to main content
Glama

clear_thread_block

DestructiveIdempotent

Clears an explicit dispatch block on a thread and emits BlockedResolved so waiters can observe the unblock; returns false when the thread was not blocked.

Instructions

Clear an explicit dispatch block (G14). Emits BlockedResolved so waiters can observe the unblock. {cleared} is false when it was not blocked. 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>"
    },
    "name": "clear_thread_block"
  }
}

Input Schema

NameRequiredDescriptionDefault
thread_idYes

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 cover the safety profile (destructive=true, idempotent=true, readOnly=false), and the description adds genuine context beyond them: it emits a BlockedResolved event so waiters observe the unblock, returns {cleared}=false on a no-op, and requires the thread:transition scope. What is not covered is error behavior (e.g. wrong thread, missing block) or whether clearing affects waiters other than through the event.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four short sentences, front-loaded with the operation and its scope, then the observable side effect, then the no-op return value, then the auth requirement. No sentence is padding; each adds a distinct fact.

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 single-parameter mutation with no output schema, the definition supplies the side effects, the return-value semantics, and the authorization requirement. The remaining gap is parameter meaning and behavior on invalid input, both of which an agent would want before calling a destructive tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The single parameter thread_id has 0% schema description coverage, and the description says nothing about what it identifies — presumably the blocked thread, but that is inference. With coverage this low the description is expected to compensate and it does not, leaving the parameter's meaning entirely to convention.

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 ('Clear') and a precisely scoped resource ('an explicit dispatch block (G14)'), with an internal code that distinguishes it from other block flavors such as lineage blocks. It does not name sibling tools like set_thread_block or get_thread_block, so differentiation is implied rather than spelled out.

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 prerequisite 'Requires thread:transition' tells the agent about the permission gate, and the mention that {cleared} is false when nothing was blocked implies the call is safe to attempt repeatedly. There is no explicit when-to-use guidance relative to set_thread_block or clear_thread_lineage, so selection between block-clearing tools is left to inference.

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