Skip to main content
Glama
j0KZ
by j0KZ

create_from_template

Generate a Pure Data patch from a parameterized template. Choose from synth, sequencer, reverb, mixer, drum-machine, clock, chaos, maths, turing-machine, granular, or bridge, and specify parameters to customize the output.

Instructions

Generate a Pd patch from a parameterized template. Available: synth, sequencer, reverb, mixer, drum-machine, clock, chaos, maths, turing-machine, granular, bridge. Each template accepts specific params (e.g. synth: waveform, filter; sequencer: steps, bpm; drum-machine: voices, bpm, morphX, morphY). The complete .pd file content is ALWAYS returned in the response — present it directly to the user. STOP after presenting the result. Do NOT run bash, ls, mkdir, cat, cp, mv, or ANY file/shell operations after this tool. Do NOT try to save or verify files — everything is already handled. Just show the content to the user.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
templateYesTemplate name: "synth", "sequencer", "reverb", "mixer", "drum-machine", "clock", "chaos", "maths", "turing-machine", "granular", or "bridge".
paramsNoTemplate-specific parameters as a JSON object. Synth: { waveform: sine|saw|square|noise, filter: lowpass|highpass|bandpass|moog|korg, frequency: Hz, cutoff: Hz, amplitude: 0-1, envelope: adsr|ar|decay|none }. Sequencer: { steps: 1-64, bpm, notes: [MIDI 0-127], midiChannel: 1-16, velocity: 0-127 }. Reverb: { variant: schroeder|simple, roomSize: 0-1, damping: 0-1, wetDry: 0-1 }. Mixer: { channels: 1-16, stereo: bool }. Drum-machine: { voices: [bd,sn,hh,cp], tune: 0-1, decay: 0-1, tone: 0-1, amplitude: 0-1 }. Clock: { bpm, divisions: [1,2,4,8] }. Chaos: { outputs: 1-3, speed: 0-1, r: 3.5-4.0 }. Maths: { channels: 1-2, rise: ms, fall: ms, cycle: bool, outputRange: unipolar|bipolar }. Turing-machine: { length: 2-16, probability: 0-1, bpm, range: 1-127, offset: 0-127 }. Granular: { grains: 1-4, grainSize: 10-500, pitch: 0.25-4.0, position: 0-1, freeze: bool, wetDry: 0-1 }. Bridge: { protocol: osc|fudi, port: 1-65535, routes: [string] }.
outputPathNoOptional ABSOLUTE file path to write the .pd file. Only use if the user explicitly requests saving to a specific path. The .pd content is always returned in the response regardless.
Behavior4/5

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

Discloses key behaviors: returns complete .pd content, handles everything internally, and warns against extra commands. With no annotations, description carries full burden; it effectively communicates the tool's safety and output expectations, though could be more explicit about default file creation.

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?

Well-structured with purpose first, then templates, then behavioral instructions. Every sentence contributes, but length could be reduced slightly without losing clarity. Still, it's efficient for the complexity.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Covers template options, parameter details, output behavior (content always returned), and optional writing. No output schema, but description compensates by explaining the response content. Lacks error handling details but sufficient for agent invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, but description adds significant value by listing template-specific parameter examples (e.g., synth: waveform, filter; drum-machine: voices, morphX, morphY) with exact formats, going well beyond the schema's brief descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Clearly states it generates a Pd patch from a parameterized template, lists 11 specific templates, and distinguishes from sibling tools like analyze_patch, validate_patch, and send_message. The verb 'Generate' and resource 'Pd patch' are specific.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly instructs when to use (for template-based patches) and when not to (no file/shell operations after). Provides a clear STOP message and alternatives (e.g., optional outputPath only if user requests). This is comprehensive guidance.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/j0KZ/synthlab-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server