Skip to main content
Glama
m4l MCP server

m4l MCP server

patch_set_attrs

Set or remove Max patch box attributes, including nested dotted keys and Live parameter attributes, and block text edits that would leave existing lines dangling.

Instructions

Set/remove box attributes (dotted keys reach nested dicts). Changing an object's text re-infers its in/outlets and refuses if existing lines would dangle. set={'parameter': {...}} edits the Live parameter attributes and re-registers the longname. Ids cannot change.

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

Input Schema

NameRequiredDescriptionDefault
boxYes
setNo
fileNo
pathYes
unsetNo
allow_renameNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does real work: it discloses failure behavior ('refuses if existing lines would dangle'), a side effect of setting `text` (re-inferring in/outlets), re-registration of longnames for parameter edits, and an immutability constraint ('Ids cannot change'). It still omits whether removals via `unset` are reversible, what permissions or file state are required, and what the call returns.

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 sentences, front-loaded with the core action, followed by the two highest-risk behavioral caveats. Jargon like 'dotted keys' and 'refuses if existing lines would dangle' is terse but each clause carries information; nothing is padded.

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 six-parameter mutation tool with no annotations and no output schema, the definition covers the most dangerous behaviors but leaves gaps an agent needs: the purpose of `file`, the effect of `allow_rename` (only obliquely implied by 'Ids cannot change'), and any description of the response. Adequate but not complete.

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 0% across six parameters, so the description must compensate and only partly does. It adds genuine meaning for `set` (dotted-key nesting and the special 'parameter' key) and hints at `unset`, but `file`, `allow_rename`, `path`, and `box` receive no explanation beyond their names.

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 pair and resource: 'Set/remove box attributes', with a qualifier that dotted keys reach nested dicts. It implicitly distinguishes the parameter-attribute case ('set={'parameter': {...}} edits the Live parameter attributes') from the general attribute case, though it never names a sibling such as patch_parameters or patch_box to route the agent explicitly.

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 set/unset framing implies when to use it (modifying attributes on an existing box), and the note about `text` gives a concrete precondition. However, there is no explicit guidance on when to prefer this over siblings like patch_box, patch_edit_batch, or patch_parameters, and no stated prerequisites for the required `path`/`box` identity.

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