Skip to main content
Glama

Block procedure step

block_step

Write: block your attempt with a reason; procedure becomes WAITING_HUMAN (needs grant). Then run await_human: one block, then up to 3 poll retries spaced by retry_after, then tell the user. Use complete_step to finish successfully instead.

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": {
      "attempt_id": "<attempt_id>",
      "reason": "<reason>"
    },
    "name": "block_step"
  }
}

Input Schema

NameRequiredDescriptionDefault
grantNoRaw grant token; optional if already in procedure id (#grant= or ?grant=)
reasonYesWhy the step is blocked; shown to the human
attempt_idYesattempt UUID from take_step/resume_step
procedure_idNoOptional; used only to extract #grant=

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare this is a write operation that is not read-only, not destructive, and not idempotent. The description adds substantial behavioral context: it says the procedure enters WAITING_HUMAN and requires a grant, then describes the await_human flow with one block and up to three poll retries spaced by retry_after. This goes well beyond what the annotations provide.

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?

The description is front-loaded with the core action and is largely free of filler. It is somewhat dense with follow-up retry details, but each part serves to guide correct behavior and there is no redundant or empty phrasing.

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

Completeness5/5

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

For a write tool with no output schema, the definition covers the state transition, grant requirement, follow-up await_human behavior, retry limits, and the alternative success path via complete_step. The remaining parameter details are fully handled by the schema, so an agent has enough context to invoke the tool correctly.

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 the schema already documents all four parameters including attempt_id, reason, and grant. The description only briefly mentions reason and grant without adding syntax, format, or constraints beyond the schema, so the baseline of 3 applies.

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?

The description states a specific action (block the attempt) and its immediate consequence (procedure becomes WAITING_HUMAN, needs grant). It explicitly contrasts with complete_step, so an agent can distinguish this from the success path without opening schemas.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It tells the agent when to use this tool (to block an attempt with a reason) and names the clear alternative for successful completion (complete_step). It also specifies the follow-up sequence with await_human, including retry limits.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources