Skip to main content
Glama

task_block

DestructiveIdempotent

Block a task by providing a reason; optionally compare-and-swap using expected revision, while keeping the run lease alive.

Instructions

Block a task with the reason. Omit expected_revision to block the current revision. Keeps your run lease alive.

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": {
      "task_id": "<task_id>",
      "reason": "<reason>"
    },
    "name": "task_block"
  }
}

Input Schema

NameRequiredDescriptionDefault
reasonYesNon-blank reason for blocking the task.
task_idYesCanonical UUIDv7 task identifier.
expected_revisionNoOptional current task revision for compare-and-swap; omit to block the current revision.

Output Schema

NameRequiredDescriptionDefault
taskNo
errorNo
schema_versionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=true, and readOnlyHint=false, so the safety profile is covered structurally. The description adds one genuinely valuable behavioral fact beyond that — "Keeps your run lease alive" — which an agent cannot infer from annotations, but it omits other mutation consequences such as whether the block is reversible or what happens to dependent work.

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?

Three short sentences with the action first, the parameter nuance second, and the lease side effect last; nothing is padded and no sentence is redundant.

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?

With an output schema present the description need not explain return values, and annotations carry the destructive/idempotent profile. What remains is the meaning and consequences of the "blocked" state (reversibility, effect on downstream task_ready/task_list behavior), which the description does not cover.

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 100%, so task_id, reason, and expected_revision are all documented in the schema itself, and the description's expected_revision note largely restates the schema's own wording. Baseline 3 is appropriate since the description adds little semantic meaning the schema does not already carry.

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?

The description leads with a specific verb+resource ("Block a task") and names the required input (the reason), which cleanly separates it from completion-oriented siblings like task_done or task_commit. It stops short of explicitly contrasting itself with those siblings, so the differentiation is inferable rather than stated.

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 second sentence gives real operational guidance on the compare-and-swap path (omit expected_revision to block the current revision), which tells an agent how to call it in the simple case. However, there is no guidance on when blocking is the right action versus finishing, handing off, or progressing a task, and no stated prerequisites or recovery expectations.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.