Skip to main content
Glama
sawa-zen

VRChat MCP Server

vrchat_request_invite

Send an invite request to a VRChat user for joining their instance, requiring explicit user permission and valid instance details.

Instructions

Request an invite from a user. IMPORTANT: Always obtain explicit permission from the user before sending an invite request. Note that invite requests cannot be sent to users in private instances. Returns the Notification of type requestInvite that was sent.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
userIdYesMust be a valid user ID
instanceIdYesThe instance ID to use when requesting an invite
messageSlotYesSlot number of the Request Message to use when request an invite

Implementation Reference

  • Async handler function that authenticates the VRChat client, requests an invite using inviteApi.inviteUser with provided userId, instanceId, and messageSlot, and returns the JSON response or error message.
    async (params) => {
      try {
        await vrchatClient.auth()
        const response = await vrchatClient.inviteApi.inviteUser(params.userId, {
          instanceId: params.instanceId,
          messageSlot: params.messageSlot,
        })
        return {
          content: [{
            type: 'text',
            text: JSON.stringify(response.data, null, 2)
          }]
        }
      } catch (error) {
        return {
          content: [{
            type: 'text',
            text: 'Failed to request invite: ' + error
          }]
        }
      }
    }
  • Zod input schema defining parameters for the tool: userId (string), instanceId (string), messageSlot (number 0-11).
    {
      userId: z.string().min(1).describe('Must be a valid user ID'),
      instanceId: z.string().describe('The instance ID to use when requesting an invite'),
      messageSlot: z.number().min(0).max(11).describe('Slot number of the Request Message to use when request an invite'),
    },
  • Registers the vrchat_request_invite tool on the MCP server with name, description, input schema, and handler function inside createInvitesTools.
    server.tool(
      // Name
      'vrchat_request_invite',
      // Description
      'Request an invite from a user. IMPORTANT: Always obtain explicit permission from the user before sending an invite request. Note that invite requests cannot be sent to users in private instances. Returns the Notification of type requestInvite that was sent.',
      {
        userId: z.string().min(1).describe('Must be a valid user ID'),
        instanceId: z.string().describe('The instance ID to use when requesting an invite'),
        messageSlot: z.number().min(0).max(11).describe('Slot number of the Request Message to use when request an invite'),
      },
      async (params) => {
        try {
          await vrchatClient.auth()
          const response = await vrchatClient.inviteApi.inviteUser(params.userId, {
            instanceId: params.instanceId,
            messageSlot: params.messageSlot,
          })
          return {
            content: [{
              type: 'text',
              text: JSON.stringify(response.data, null, 2)
            }]
          }
        } catch (error) {
          return {
            content: [{
              type: 'text',
              text: 'Failed to request invite: ' + error
            }]
          }
        }
      }
    )
Behavior4/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It effectively describes key behaviors: the need for user permission, restrictions about private instances, and the return value ('Returns the Notification of type requestInvite that was sent'). It doesn't mention rate limits or error conditions, but covers essential operational constraints.

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 efficiently structured with three sentences: purpose statement, two important usage guidelines, and return value information. Every sentence adds essential value with zero wasted content, and critical information ('IMPORTANT') is appropriately front-loaded.

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

Completeness4/5

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

For a mutation tool with no annotations and no output schema, the description provides good contextual coverage: purpose, usage constraints, and return value. It doesn't explain error cases or authentication requirements, but covers the essential operational context given the tool's complexity.

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?

Schema description coverage is 100%, providing complete parameter documentation. The description doesn't add any parameter-specific information beyond what's in the schema, so it meets the baseline expectation without enhancing parameter understanding.

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

Purpose5/5

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

The description clearly states the specific action ('Request an invite from a user') and resource ('user'), distinguishing it from sibling tools like 'vrchat_send_friend_request' or 'vrchat_join_group'. It precisely defines the tool's function without being vague or tautological.

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

Usage Guidelines5/5

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

The description provides explicit usage guidance: 'Always obtain explicit permission from the user before sending an invite request' and 'invite requests cannot be sent to users in private instances'. This clearly defines when to use (with permission, not in private instances) and includes important exclusions.

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