Skip to main content
Glama

Delete Machine

delete_machine
Destructive

Delete a machine by id (GUID) or exact serial number, as the machines screen does. A machine with an operation running on it cannot be deleted: finish the operation first. Unfinished operations assigned to it lose the machine; the preview lists them. Requires Write + manufacturing.execute on an unpinned operator credential. In-app assistants get a confirm card the user applies.

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": {
      "machine": "<machine>"
    },
    "name": "delete_machine"
  }
}

Input Schema

NameRequiredDescriptionDefault
machineYesThe machine to delete: its id (GUID) or its exact serial number.
previewNoStep 1 of the required two-step write: set true to validate and receive a structured preview plus a single-use previewReceipt. Nothing changes until the commit call.
idempotencyKeyNoCaller-generated idempotency key; required with previewReceipt to commit.
previewReceiptNoStep 2 of the required two-step write: the receipt returned by the preview call. Supply together with a fresh idempotencyKey to commit; calls without it are refused.

Output Schema

NameRequiredDescriptionDefault
okNo
deletedNo
machineNo
previewNo
expiresAtNo
actionItemIdNo
confirmationNo
correlationIdNo
approvalResultNo
idempotencyKeyNo
previewReceiptNo
idempotentReplayNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and readOnlyHint=false, but the description adds real side-effect context: unfinished operations lose the machine and the preview lists them. It also discloses auth requirements and the confirm-card behavior. Slightly short of 5 only because it does not spell out whether deletion is reversible or what the resulting state of orphaned operations is.

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?

Four tight sentences, front-loaded with the action and identifier forms, then blocking condition, then auth, then UI nuance. No filler or restatement of the name.

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 destructive two-step write tool, the description covers the blocker, side effects, permission requirements, and the preview/commit split; an output schema exists so return-shape detail is correctly omitted.

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; the description still adds value by clarifying that the machines screen behaves identically and that preview surfaces the affected unfinished operations. It adds a little more than the schema alone, but not deep syntax guidance.

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 (delete) and resource (machine) plus the accepted identifier forms (GUID id or exact serial number). It is instantly distinguishable from save_machine and the other delete_* siblings, which target different resources.

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?

Explicitly gives the blocking condition ('A machine with an operation running on it cannot be deleted: finish the operation first') and the prerequisite permissions ('Write + manufacturing.execute on an unpinned operator credential'). It also explains the in-app assistant path (confirm card) so the agent knows the commit may be user-mediated.

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