Skip to main content
Glama

get_class_info

Retrieve properties and methods for specified Roblox classes to streamline development in Roblox Studio. Simplify access to class details for enhanced scripting and project management.

Instructions

Get available properties/methods for Roblox classes

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
classNameYesRoblox class name

Implementation Reference

  • Core handler function that validates input, requests class information from the Studio HTTP client, and formats the response as MCP content.
    async getClassInfo(className: string) { if (!className) { throw new Error('Class name is required for get_class_info'); } const response = await this.client.request('/api/class-info', { className }); return { content: [ { type: 'text', text: JSON.stringify(response, null, 2) } ] }; }
  • Tool schema definition including name, description, and input schema requiring 'className' string.
    name: 'get_class_info', description: 'Get available properties/methods for Roblox classes', inputSchema: { type: 'object', properties: { className: { type: 'string', description: 'Roblox class name' } }, required: ['className'] }
  • src/index.ts:668-669 (registration)
    MCP tool dispatcher registration in the CallToolRequestHandler switch case, calling the handler.
    case 'get_class_info': return await this.tools.getClassInfo((args as any)?.className as string);
  • HTTP proxy endpoint registration for get_class_info tool calls.
    app.post('/mcp/get_class_info', async (req, res) => { try { const result = await tools.getClassInfo(req.body.className); res.json(result); } catch (error) { res.status(500).json({ error: error instanceof Error ? error.message : 'Unknown error' }); } });

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/boshyxd/robloxstudio-mcp'

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