Skip to main content
Glama
m4l MCP server

m4l MCP server

device_revert

Discard unsaved in-memory edits to a Max for Live device or patcher file and reload its contents from disk.

Instructions

Discard in-memory edits and re-read the file from disk.

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": {
      "path": "<path>"
    },
    "name": "device_revert"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It usefully discloses that in-memory edits are discarded and the file is re-read from disk, which is the key destructive effect. It does not cover permissions, error behavior if the file is missing or unopened, or whether the on-disk file is modified, leaving meaningful gaps for a mutation-like operation.

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?

The description is a single, front-loaded sentence with no wasted words. It states the core action and effect immediately, making it easy to parse.

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?

For a low-complexity tool with one required parameter and no output schema, the description covers the essential action and its main side effect. It could mention preconditions or return behavior, but the core information needed to invoke the tool is present.

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 description coverage is 0%, so the description must compensate for the single 'path' parameter. It clarifies that 'path' refers to the file whose in-memory edits are discarded and re-read from disk, adding some meaning beyond the bare schema title. It does not specify path format, relative vs. absolute paths, or other constraints, so the compensation is minimal.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific action (discard in-memory edits) and the resulting behavior (re-read the file from disk), which clearly distinguishes it from save or read operations. It does not explicitly name a sibling, but the verb-resource combination is clear enough for an agent to identify the tool's role.

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

Usage Guidelines3/5

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

The description implies usage by explaining that it discards unsaved edits and re-reads the file, which suggests it is used to undo in-memory changes. However, it does not explicitly state when to use this tool versus alternatives like device_save or device_read_file, nor does it mention any exclusions or preconditions.

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