Skip to main content
Glama

validate_patch

Checks a synthesizer patch without rendering it and returns either a normalized patch with defaults filled in or exact validation errors.

Instructions

Check a patch without rendering. Returns ok + the patch with all defaults filled in, or exact errors.

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": {
      "patch": "<patch>"
    },
    "name": "validate_patch"
  }
}

Input Schema

NameRequiredDescriptionDefault
patchYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior4/5

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

With no annotations to lean on, the description does real work: it declares the tool is non-rendering (side-effect free) and discloses the return shape (ok flag plus the patch with defaults filled in, or exact errors). It does not discuss whether validation has any cost or side effects at all, which keeps it below a 5.

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 sentences, zero filler, with the non-rendering qualifier and the return contract front-loaded. 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?

The return-value contract compensates for the absent output schema, but for a tool whose sole parameter is an undocumented nested object, the definition leaves the caller unable to construct a valid patch without outside knowledge (e.g. a synth_guide tool). Adequate, 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 coverage is 0% for a single opaque nested 'patch' object with additionalProperties true, so the description must compensate and largely does not. The one useful signal, 'defaults filled in', implies partial patches are acceptable, but the patch's internal structure and key names are left entirely unexplained.

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?

States a specific verb and resource ('Check a patch') and adds a crucial scope qualifier ('without rendering') that distinguishes it from the render/render_batch siblings. It stops short of naming an alternative tool explicitly, but the operation and its boundary are unambiguous.

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 phrase 'without rendering' implies the natural use case (verify a patch before spending a render), but there is no explicit when-to-use statement, no preconditions, and no naming of the render tools to route to after a successful check.

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