Skip to main content
Glama

Interrupt Sage Session

interrupt_sage_session
Idempotent

Interrupt a running Sage computation while retaining variables defined so far, so you can regain control without losing work.

Instructions

Interrupt a running Sage computation while keeping variables defined so far

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sessionNoWorkspace to use, as a name or a portable handle. Workspaces have independent variables. A name is scoped to this MCP session; a handle returned by start_sage_session (workspace_token) reaches the same workspace across reconnects and is a bearer credential -- keep it secret. Omit for 'default'.default

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
messageNoSession cleared

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.7.0
    • changedInput schema / properties / session / description
      Previous value: -"Named workspace to use. Workspaces have independent variables; omit for 'default'."New value: +"Workspace to use, as a name or a portable handle. Workspaces have independent variables. A name is scoped to this MCP session; a handle returned by start_sage_session (workspace_token) reaches the same workspace across reconnects and is a bearer credential -- keep it secret. Omit for 'default'."
  2. Addedv0.5.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations declare readOnlyHint=false, destructiveHint=false, and idempotentHint=true. The description adds the key behavioral trait that variables are preserved, which goes beyond the annotations. It does not contradict annotations and provides useful context about the non-destructive nature of the interrupt. Minor gaps remain, such as what happens to the session after interruption (e.g., becomes idle or can resume), but the description covers the core behavior.

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 description is a single sentence with zero fluff, front-loading the verb and resource, and immediately conveying the key preservation guarantee. Every word adds value.

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?

For a tool with one optional parameter and an output schema, the description sufficiently conveys purpose and effect. It does not mention error conditions (e.g., no running computation) or session lifecycle after interrupt, but these are minor for a simple interrupt operation. The description is complete enough for an agent to call it 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 session parameter is fully documented in the schema. The tool description does not add any parameter-specific guidance beyond what the schema already provides, so it earns the baseline score of 3 for a well-covered schema.

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 clearly states the verb 'interrupt' and the resource 'Sage computation', and explicitly notes that variables defined so far are preserved, distinguishing it from siblings like reset_sage_session (which would clear variables) and stop/cancel session (which likely end the session). It is specific and non-tautological.

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?

The description implies the usage context: use when a computation is running and you want to stop it without losing the workspace state. However, it does not explicitly name alternatives or state when-not to use it, such as 'if you want to end the session, use cancel_sage_session instead'. The 'while keeping variables defined so far' clause provides partial differentiation but leaves the exclusion implicit.

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