Skip to main content
Glama

stop_stream

Stop the current active stream managed through Restream MCP Server. Use this tool to end streaming sessions across multiple platforms like YouTube, Twitch, and Facebook.

Instructions

Stop the current active stream

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • MCP tool handler execution block for 'stop_stream' tool: invokes restreamClient.stopStream() and returns a success message.
    case 'stop_stream': { await restreamClient.stopStream(); return { content: [ { type: 'text', text: 'Stream stopped successfully', }, ], }; }
  • Core implementation of stopStream method: sends POST request to Restream API endpoint '/user/stream/stop' to stop the current stream.
    async stopStream(): Promise<void> { try { await this.axiosInstance.post('/user/stream/stop'); } catch (error) { throw this.handleError(error, 'Failed to stop stream'); } }
  • src/index.ts:158-166 (registration)
    Tool registration definition including name 'stop_stream', description, and input schema (no parameters required).
    { name: 'stop_stream', description: 'Stop the current active stream', inputSchema: { type: 'object', properties: {}, required: [], }, },

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/shaktech786/restream-mcp-server'

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