Skip to main content
Glama
m4l MCP server

m4l MCP server

patch_find

Find boxes across embedded Max patchers by text query, maxclass, or attribute, returning file and box paths for inspection.

Instructions

Find boxes in all embedded patchers. query is a case-insensitive substring of text, varname, bpatcher name, parameter longname, hint or annotation (prefix 're:' for a regex). maxclass e.g. 'live.text', 'newobj', 'bpatcher'. attr is 'key' (has attribute) or 'key=value'. Returns file + box path for each hit.

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

Input Schema

NameRequiredDescriptionDefault
idNo
attrNo
fileNo
pathYes
limitNo
queryNo
maxclassNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations, "Find" only implies non-mutating behavior, but the description usefully specifies embedded-patcher scope, case-insensitive substring matching across named fields, opt-in regex via `re:`, attribute matching, and the result shape. It leaves no-match and error behavior, as well as how `limit` is applied, unstated.

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?

The description is front-loaded with purpose and then packs filter syntax and output shape into four compact sentences. Inline code markers make the dense information scannable, and there is no filler.

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?

It covers the core search behavior and result shape despite the absence of an output schema, which supports basic use once the target is known. For a seven-parameter tool with no annotations or schema descriptions, however, the missing target and scope parameter semantics prevent it from being complete.

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?

At 0% schema description coverage, the description compensates well for `query`, `maxclass`, and `attr` with matching rules, examples, and syntax. However, it says nothing about the required `path` or about `id`, `file`, and `limit`, leaving several invocation inputs semantically 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 opening sentence gives a specific operation, resource, and scope: finding boxes across all embedded patchers. The closing sentence further clarifies that each hit identifies a file and box path, although there is no explicit differentiation from sibling inspection tools.

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 filtering details imply use when locating boxes by text or metadata, class, or attributes. There is no explicit when-to-use or when-not guidance, no prerequisite explanation for the required target, and no named alternative for structural browsing or parameter inspection.

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