Skip to main content
Glama
sawa-zen

VRChat MCP Server

vrchat_create_instance

Create a new VRChat world instance with customizable privacy settings, region selection, and access controls for multiplayer sessions.

Instructions

Create a new instance of a world.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
worldIdYes
typeYes
regionNous
ownerIdNo
roleIdsNo
groupAccessTypeNo
queueEnabledNo
closedAtNo
canRequestInviteNo
hardCloseNo
inviteOnlyNo

Implementation Reference

  • Executes the tool logic: authenticates VRChat client, calls instancesApi.createInstance with parameters, returns JSON stringified instance data or error message.
    async (params) => {
      try {
        await vrchatClient.auth()
        const instance = await vrchatClient.instancesApi.createInstance({
          worldId: params.worldId,
          type: params.type,
          region: params.region,
          ownerId: params.ownerId,
          roleIds: params.roleIds,
          groupAccessType: params.groupAccessType,
          queueEnabled: params.queueEnabled,
          closedAt: params.closedAt,
          canRequestInvite: params.canRequestInvite,
          hardClose: params.hardClose,
          inviteOnly: params.inviteOnly,
        })
        return {
          content: [{
            type: 'text',
            text: JSON.stringify(instance.data, null, 2)
          }]
        }
      } catch (error) {
        return {
          content: [{
            type: 'text',
            text: 'Failed to create instance: ' + error
          }]
        }
      }
    }
  • Zod input schema defining parameters for creating a VRChat instance, including worldId, instance type, region, and optional fields like ownerId, roles, etc.
    {
      worldId: z.string(),
      type: z.enum(['public', 'hidden', 'friends', 'private', 'group']),
      region: z.enum(['us', 'use', 'eu', 'jp', 'unknown']).default('us'),
      ownerId: z.string().nullable().optional(),
      roleIds: z.array(z.string()).optional(),
      groupAccessType: z.enum(['members', 'plus', 'public']).optional(),
      queueEnabled: z.boolean().optional(),
      closedAt: z.string().optional(), // date-time format
      canRequestInvite: z.boolean().optional(),
      hardClose: z.boolean().optional(),
      inviteOnly: z.boolean().optional(),
    },
  • Full server.tool registration call for 'vrchat_create_instance', including name, description, input schema, and inline handler function.
    server.tool(
      // Name
      'vrchat_create_instance',
      // Description
      'Create a new instance of a world.',
      {
        worldId: z.string(),
        type: z.enum(['public', 'hidden', 'friends', 'private', 'group']),
        region: z.enum(['us', 'use', 'eu', 'jp', 'unknown']).default('us'),
        ownerId: z.string().nullable().optional(),
        roleIds: z.array(z.string()).optional(),
        groupAccessType: z.enum(['members', 'plus', 'public']).optional(),
        queueEnabled: z.boolean().optional(),
        closedAt: z.string().optional(), // date-time format
        canRequestInvite: z.boolean().optional(),
        hardClose: z.boolean().optional(),
        inviteOnly: z.boolean().optional(),
      },
      async (params) => {
        try {
          await vrchatClient.auth()
          const instance = await vrchatClient.instancesApi.createInstance({
            worldId: params.worldId,
            type: params.type,
            region: params.region,
            ownerId: params.ownerId,
            roleIds: params.roleIds,
            groupAccessType: params.groupAccessType,
            queueEnabled: params.queueEnabled,
            closedAt: params.closedAt,
            canRequestInvite: params.canRequestInvite,
            hardClose: params.hardClose,
            inviteOnly: params.inviteOnly,
          })
          return {
            content: [{
              type: 'text',
              text: JSON.stringify(instance.data, null, 2)
            }]
          }
        } catch (error) {
          return {
            content: [{
              type: 'text',
              text: 'Failed to create instance: ' + error
            }]
          }
        }
      }
    )
  • src/main.ts:32-33 (registration)
    Invocation of createInstancesTools in the main server setup, which registers the vrchat_create_instance tool.
    createWorldsTools(server, vrchatClient)
    createInstancesTools(server, vrchatClient)
Behavior2/5

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

No annotations are provided, so the description carries full burden. 'Create' implies a write/mutation operation, but the description doesn't disclose behavioral traits like authentication requirements, rate limits, whether the instance is immediately joinable, or what happens on failure. For a creation tool with 11 parameters, this is a significant gap.

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, clear sentence with zero wasted words. It's front-loaded with the core action and resource, making it immediately understandable despite its brevity.

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 creation tool with 11 parameters, 0% schema description coverage, no annotations, and no output schema, the description is incomplete. It doesn't explain what an 'instance' is in VRChat context, what happens after creation, or provide any parameter guidance. The conciseness comes at the cost of necessary context.

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

Parameters2/5

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

Schema description coverage is 0%, so the description must compensate but provides no parameter information. It doesn't explain what 'worldId', 'type', 'region', or any other parameters mean, their relationships, or typical values. With 11 parameters (3 with enums), this leaves critical usage information undocumented.

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 action ('Create') and resource ('new instance of a world'), making the purpose immediately understandable. It distinguishes from siblings like 'vrchat_get_instance' (read vs. create) but doesn't explicitly differentiate from other creation-related tools (none exist in the sibling list).

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?

No guidance is provided on when to use this tool versus alternatives. The description doesn't mention prerequisites, when this operation is appropriate, or what happens after creation. With 11 parameters, some guidance on required vs. optional parameters would be helpful.

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

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/sawa-zen/vrchat-mcp'

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