Skip to main content
Glama
m4l MCP server

m4l MCP server

patch_tree

Shows the embedded subpatcher, bpatcher, and abstraction instance hierarchy for a Max for Live device, with instance paths and source files to trace parameter and file usage.

Instructions

Instance hierarchy of a device: every embedded subpatcher, bpatcher and abstraction instance with its instance path (the key Live's parameter registry uses) and the file it shows. Also which files are used where.

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": "patch_tree"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
max_depthNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.8/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden; it discloses what data is enumerated and adds genuine context by explaining the significance of instance paths. It never states that the operation is read-only, how deep traversal goes, or what happens at max_depth, so an agent cannot fully predict behavior.

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 compact sentences with no filler, front-loading the resource being described. The trailing fragment 'Also which files are used where' is slightly loose but still earns its place by describing an additional returned facet.

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?

With no output schema, the description must explain returns, and it does reasonably well by enumerating instance paths and file usage. It leaves both input parameters and traversal/limits behavior unexplained, which is a meaningful gap for a tool whose only control knob is depth.

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% across both parameters. The description does not say what form 'path' takes (device path? subpatcher path?) or what 'max_depth' controls or how the default of 8 affects results, so it fails to compensate for the undocumented schema.

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

Purpose3/5

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

The description names the concrete content returned: embedded subpatchers, bpatcher and abstraction instances, their instance paths, and the files they use. However, it is phrased as a noun-phrase inventory rather than a verb+resource statement, and it does nothing to separate this from siblings such as patch_box, patch_parameters, or patch_find, which an agent could easily confuse with a hierarchy dump.

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 explicit when-to-use or when-not-to-use guidance and no named alternative. The parenthetical that the instance path is 'the key Live's parameter registry uses' implies a follow-up relationship with patch_parameters, but the agent must infer that linkage itself.

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