Skip to main content
Glama

cancel_session

Stop an active agent session immediately by providing its session ID, preventing further operations and freeing resources.

Instructions

Cancel/stop the agent's current operation in a session.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sessionIdYes
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It only states the basic action without disclosing side effects, whether the operation is destructive, or how session state is affected. No mention of reusability or impact on messages.

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, direct sentence that clearly states the tool's purpose with no wasted words. It is appropriately concise and front-loaded with the action verb.

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?

The tool is simple, but the description only covers the action. It lacks usage context, parameter details, and behavioral consequences. Given no output schema or annotations, the description is insufficient for an agent to fully understand the tool's impact and appropriate use.

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?

The input schema shows one required string parameter sessionId, but the description provides no explanation or context for this parameter. Schema coverage is 0%, so the description should compensate but does not, leaving the agent to infer the parameter's purpose from its name alone.

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 clearly states the action (cancel/stop) and the target (agent's current operation in a session), distinguishing it from sibling tools like get_session_status or create_workspace. However, 'operation' is somewhat vague and could be more specific about what kinds of operations are cancellable.

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 explicit guidance on when to use this tool versus alternatives. It implies usage when one needs to stop an ongoing operation, but does not mention any prerequisites, exclusions, or contrast with related tools such as get_session_status or archive_workspace.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/rohanxdesign/hermes-conductor-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server