Skip to main content
Glama
m4l MCP server

m4l MCP server

patch_presentation

Inspect a patcher’s presentation layout to identify box positions, bpatcher contents, overlapping controls, and controls outside the device area; optionally render a labelled wireframe PNG.

Instructions

Presentation layout of a patcher: every presentation box with its rect (sorted top-left to bottom-right), what each bpatcher shows, overlapping controls, and controls outside the device area. depth>1 includes bpatcher contents. render=true also returns a labelled wireframe PNG (bpatchers drawn with their contents).

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

Input Schema

NameRequiredDescriptionDefault
fileNo
pathYes
depthNo
scaleNo
renderNo
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?

No annotations are provided, so the description carries the full burden. It does disclose substantive behavior: sort order of boxes, inclusion of bpatcher internals at depth>1, detection of overlaps and out-of-bounds controls, and an optional labelled PNG. It never states that the operation is read-only/non-mutating, nor what the required path must point to, leaving safety-relevant gaps for a six-parameter tool.

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

Conciseness3/5

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

The output inventory is front-loaded, which is good, but the text is a dense run-on sentence with parenthetical asides and no separation between what is returned and how parameters change it. Every clause is substantive, yet the structure makes it harder to scan than necessary.

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?

There is no output schema and no annotations, so the description is the only source of truth. It covers the return shape reasonably well but omits mutation status, path/file/patcher semantics, and how scale interacts with render. For a six-parameter read/inspection tool that is adequate but not complete.

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 six parameters, and the description documents only two of them: depth (bpatcher recursion) and render (adds a wireframe PNG). The roles of path, file, patcher, and scale — including what scale controls — are left entirely unexplained. The added meaning is real but covers too little of the surface to compensate for zero schema documentation.

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 a specific resource and its contents: every presentation box with its rect, bpatcher contents, overlapping controls, and controls outside the device area. An agent can tell this is a layout-inspection tool rather than a mutation tool. It does not, however, distinguish itself from siblings such as patch_tree or patch_box, which likely also inspect structure.

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 statement of when to use this instead of patch_tree, patch_box, or patch_parameters. The only conditional guidance is parameter-level (depth>1, render=true), which describes output variation rather than tool selection. An agent must infer the use case from the output inventory alone.

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