Skip to main content
Glama
m4l MCP server

m4l MCP server

device_put_file

Replace or add an embedded file in a frozen Max for Live device using a disk source or literal text; changes stay in memory until the device is saved.

Instructions

Replace or add an embedded file in a frozen device, from a file on disk (source) or literal text. New files get a directory record modelled on Max's own and (for frozen devices) a dependency_cache entry. type_code is the 4-char collective type (default from extension: JSON, TEXT, PNG , svg , JPEG ...). In memory until device_save.

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": "<name>"
    },
    "name": "device_put_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
pathYes
textNo
sourceNo
type_codeNo
add_dependencyNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations present, the description carries the full burden and does substantial work: it discloses that new files get a directory record, that frozen devices get a dependency_cache entry, and that changes are staged in memory rather than persisted. It does not say what happens on overwrite of an existing file or what is returned, which keeps it from a 5.

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?

Four short sentences, front-loaded with the action and scope, then the side effects, then the persistence caveat. Minor waste in the extension list ('PNG , svg , JPEG ...') with inconsistent spacing, but no sentence is redundant.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 6-parameter mutation tool with no annotations, no output schema, and 0% schema coverage, the description covers behavior and side effects well but leaves the file-exists/overwrite semantics, the meaning of `add_dependency: false`, and the return value unstated. Adequate, not complete.

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 description coverage is 0%, so the description must compensate — and it does for three parameters: `source` (file on disk), `text` (literal content), and `type_code` (4-char collective type defaulting from extension). `add_dependency` is only obliquely covered via the dependency_cache mention, and `name`/`path` are left to inference.

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?

States a specific verb+resource+scope: 'Replace or add an embedded file in a frozen device'. The read/remove counterparts among siblings (device_read_file, device_remove_file) are implicitly distinguished by the write verb, but the description never names an alternative, so it stops short of a 5.

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 closing note 'In memory until device_save' implies the correct workflow (call this, then persist with device_save), which is genuinely useful usage context. However, there is no explicit guidance on when to choose this over device_read_file/device_remove_file, nor on prerequisites such as whether the device must already be frozen.

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