Skip to main content
Glama

Stop and delete a Mac

stop_mac
DestructiveIdempotent

Stops a Mac and deletes it with all its files except ~/drive, which is saved for the next Mac; billing ends. get_mac_session then shows cleanup_confirmed. Cannot be undone. Answers confirm_required while another API key is using it.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

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

Input Schema

NameRequiredDescriptionDefault
confirmNoAfter confirm_required: stop it anyway, only if it is yours.
session_idNoMac session ID (ses_…). Optional: without it, the account's running Mac.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / confirm
      Added value: +{
      +  "description": "After confirm_required: stop it anyway, only if it is yours.",
      +  "type": "boolean"
      +}
  2. Changed2 schema fields changed
    • changedInput schema / properties / session_id / description
      Previous value: -"Mac session ID (ses_…) returned by start_mac or list_mac_sessions."New value: +"Mac session ID (ses_…). Optional: without it, the account's running Mac."
    • removedInput schema / required
      Removed value: -[
      -  "session_id"
      -]
  3. Changed2 schema fields changed
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • changedOutput schema / (root)
      Previous value: -{
      -  "$schema": "http://json-schema.org/draft-07/schema#",
      -  "additionalProperties": {},
      -  "description": "The JSON response of the NoMac API for this operation",
      -  "properties": {
      -    "error": {
      -      "additionalProperties": {},
      -      "description": "Present only when the call failed",
      -      "properties": {
      -        "code": {
      -          "description": "Stable machine-readable error code, for example insufficient_credit",
      -          "type": "string"
      -        },
      -        "message": {
      -          "description": "What went wrong and what to do next",
      -          "type": "string"
      -        }
      -      },
      -      "required": [
      -        "code",
      -        "message"
      -      ],
      -      "type": "object"
      -    }
      -  },
      -  "type": "object"
      -}New value: +null
  4. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Goes well beyond the annotations (destructiveHint=true, idempotentHint=true): it discloses data retention semantics (~/drive is preserved for the next Mac), that billing ends, that the action is irreversible, and that a confirm_required state can be returned while another API key is using the machine. It even names the post-condition observable via get_mac_session (cleanup_confirmed).

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?

Three dense clauses with the destructive consequence front-loaded and no filler. The phrase "Answers confirm_required" is tersely idiomatic and slightly harder to parse than it needs to be, which is the only structural weakness.

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?

With no output schema, the description covers the salient return signal (get_mac_session showing cleanup_confirmed) and the confirm-required branch, which is what an agent needs before calling. It does not mention error behavior for a missing or already-deleted session, leaving a small gap for a 2-param destructive tool.

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 both confirm and session_id are already documented in the schema, which sets the baseline at 3. The description adds the reason the confirm flag exists (confirm_required answered while another key holds the Mac) but adds nothing about session_id or the optional default session.

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 compound verb (stop) and resource (Mac) plus the full scope of the effect: deletion of all files except ~/drive, with billing terminated. The consequence of the call is unambiguous and clearly distinct from read-only siblings such as get_mac_session or get_mac_checkout.

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?

Gives clear when-to-use context: it is the termination path, it is irreversible, and it explains the confirm_required flow when another API key holds the Mac. It does not explicitly route to alternatives (e.g., cancel_mac_job or letting a session expire), so the sibling differentiation is implied rather than stated.

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