Skip to main content
Glama
boshyxd

Roblox Studio MCP Server

smart_duplicate

Automate duplication in Roblox Studio with customized naming, positioning, rotation, scaling, and property variations for efficient object creation.

Instructions

Smart duplication with automatic naming, positioning, and property variations

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
countYesNumber of duplicates to create
instancePathYesPath to the instance to duplicate
optionsNo

Implementation Reference

  • The handler function that executes the smart_duplicate tool logic. It validates the instancePath and count parameters, then forwards the request to the Studio API endpoint '/api/smart-duplicate' via the HTTP client, and formats the response as MCP content.
    async smartDuplicate(
      instancePath: string, 
      count: number, 
      options?: {
        namePattern?: string; // e.g., "Button{n}" where {n} is replaced with index
        positionOffset?: [number, number, number]; // X, Y, Z offset per duplicate
        rotationOffset?: [number, number, number]; // X, Y, Z rotation offset per duplicate
        scaleOffset?: [number, number, number]; // X, Y, Z scale multiplier per duplicate
        propertyVariations?: Record<string, any[]>; // Property name to array of values
        targetParents?: string[]; // Different parent for each duplicate
      }
    ) {
      if (!instancePath || count < 1) {
        throw new Error('Instance path and count > 0 are required for smart_duplicate');
      }
      const response = await this.client.request('/api/smart-duplicate', { 
        instancePath, 
        count, 
        options 
      });
      return {
        content: [
          {
            type: 'text',
            text: JSON.stringify(response, null, 2)
          }
        ]
      };
    }
  • The detailed input schema for the smart_duplicate tool, defining parameters including required instancePath and count, and optional options object with namePattern, positionOffset, rotationOffset, scaleOffset, propertyVariations, and targetParents.
      name: 'smart_duplicate',
      description: 'Smart duplication with automatic naming, positioning, and property variations',
      inputSchema: {
        type: 'object',
        properties: {
          instancePath: {
            type: 'string',
            description: 'Path to the instance to duplicate'
          },
          count: {
            type: 'number',
            description: 'Number of duplicates to create'
          },
          options: {
            type: 'object',
            properties: {
              namePattern: {
                type: 'string',
                description: 'Name pattern with {n} placeholder (e.g., "Button{n}")'
              },
              positionOffset: {
                type: 'array',
                items: { type: 'number' },
                minItems: 3,
                maxItems: 3,
                description: 'X, Y, Z offset per duplicate'
              },
              rotationOffset: {
                type: 'array',
                items: { type: 'number' },
                minItems: 3,
                maxItems: 3,
                description: 'X, Y, Z rotation offset per duplicate'
              },
              scaleOffset: {
                type: 'array',
                items: { type: 'number' },
                minItems: 3,
                maxItems: 3,
                description: 'X, Y, Z scale multiplier per duplicate'
              },
              propertyVariations: {
                type: 'object',
                description: 'Property name to array of values'
              },
              targetParents: {
                type: 'array',
                items: { type: 'string' },
                description: 'Different parent for each duplicate'
              }
            }
          }
        },
        required: ['instancePath', 'count']
      }
    },
  • src/index.ts:698-700 (registration)
    The registration and dispatching logic in the MCP server's callTool request handler, which maps the 'smart_duplicate' tool name to the corresponding method on the RobloxStudioTools instance.
    case 'smart_duplicate':
      return await this.tools.smartDuplicate((args as any)?.instancePath as string, (args as any)?.count as number, (args as any)?.options);
    case 'mass_duplicate':
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries full burden for behavioral disclosure. While 'duplication' implies a write operation, the description doesn't specify permissions needed, whether this creates new objects or modifies existing ones, error conditions, or what happens when duplicates exceed limits. The 'smart' aspect is vague without concrete behavioral details.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence that front-loads the core functionality. Every word earns its place by specifying key features (naming, positioning, property variations) without unnecessary elaboration or repetition.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with 3 parameters, no annotations, no output schema, and complex nested objects in the options parameter, the description is insufficient. It doesn't explain what 'smart' means operationally, doesn't cover error handling or constraints, and provides minimal guidance for a tool that appears to perform batch creation operations with multiple configuration options.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The description mentions 'automatic naming, positioning, and property variations' which aligns with the 'options' parameter's subproperties in the schema. However, with 67% schema description coverage and 3 total parameters, the description doesn't fully explain the 'instancePath' and 'count' parameters beyond what the schema provides. It adds some context about the 'options' parameter's purpose but doesn't compensate for the coverage gap.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose as 'smart duplication with automatic naming, positioning, and property variations', which specifies the verb (duplicate) and key features. However, it doesn't explicitly distinguish this from the sibling 'mass_duplicate' tool, which appears to be a similar duplication operation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives like 'mass_duplicate' or other creation tools. There's no mention of prerequisites, constraints, or comparative use cases that would help an agent choose between similar tools in the server.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

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

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