Skip to main content
Glama
m4l MCP server

m4l MCP server

patch_connect

Connects a source box outlet to a destination box inlet in the same Max patcher, validating 0-based outlet and inlet indices against each box.

Instructions

Connect src outlet -> dst inlet (0-based). Both boxes must be in the same patcher; indices are checked against the boxes' numoutlets/numinlets.

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>",
      "src": "<src>",
      "outlet": "<outlet>",
      "dst": "<dst>",
      "inlet": "<inlet>"
    },
    "name": "patch_connect"
  }
}

Input Schema

NameRequiredDescriptionDefault
dstYes
srcYes
fileNo
pathYes
inletYes
outletYes

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, the description carries the full burden, and it does disclose one real behavioral trait: outlet/inlet indices are validated against the boxes' numoutlets/numinlets, implying an error path. It says nothing about idempotency, what happens if the connection already exists, what is returned, or whether the patch is saved afterward — all material for a mutation tool with zero annotation coverage.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two tight sentences with no filler; the core connect semantics and the indexing convention are front-loaded, and the constraint follows immediately. Nothing here could be cut without losing information.

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?

Six parameters, five required, no annotations, and no output schema: the description covers only four of the six inputs and never explains "path", which is required for every call. For a mutation tool with this much undocumented surface, the definition falls short of what an agent needs to invoke it confidently.

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% and the schema fields carry only titles, so the description is the sole source of meaning. It usefully explains src/dst as boxes, outlet/inlet as 0-based indices, and their validation, but leaves the required "path" parameter and the optional "file" parameter completely undefined.

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 gives a specific verb plus directional resource pair ("Connect src outlet -> dst inlet") and adds the 0-based indexing convention, so the operation is unambiguous. It does not name patch_disconnect or patch_edit_batch as the contrasting alternative, so differentiation from siblings is left implicit.

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 precondition "Both boxes must be in the same patcher" is a genuinely useful constraint that tells an agent when this call is valid. Beyond that, there is no guidance on when to prefer this over patch_edit_batch for bulk wiring, nor any statement about pairing with patch_disconnect, so usage is only implied.

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