Skip to main content
Glama

sc_stop_all

Stop all currently playing audio synths immediately to halt sound playback and manage server resources in the SuperCollider audio synthesis environment.

Instructions

Stop all currently playing synths immediately

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function for the 'sc_stop_all' tool. It checks if the SuperCollider server is booted and, if so, executes the SuperCollider code 'Server.default.freeAll;' to stop all currently playing synths.
    case 'sc_stop_all': { if (!scServer.getBooted()) { return { content: [{ type: 'text', text: 'Error: SuperCollider server is not running.' }], isError: true, }; } await scServer.executeCode('Server.default.freeAll;'); return { content: [{ type: 'text', text: 'All synths stopped' }], }; }
  • The tool schema definition for 'sc_stop_all', including its name, description, and input schema (no parameters required). This is part of the tools array registered with the MCP server for listing available tools.
    { name: 'sc_stop_all', description: 'Stop all currently playing synths immediately', inputSchema: { type: 'object', properties: {}, }, },
  • src/index.ts:200-202 (registration)
    Registration of all tools (including 'sc_stop_all') by setting the ListToolsRequestSchema handler to return the tools array.
    server.setRequestHandler(ListToolsRequestSchema, async () => ({ 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/BradA1878/mcp-wave'

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