Skip to main content
Glama
m4l MCP server

m4l MCP server

patch_trace

Trace message flow from a Max for Live box upstream or downstream, crossing subpatchers and send/receive links to debug control and signal routing.

Instructions

Follow the message flow from a box for depth hops: direction 'out' (downstream) or 'in' (upstream). port limits the first hop to one outlet (out) or inlet (in). Crosses into/out of subpatchers, bpatchers and abstractions via inlet/outlet objects, and (follow_names) jumps send->receive (s/r, send~/receive~, value, message-box ';name' sends) across the whole device.

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

Input Schema

NameRequiredDescriptionDefault
boxYes
fileNo
pathYes
portNo
depthNo
max_hopsNo
directionNoout
follow_namesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/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 disclose real behavioral traits: traversal crosses into and out of subpatchers, bpatchers and abstractions via inlet/outlet objects, and `follow_names` jumps send->receive pairs across the whole device. It does not state that the operation is non-mutating, nor does it explain how `max_hops` truncates results or what a traversal result looks like.

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?

The description is front-loaded with the core action and hop semantics, then layers on scoping and traversal rules in a compact three-sentence form. The parenthetical enumeration of send/receive variants is dense and slightly slows reading, but every clause carries information.

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 an eight-parameter graph-traversal tool with no annotations and no output schema, the description establishes the traversal model well but leaves the required `path`/`box` inputs and the `max_hops` safety valve unexplained, and gives no hint of the result shape an agent should expect.

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% across eight parameters, so the description must compensate, and it does explain four of them in meaningful terms: `depth`, `direction`, `port` and `follow_names`. The required `path` and `box`, plus `file` and `max_hops`, receive no explanation at all, leaving roughly half the surface undocumented.

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 uses a specific verb and resource: 'follow the message flow from a box' for a given number of hops, with directions defined as downstream ('out') and upstream ('in'). It is clearly distinct from sibling tools that merely list connections, though it never names an alternative to disambiguate further.

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?

Usage is implied through the 'out'/'in' direction semantics and the note that `port` restricts the first hop to a single outlet or inlet, which tells an agent how to scope a trace. There is no explicit when-to-use versus when-not guidance and no reference to alternatives such as patch_connections for a simple adjacency view.

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