Skip to main content
Glama

Cancel session

cancel_session
Destructive

Stop an in-progress Gumloop session and abort running streams, transitioning it to failed when queued or processing; completed or failed sessions remain unchanged.

Instructions

Cancel an in-progress session. If the session is currently processing or queued, any running stream is aborted and the session is transitioned to failed. If the session is already completed or failed, its current state is returned unchanged.

The response carries a session envelope but only id, agent_id, and state are populated. Explicit confirmation is required for this exact account operation. Runs can spend credits or trigger downstream actions; never resubmit unknown outcomes automatically.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
accountNoNamed private Gumloop account; selects private credentials and user/team identity.
confirmNoSet true only when the user asked for exactly this action.
session_idYesID of the session to cancel.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv3.0.0
    • changedInput schema / properties / confirm / description
      Previous value: -"Must be true for this exact requested account change, agent/flow execution, upload or deletion."New value: +"Set true only when the user asked for exactly this action."
  2. First observedv2.0.1

TDQS

A4.6/5.0
Behavior5/5

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

Adds substantial context beyond the annotations: it discloses the exact state transition, that a running stream is aborted, that the returned session envelope only populates id/agent_id/state, and that explicit confirmation is required. It also warns that runs can spend credits or trigger downstream actions, which annotations alone (destructiveHint, openWorldHint) do not convey.

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?

Front-loads the core action and state behavior, then adds response shape and confirmation guidance. Each sentence carries information, though the closing caution about resubmitting unknown outcomes is slightly advisory in tone rather than strictly definitional.

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?

No output schema exists, and the description compensates by explaining what the returned session envelope contains. Combined with the state-transition and confirmation details, an agent has everything needed to invoke this mutation correctly.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3. The description adds meaning by framing `confirm` as an explicit-confirmation requirement and calling this an 'exact account operation', reinforcing the account/confirm semantics beyond the schema text.

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 (Cancel) and resource (session) with the exact state machine it operates on: 'processing'/'queued' -> 'failed', with completed/failed sessions returned unchanged. This distinguishes it clearly from siblings like kill_flow, rename_session, and delete_skill.

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

Usage Guidelines4/5

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

Gives clear conditions for when the tool has effect (in-progress sessions) versus when it is a no-op (already completed/failed), plus a strong usage constraint: never resubmit unknown outcomes automatically. It does not explicitly name alternative siblings or when to prefer them, so it falls short of a 5.

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