Skip to main content
Glama

vrchat_list_favorites

Retrieve a filtered list of VRChat favorites, including worlds, friends, and avatars, with options to set limits, offsets, and tags for precise results.

Instructions

Returns a list of favorites.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nNoNumber of favorites to return (1-100). Default is 60.
offsetNoSkip this many favorites before beginning to return results.
tagNoFilter by tag (e.g., "group_0", "group_1").
typeNoFilter by favorite type ("world", "friend", or "avatar").

Implementation Reference

  • The handler function that executes the tool: authenticates VRChat client, calls getFavorites API with params, returns JSON data or error.
    async (params) => { try { await vrchatClient.auth() const favorites = await vrchatClient.favoritesApi.getFavorites( params.n, params.offset, params.type, params.tag, ) return { content: [{ type: 'text', text: JSON.stringify(favorites.data, null, 2) }] } } catch (error) { return { content: [{ type: 'text', text: 'Failed to list favorites: ' + error }] } }
  • Zod input schema defining parameters for the tool: n (count), offset, type, tag.
    { n: z.number().min(1).max(100).optional().default(60) .describe('Number of favorites to return (1-100). Default is 60.'), offset: z.number().min(0).optional() .describe('Skip this many favorites before beginning to return results.'), type: z.string().optional() .describe('Filter by favorite type ("world", "friend", or "avatar").'), tag: z.string().optional() .describe('Filter by tag (e.g., "group_0", "group_1").'), },
  • Tool registration call with server.tool, specifying name, description, input schema, and handler function.
    // Name 'vrchat_list_favorites', // Description 'Returns a list of favorites.', { n: z.number().min(1).max(100).optional().default(60) .describe('Number of favorites to return (1-100). Default is 60.'), offset: z.number().min(0).optional() .describe('Skip this many favorites before beginning to return results.'), type: z.string().optional() .describe('Filter by favorite type ("world", "friend", or "avatar").'), tag: z.string().optional() .describe('Filter by tag (e.g., "group_0", "group_1").'), }, async (params) => { try { await vrchatClient.auth() const favorites = await vrchatClient.favoritesApi.getFavorites( params.n, params.offset, params.type, params.tag, ) return { content: [{ type: 'text', text: JSON.stringify(favorites.data, null, 2) }] } } catch (error) { return { content: [{ type: 'text', text: 'Failed to list favorites: ' + 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