get_services
Retrieve available Roblox services and their children for better integration and interaction with Roblox Studio projects using the MCP server.
Instructions
Get available Roblox services and their children
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| serviceName | No | Optional specific service name to query |
Input Schema (JSON Schema)
{
"properties": {
"serviceName": {
"description": "Optional specific service name to query",
"type": "string"
}
},
"type": "object"
}
Implementation Reference
- src/tools/index.ts:49-59 (handler)Core handler function that executes the get_services tool by requesting '/api/services' from StudioHttpClient and returning formatted JSON response.async getServices(serviceName?: string) { const response = await this.client.request('/api/services', { serviceName }); return { content: [ { type: 'text', text: JSON.stringify(response, null, 2) } ] }; }
- src/index.ts:103-113 (schema)Input schema definition for the get_services tool, specifying optional serviceName parameter.name: 'get_services', description: 'Get available Roblox services and their children', inputSchema: { type: 'object', properties: { serviceName: { type: 'string', description: 'Optional specific service name to query' } } }
- src/index.ts:656-657 (registration)MCP server request handler registration: dispatches get_services calls to the tools.getServices method.case 'get_services': return await this.tools.getServices((args as any)?.serviceName);
- src/http-server.ts:167-174 (registration)HTTP endpoint registration for /mcp/get_services, proxying requests to tools.getServices for Studio plugin compatibility.app.post('/mcp/get_services', async (req, res) => { try { const result = await tools.getServices(req.body.serviceName); res.json(result); } catch (error) { res.status(500).json({ error: error instanceof Error ? error.message : 'Unknown error' }); } });