Skip to main content
Glama

Save Machine

save_machine
Destructive

Create or edit one machine, as the machines screen does. Omit id to create (name required); pass id to edit, where every omitted field keeps its value and an empty string clears it. Serial numbers are unique per account. operationId names the operation type the machine performs. Attached files and whether the machine is in use are left alone. Preview first; an edit lists each field that changes. 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": {
      "input": "<input>"
    },
    "name": "save_machine"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoThe machine id (GUID) to edit, from list_machines; omit to create.
inputYesThe fields to set.
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.6/5.0
Behavior5/5

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

Goes well beyond the annotations: it explains partial-update semantics (omitted fields preserved, empty string clears), a per-account uniqueness constraint on serial numbers, that attached files and in-use status are untouched, the required two-step preview/commit flow, the exact permission scopes (Write + manufacturing.execute) and the unpinned-credential requirement. The confirm-card note tells the agent how in-app assistant surfaces differ. None of this contradicts the destructiveHint=true annotation; it clarifies what is and is not destroyed.

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-loads the create/edit distinction and packs high-value facts into a short paragraph with no filler. Some sentences are dense run-ons (the edit-semantics sentence carries three separate rules), and the phrase 'as the machines screen does' is a vague referential aside, but nothing is 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?

For a destructive write with a nested object and a two-step commit, the description covers side effects, permissions, uniqueness constraints, and the preview/commit protocol, while the output schema carries the return-value burden. An agent has everything needed to call this correctly on the first try.

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 the schema lacks: that `name` is required on create, that an empty string clears a field while omission preserves it, and that `operationId` names the machine's operation type. It does not further explain `idempotencyKey` or `previewReceipt` beyond what the schema already documents.

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 ('Create or edit one machine') and immediately splits the two modes by the presence of `id`. An agent can tell this apart from `delete_machine` or the various `save_*` settings tools without opening the schema.

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 in-tool mode selection (omit `id` to create, pass `id` to edit) and mandates the preview-first workflow. It does not name or exclude sibling tools such as `delete_machine` or `list_machines`, so alternative-tool routing is left to inference, but the context for when to call this tool is unambiguous.

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