Skip to main content
Glama

Delete a Stack record

komuta_delete_stack
Destructive

Delete a Stack the user names: its record, its stored secret values and its open plans are removed and the services, jobs, addons and domains it created are released and KEEP RUNNING unchanged (delete those separately if the user wants them gone). Refused while a run of the Stack is still in progress. The user must type the Stack's exact name; pass what they typed as confirmName, never fill it in yourself. Typical use: clearing leftover Stacks from failed attempts. Returns: { stackName, releasedResources: [logicalKey, ...] }. Show user: that the Stack was deleted and which resources were released and are still running (by name). Never show user: stackId or other GUIDs. Sends: the internal stackId and the name the user typed.

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": {
      "stackId": "<stackId>",
      "confirmName": "<confirmName>",
      "confirmed": "<confirmed>"
    },
    "name": "komuta_delete_stack"
  }
}

Input Schema

NameRequiredDescriptionDefault
stackIdYesInternal Stack GUID from komuta_list_stacks (items[].id).
confirmedYesTrue only after the user explicitly approved deleting this Stack.
confirmNameYesThe Stack name exactly as the user typed it to confirm.
organizationNoName of the organization to act in. Omit to use the one the connection is already signed in to. Use komuta_list_organizations to see the names; pass the name text exactly as listed (the data of a { untrusted, data } name), never an id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false and openWorldHint=true, so the safety profile is covered. The description nonetheless adds real behavior beyond them: the blast radius (secrets and plans destroyed, child resources only released), the refusal condition while a run is in flight, and a confirmation ritual where the agent must never fabricate confirmName. Rich supplemental context, though it stops short of discussing irreversibility or permissions.

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-loaded with the highest-stakes fact (children keep running), then refusal condition, then confirmation rule, then return/display guidance — a sound information hierarchy with virtually no filler. The closing 'Sends:' line largely restates what the confirmName and stackId sentences already established, so it is slightly redundant rather than wasted.

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?

There is no output schema, and the description compensates by stating the return shape ({ stackName, releasedResources }), what to show the user, and explicitly what never to reveal (GUIDs). For a destructive four-parameter tool this is complete enough to call 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, but the description goes past the schema by framing confirmName as a value that must be transcribed verbatim from the user and never self-filled, and by reiterating that stackId is internal and must not be surfaced. That meaning is not recoverable from the JSON Schema alone.

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?

Specific verb plus resource ('Delete a Stack') with an explicit inventory of what is removed (record, stored secrets, open plans) and what survives (services, jobs, addons, domains 'KEEP RUNNING unchanged'), which separates it from the sibling komuta_delete_service / komuta_delete_domain tools that operate on those children.

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

Usage Guidelines5/5

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

Gives a typical use case ('clearing leftover Stacks from failed attempts'), a hard precondition ('Refused while a run of the Stack is still in progress'), and an alternative path for child resources ('delete those separately if the user wants them gone'). Nothing about when to reach for it is left to inference.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources