Skip to main content
Glama

中断会话当前这一轮

piweb_abort_session
Destructive

Stops a running session by sending an abort signal, cancelling its current turn as if using the interface Stop button.

Instructions

给正在运行的会话发 abort,停掉它当前这一轮(等价于界面上的 Stop)。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sessionYes会话 id / 名称

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false. The description adds useful context by clarifying the scope of destruction ('current round' only) and equating it to a known UI action, which helps an agent understand it does not delete the session.

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?

A single, front-loaded sentence that conveys the action, target, effect, and a familiar UI equivalent with zero wasted words.

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 simple one-parameter mutation tool with full annotation coverage and no output schema, the description is nearly complete: it states what it does, the prerequisite ('running session'), and the limited scope of the interruption. Only minor details like idempotency or behavior on non-running sessions are absent.

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 coverage is 100%, so the single 'session' parameter is fully documented by the schema. The description adds no additional semantics about the parameter beyond what the schema provides, so the baseline of 3 is appropriate.

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

Purpose4/5

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

The description states a specific action: sending an abort to a running session to stop its current round, equivalent to the UI Stop button. It clearly distinguishes the effect from deleting a session, but does not explicitly name or contrast with any sibling tool.

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

Usage Guidelines3/5

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

Usage is implied: call it when a session is running and you want to interrupt the current round. There is no explicit when-not guidance or mention of alternatives (e.g., piweb_delete_session for full termination).

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