Skip to main content
Glama

vrchat_send_friend_request

Send a friend request to a VRChat user by specifying their userId, enabling connection and interaction within the VRChat platform through the MCP Server.

Instructions

Send a friend request to another user.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
userIdYes

Implementation Reference

  • Handler function that authenticates the VRChat client and sends a friend request to the specified user ID, returning the response or error.
    async (params) => { try { await vrchatClient.auth() const response = await vrchatClient.friendsApi.friend(params.userId) return { content: [{ type: 'text', text: JSON.stringify(response.data, null, 2) }] } } catch (error) { return { content: [{ type: 'text', text: 'Failed to send friend request: ' + error }] } } }
  • Input schema defining 'userId' as a non-empty string.
    { userId: z.string().min(1), },
  • Registration of the 'vrchat_send_friend_request' tool with the MCP server, including name, description, schema, and handler.
    // Name 'vrchat_send_friend_request', // Description 'Send a friend request to another user.', { userId: z.string().min(1), }, async (params) => { try { await vrchatClient.auth() const response = await vrchatClient.friendsApi.friend(params.userId) return { content: [{ type: 'text', text: JSON.stringify(response.data, null, 2) }] } } catch (error) { return { content: [{ type: 'text', text: 'Failed to send friend request: ' + 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