Skip to main content
Glama
SuperCollider Headless MCP Server

SuperCollider Headless MCP Server

by dheerajstvpm

export_wav

Renders a self-contained SuperCollider pattern or score to a 24-bit WAV file using non-real-time mode, enabling offline audio export without live playback.

Instructions

Render a self-contained SuperCollider pattern/score to a 24-bit WAV file using Non-Real-Time (Score.recordNRT) mode.

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": {
      "code": "<code>",
      "outputPath": "<outputPath>"
    },
    "name": "export_wav"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYesSuperCollider pattern/score code to render
durationNoRender duration in seconds
outputPathYesOutput WAV file path
sampleRateNoSample rate for rendering

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.6

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations provided, the description carries the full behavioral burden. It usefully discloses the NRT rendering mode and 24-bit output, which implies no live audio device is needed and rendering may run faster than real time, but it omits whether the call blocks until completion, whether an existing file is overwritten, and how failures surface.

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?

A single front-loaded sentence with no filler; the key facts (action, input type, output format, execution mode) arrive immediately.

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?

For a rendering tool with no annotations and no output schema, the definition should say what the call returns (e.g., the written file path) and whether rendering is synchronous. Those gaps are real but moderate given the schema is fully documented and the mode is stated.

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

Parameters4/5

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

Schema coverage is 100%, so all four parameters are already documented with defaults (duration 30s, sampleRate 48000). The description nonetheless adds real meaning beyond the schema: "self-contained" constrains the code parameter to require everything inline (no external buffers/samples), and "24-bit WAV" specifies output encoding that no schema field mentions.

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 concrete verb ("Render"), a specific resource (a SuperCollider pattern/score), the output artifact (24-bit WAV), and the execution mode (Non-Real-Time / Score.recordNRT). This is enough to distinguish it from a real-time playback tool like play_code, though it never names that sibling explicitly.

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?

Usage is only implied: the mention of NRT mode signals this is for offline/file rendering rather than live playback, but the description never states when to choose this over play_code or get_status, nor any preconditions (e.g., engine setup, existing output directory).

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