Skip to main content
Glama
m4l MCP server

m4l MCP server

patch_box

Retrieve the full JSON for a specific box in a Max for Live device or .maxpat patch; set include_patcher=true to expand embedded subpatcher details instead of a summary.

Instructions

Full JSON of one box. An embedded subpatcher is summarised unless include_patcher=true.

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_box"
  }
}

Input Schema

NameRequiredDescriptionDefault
boxYes
fileNo
pathYes
include_patcherNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/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 disclosure burden. It does add one genuinely valuable behavior — that embedded subpatchers are summarised by default and expanded only with include_patcher=true — but it says nothing about read-only nature, failure modes for a bad path or missing box, or output shape.

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?

Two short sentences, front-loaded, with zero padding. The brevity is efficient but borders on under-specification, since the first sentence lacks an explicit verb and the whole definition is only ~15 words.

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

Completeness2/5

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

For a four-parameter tool with no annotations, no output schema, and 0% schema coverage, the description covers roughly one parameter and one behavior. An agent could not reliably construct a correct call — especially for the required 'box' and 'path' arguments — from this definition alone.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/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 explain all four parameters. It clarifies only include_patcher; path, box, and file are left as bare titles, leaving ambiguous whether 'box' is an ID, index, or name and what 'file' selects.

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 names the resource and scope precisely: full JSON of a single box, i.e. a per-box read. It stops short of differentiating against siblings like patch_tree or patch_find, and it never states an explicit verb (get/read), so an agent must infer the operation from the noun phrase.

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

Usage Guidelines2/5

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

There is no when-to-use guidance and no mention of alternatives such as patch_tree or patch_find that could also surface box data. The agent gets no signal about when this tool is the right choice versus its siblings.

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