Skip to main content
Glama
vuvuvu

StreamerSongList MCP Server

by vuvuvu

getStreamerByName

Retrieve detailed information about a specific streamer using their name with the StreamerSongList MCP Server, enabling efficient management of song requests and interactions with streaming platforms.

Instructions

Fetch detailed information about a specific streamer

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
streamerNameYesThe name of the streamer

Implementation Reference

  • The core handler for the getStreamerByName tool. It resolves the streamer name using getEffectiveStreamer and fetches the streamer details from the StreamerSongList API.
    case "getStreamerByName": { const streamerName = getEffectiveStreamer((args as any)?.streamerName); const data = await makeApiRequest(`/streamers/${encodeURIComponent(streamerName)}`); return { content: [ { type: "text", text: JSON.stringify(data, null, 2), }, ], }; }
  • Input schema definition for the getStreamerByName tool, specifying the expected 'streamerName' parameter.
    inputSchema: { type: "object", properties: { streamerName: { type: "string", description: "The name of the streamer", }, }, required: [], },
  • src/index.ts:33-46 (registration)
    Tool registration object including name, description, and schema, added to the tools array for ListToolsRequestSchema.
    { name: "getStreamerByName", description: "Fetch detailed information about a specific streamer", inputSchema: { type: "object", properties: { streamerName: { type: "string", description: "The name of the streamer", }, }, required: [], }, },
  • Helper function to resolve the streamer name from input arguments or configuration fallback.
    function getEffectiveStreamer(requestedStreamer?: string): string { if (requestedStreamer) return requestedStreamer; if (defaultStreamer) return defaultStreamer; throw new Error("No streamer specified and no default streamer configured"); }
  • Helper function to perform API requests to the StreamerSongList service.
    async function makeApiRequest(endpoint: string) { const url = `${apiBase}${endpoint}`; const response = await fetch(url); if (!response.ok) { throw new Error(`API request failed: ${response.status} ${response.statusText}`); } return response.json(); }

Other Tools

Related 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/vuvuvu/streamersonglist-mcp'

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