Skip to main content
Glama

Cancel the running chat

dreamagent_cancel_chat
Destructive

DESTRUCTIVE — stops an AI edit that is currently running. Use ONLY when the user explicitly asks to stop/cancel the active edit. After cancellation, do NOT claim the requested change was completed — report that it was stopped.

Returns 'Cancellation requested: ' — e.g. 'Query cancelled', 'Cancellation requested' (durable run), or 'No active query found'. Afterwards poll dreamagent_get_chat_status / dreamagent_get_edit_progress until run_status reports 'cancelled'.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
session_keyYesthe session key of the running edit.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true, so the safety profile is covered, but the description goes further: it names the possible backend responses ('Query cancelled', 'Cancellation requested' for durable runs, 'No active query found') and prescribes the post-call workflow of polling until run_status reports 'cancelled'. That is meaningful behavioral context beyond the structured fields.

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?

The destructive warning is front-loaded in caps, followed by usage constraint, then return values, then follow-up steps. Every sentence carries operational value; no filler.

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 one-parameter destructive action with full annotation and schema coverage, the description supplies everything an agent needs: the trigger condition, the possible outcomes, and the required next step. Nothing material 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 100% for the single session_key parameter, so the schema carries the semantic load. The description adds no format, source, or retrieval guidance for session_key beyond what the schema states, which is the baseline case.

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?

States a specific verb and resource up front ('stops an AI edit that is currently running') and scopes it to a single running operation. An agent can distinguish it from siblings like dreamagent_get_chat_status or dreamagent_chat without opening the schema.

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?

Explicit when-to-use ('Use ONLY when the user explicitly asks to stop/cancel the active edit') and explicit when-not-to-say ('do NOT claim the requested change was completed'). It also names the follow-up tools (dreamagent_get_chat_status / dreamagent_get_edit_progress) and the target state to poll for.

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