Skip to main content
Glama

agy_interrupt

Idempotent

Cancel an expected turn and its open requests to stop stale work, using task, turn, and request or operation IDs.

Instructions

Cancel the expected turn and its open requests.

Input Schema

NameRequiredDescriptionDefault
task_idYes
request_idNo
operation_idNo
expected_turn_idYes

Output Schema

NameRequiredDescriptionDefault
okYes
errorNo
statusNo
task_idNo
result_versionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

C2.4/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true, and destructiveHint=false, so the description owes context beyond that. It only restates that cancellation occurs, without saying whether in-flight work is discarded, whether cancellation is graceful or immediate, or what happens to requests already completed. No annotation contradiction, but minimal added value.

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

Conciseness3/5

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

A single short sentence with no wasted padding, but the brevity tips into under-specification rather than efficiency. The key term 'expected turn' is never grounded, so the sentence is compact but not fully intelligible.

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

Completeness2/5

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

An output schema exists, so return values need not be described. For a mutation tool with four parameters at zero schema coverage and an exclusive-or requirement between request_id and operation_id, the definition leaves too much unexplained for an agent to invoke it reliably.

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?

Schema description coverage is 0% across four parameters, including the anyOf requirement between request_id and operation_id. The description does not explain that choice, what task_id scopes, or how expected_turn_id guards against stale turns, so the agent must guess at the most consequential inputs.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a verb (cancel) and an object (the expected turn and its open requests), so the general intent is recoverable. However, the phrase 'expected turn' is unexplained jargon that only maps onto the 'expected_turn_id' parameter, and nothing distinguishes this from siblings like agy_close or agy_respond.

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

Usage Guidelines2/5

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

No when-to-use, when-not-to-use, or alternative is named. With siblings such as agy_close, agy_respond, and agy_resume in the catalog, an agent has no stated basis for choosing agy_interrupt over them.

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