Skip to main content
Glama

vrchat_get_notifications

Retrieve a list of VRChat notifications, including friend requests and user updates, by specifying filters such as type, date, and visibility. Enables efficient notification management via the VRChat MCP Server.

Instructions

Retrieve a list of VRChat notifications.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
afterNoOnly return notifications sent after this Date. Ignored if type is "friendRequest".
hiddenNoWhether to return hidden or non-hidden notifications. True only allowed on type "friendRequest".
nNoThe number of objects to return. Default: 60, Max: 100
offsetNoA zero-based offset from the default object sorting from where to start.
sentNoReturn notifications sent by the user. Must be false or omitted.
typeNoOnly send notifications of this type. Use "all" for all types. This parameter no longer does anything and is deprecated.

Implementation Reference

  • The handler function authenticates the VRChat client, calls getNotifications API with provided parameters, stringifies and returns the response data as text content, or returns an error message if failed.
    async (params) => { try { await vrchatClient.auth() const response = await vrchatClient.notificationsApi.getNotifications( params.type, params.sent, params.hidden, params.after, params.n || 60, params.offset || 0, ) return { content: [{ type: 'text', text: JSON.stringify(response.data, null, 2) }] } } catch (error) { return { content: [{ type: 'text', text: 'Failed to retrieve notifications: ' + error }] } } }
  • Zod schema defining the input parameters for the vrchat_get_notifications tool, including optional fields for type, sent, hidden, after, n, and offset with descriptions and validations.
    { type: z.string().optional().describe( 'Only send notifications of this type. Use "all" for all types. This parameter no longer does anything and is deprecated.' ), sent: z.boolean().optional().describe( 'Return notifications sent by the user. Must be false or omitted.' ), hidden: z.boolean().optional().describe( 'Whether to return hidden or non-hidden notifications. True only allowed on type "friendRequest".' ), after: z.string().optional().describe( 'Only return notifications sent after this Date. Ignored if type is "friendRequest".' ), n: z.number().min(1).max(100).optional().describe( 'The number of objects to return. Default: 60, Max: 100' ), offset: z.number().min(0).optional().describe( 'A zero-based offset from the default object sorting from where to start.' ), },
  • Registration of the 'vrchat_get_notifications' tool on the MCP server using server.tool(), providing name, description, input schema, and handler function.
    // Name 'vrchat_get_notifications', // Description 'Retrieve a list of VRChat notifications.', { type: z.string().optional().describe( 'Only send notifications of this type. Use "all" for all types. This parameter no longer does anything and is deprecated.' ), sent: z.boolean().optional().describe( 'Return notifications sent by the user. Must be false or omitted.' ), hidden: z.boolean().optional().describe( 'Whether to return hidden or non-hidden notifications. True only allowed on type "friendRequest".' ), after: z.string().optional().describe( 'Only return notifications sent after this Date. Ignored if type is "friendRequest".' ), n: z.number().min(1).max(100).optional().describe( 'The number of objects to return. Default: 60, Max: 100' ), offset: z.number().min(0).optional().describe( 'A zero-based offset from the default object sorting from where to start.' ), }, async (params) => { try { await vrchatClient.auth() const response = await vrchatClient.notificationsApi.getNotifications( params.type, params.sent, params.hidden, params.after, params.n || 60, params.offset || 0, ) return { content: [{ type: 'text', text: JSON.stringify(response.data, null, 2) }] } } catch (error) { return { content: [{ type: 'text', text: 'Failed to retrieve notifications: ' + error }] } } } )

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