Skip to main content
Glama
sawa-zen

VRChat MCP Server

vrchat_get_invite_message

Retrieve specific invite messages from VRChat users, including normal invites, responses, requests, and request replies, using admin credentials to access other users' messages.

Instructions

Returns a specific invite message. Admin Credentials are required to view messages of other users!

Message type refers to a different collection of messages:
- message = Message during a normal invite
- response = Message when replying to a message
- request = Message when requesting an invite
- requestResponse = Message when replying to a request for invite

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
userIdYesMust be a valid user ID.
messageTypeNoThe type of message to fetch. Must be a valid InviteMessageType.message
slotYesSlot number of the message to fetch.

Implementation Reference

  • Handler function that authenticates the VRChat client, calls inviteApi.getInviteMessage with userId, messageType, and slot, and returns the JSON response or an error message.
    async (params) => {
      try {
        await vrchatClient.auth()
        const response = await vrchatClient.inviteApi.getInviteMessage(
          params.userId,
          params.messageType,
          params.slot
        )
        return {
          content: [{
            type: 'text',
            text: JSON.stringify(response.data, null, 2)
          }]
        }
      } catch (error) {
        return {
          content: [{
            type: 'text',
            text: 'Failed to retrieve invite message: ' + error
          }]
        }
      }
    }
  • Zod schema defining input parameters: userId (string), messageType (enum: 'message', 'response', 'request', 'requestResponse' with default 'message'), slot (number 0-11).
    {
      userId: z.string().min(1).describe(
        'Must be a valid user ID.'
      ),
      messageType: z.enum(['message', 'response', 'request', 'requestResponse']).default('message').describe(
        'The type of message to fetch. Must be a valid InviteMessageType.'
      ),
      slot: z.number().min(0).max(11).describe(
        'Slot number of the message to fetch.'
      ),
    },
  • Registers the vrchat_get_invite_message tool on the MCP server, specifying name, multi-line description, input schema, and handler function.
    server.tool(
      // Name
      'vrchat_get_invite_message',
      // Description
      `Returns a specific invite message. Admin Credentials are required to view messages of other users!
    
      Message type refers to a different collection of messages:
      - message = Message during a normal invite
      - response = Message when replying to a message
      - request = Message when requesting an invite
      - requestResponse = Message when replying to a request for invite
      `,
      {
        userId: z.string().min(1).describe(
          'Must be a valid user ID.'
        ),
        messageType: z.enum(['message', 'response', 'request', 'requestResponse']).default('message').describe(
          'The type of message to fetch. Must be a valid InviteMessageType.'
        ),
        slot: z.number().min(0).max(11).describe(
          'Slot number of the message to fetch.'
        ),
      },
      async (params) => {
        try {
          await vrchatClient.auth()
          const response = await vrchatClient.inviteApi.getInviteMessage(
            params.userId,
            params.messageType,
            params.slot
          )
          return {
            content: [{
              type: 'text',
              text: JSON.stringify(response.data, null, 2)
            }]
          }
        } catch (error) {
          return {
            content: [{
              type: 'text',
              text: 'Failed to retrieve invite message: ' + error
            }]
          }
        }
      }
    )
Behavior3/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 adds valuable context about admin credential requirements, which is crucial for authentication needs. However, it lacks details on rate limits, error handling, or what the return value looks like (e.g., message content format). The description doesn't contradict annotations, but it's incomplete for a tool with no annotation coverage.

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

Conciseness4/5

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

The description is appropriately sized and front-loaded: the first sentence states the core purpose, followed by important context (admin requirement) and parameter details. Every sentence adds value, with no wasted words. It could be slightly more structured (e.g., bullet points for clarity), but it's efficient and well-organized.

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

Completeness3/5

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

Given the tool's complexity (3 parameters, no annotations, no output schema), the description is moderately complete. It covers purpose, usage context, and parameter semantics for one parameter, but lacks details on return values (e.g., what data is returned), error cases, or behavioral traits like rate limits. With no output schema, the description should ideally explain the return format, which it doesn't, leaving gaps in completeness.

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%, so the schema already documents all parameters (userId, messageType, slot) with descriptions and constraints. The description adds some meaning by explaining the 'messageType' enum values (e.g., 'message = Message during a normal invite'), which clarifies semantics beyond the schema's enum list. However, it doesn't add significant value for other parameters, aligning with the baseline for high schema coverage.

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: 'Returns a specific invite message.' It specifies the verb ('Returns') and resource ('invite message'), making it distinct from siblings like 'vrchat_list_invite_messages' (which lists messages) or 'vrchat_request_invite' (which sends invites). However, it doesn't explicitly differentiate from all siblings beyond the core function.

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

Usage Guidelines4/5

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

The description provides clear context for usage: 'Admin Credentials are required to view messages of other users!' This indicates when to use it (for admin-level access) and implies when not to use it (for non-admin users). It doesn't name specific alternatives or provide detailed exclusions, but the context is sufficient for basic guidance.

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