Skip to main content
Glama
sawa-zen

VRChat MCP Server

vrchat_list_invite_messages

Retrieve invite messages for a specific VRChat user. Specify user ID and message type to view invitation history and responses.

Instructions

Returns a list of all the users Invite Messages. Admin Credentials are required to view messages of other users!

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
userIdYesMust be a valid user ID
messageTypeYesThe type of message to fetch

Implementation Reference

  • The handler function for the 'vrchat_list_invite_messages' tool. It authenticates the VRChat client, fetches invite messages using the InviteApi.getInviteMessages method, and returns the JSON-stringified response or an error message.
    async (params) => {
      try {
        await vrchatClient.auth()
        const response = await vrchatClient.inviteApi.getInviteMessages(params.userId, params.messageType)
        return {
          content: [{
            type: 'text',
            text: JSON.stringify(response.data, null, 2)
          }]
        }
      } catch (error) {
        return {
          content: [{
            type: 'text',
            text: 'Failed to get invite messages: ' + error
          }]
        }
      }
    }
  • Input schema defined using Zod, specifying 'userId' as a non-empty string and 'messageType' as an enum of invite message types.
    {
      userId: z.string().min(1).describe('Must be a valid user ID'),
      messageType: z.enum(['message', 'response', 'request', 'requestResponse']).describe('The type of message to fetch')
    },
  • Registers the 'vrchat_list_invite_messages' tool on the MCP server within the createInvitesTools function, including name, description, input schema, and inline handler.
    server.tool(
      // Name
      'vrchat_list_invite_messages',
      // Description
      'Returns a list of all the users Invite Messages. Admin Credentials are required to view messages of other users!',
      {
        userId: z.string().min(1).describe('Must be a valid user ID'),
        messageType: z.enum(['message', 'response', 'request', 'requestResponse']).describe('The type of message to fetch')
      },
      async (params) => {
        try {
          await vrchatClient.auth()
          const response = await vrchatClient.inviteApi.getInviteMessages(params.userId, params.messageType)
          return {
            content: [{
              type: 'text',
              text: JSON.stringify(response.data, null, 2)
            }]
          }
        } catch (error) {
          return {
            content: [{
              type: 'text',
              text: 'Failed to get invite messages: ' + error
            }]
          }
        }
      }
    )
  • src/main.ts:36-36 (registration)
    Calls createInvitesTools in the main server setup, which triggers the registration of the invites tools including 'vrchat_list_invite_messages'.
    createInvitesTools(server, vrchatClient)
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It discloses a critical behavioral trait: 'Admin Credentials are required to view messages of other users!' This addresses authentication needs and access restrictions. However, it lacks details on rate limits, pagination, error handling, or what the returned list includes (e.g., format, fields). The description adds value but doesn't fully compensate for the absence of annotations.

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 appropriately sized and front-loaded: the first sentence states the core purpose, and the second adds crucial context (admin requirement). Every sentence earns its place with no wasted words, making it efficient and easy to parse.

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 (2 required parameters, no output schema, no annotations), the description is partially complete. It covers purpose and admin requirements but lacks details on return values (since no output schema), error cases, or behavioral nuances like pagination. It's adequate for basic use but has clear gaps for full agent understanding.

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%, with both parameters ('userId' and 'messageType') well-documented in the schema (e.g., 'userId' requires a valid user ID, 'messageType' has an enum). The description doesn't add any meaning beyond this, such as explaining how 'userId' relates to admin access or clarifying enum values. Baseline score of 3 is appropriate since the schema does the heavy lifting.

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 list of all the users Invite Messages.' It specifies the verb ('returns') and resource ('Invite Messages'), and distinguishes it from sibling tools like 'vrchat_get_invite_message' (singular) by indicating it fetches multiple messages. However, it doesn't explicitly differentiate from other list tools like 'vrchat_list_favorites' beyond the resource type.

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 when to use this tool: 'Admin Credentials are required to view messages of other users!' This implies it's for administrative purposes and not for general user access. However, it doesn't explicitly state when not to use it or name alternatives (e.g., vs. 'vrchat_get_invite_message' for a single message), though the context is sufficient for informed usage.

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