Skip to main content
Glama

craftos_session_destroy

Destructive

Stops a session and deletes its scratch data. If another user started it, returns an owner-naming error unless force is true.

Instructions

Stop a session and delete its scratch data. A session someone else started (craftos_session_list's others) is left running with an error naming its owner, unless force is true.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "id": "<id>"
    },
    "name": "craftos_session_destroy"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesId returned by craftos_session_create.
forceNoStop it even if someone else started it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.7.0

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only say destructiveHint=true and openWorldHint=false; the description adds the crucial substance: scratch data is deleted, sessions owned by others are left running, and the failure surfaces an error naming the owner unless force is true. That is exactly the pre-invocation risk context a destructive tool needs.

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?

Two short sentences, zero filler, with the destructive effect front-loaded ahead of the conditional ownership caveat. Every clause carries decision-relevant information.

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 two-parameter destructive tool with no output schema, the definition covers effect, ownership constraint, override flag, and error behaviour. Nothing an agent needs to invoke it safely is missing.

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, but the description adds real meaning: force is framed as the escape hatch for the ownership guard rather than merely 'stop it even if someone else started it', clarifying the failure mode it prevents. `id` semantics are left entirely to the 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?

States a specific verb and resource pair (stop a session, delete its scratch data), which goes beyond a bare 'destroy'. It also distinguishes itself from session lifecycle siblings by naming craftos_session_list's `others` field, so an agent can tell it apart from create/list without opening schemas.

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?

Clearly states the ownership guard and the condition that overrides it (force=true), so the agent knows when this call will fail and how to escalate. It doesn't mention a non-destructive alternative to stop-only behaviour, but no such sibling is evident from the name set.

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