Skip to main content
Glama
sawa-zen

VRChat MCP Server

vrchat_search_groups

Find VRChat groups by name or short code to discover communities, manage memberships, and connect with users in the virtual world.

Instructions

Search VRChat groups by name or shortCode

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesQuery to search for, can be either Group Name or Group shortCode
offsetNoA zero-based offset from the default object sorting
nNoThe number of objects to return

Implementation Reference

  • Full registration of the 'vrchat_search_groups' tool, including input schema and handler function.
      'vrchat_search_groups',
      'Search VRChat groups by name or shortCode',
      {
        query: z.string().describe('Query to search for, can be either Group Name or Group shortCode'),
        offset: z.number().min(0).optional().describe('A zero-based offset from the default object sorting'),
        n: z.number().min(1).max(100).optional().describe('The number of objects to return')
      },
      async (args) => {
        try {
          await vrchatClient.auth()
          const response = await vrchatClient.groupsApi.searchGroups(
            args.query,
            args.offset,
            args.n
          )
          return {
            content: [{
              type: 'text',
              text: JSON.stringify(response.data, null, 2)
            }]
          }
        } catch (error) {
          return {
            content: [{
              type: 'text',
              text: 'Failed to search groups: ' + error
            }]
          }
        }
      }
    )
  • The handler function that authenticates the VRChat client and performs the group search using the groupsApi.searchGroups method, returning the JSON response or error.
    async (args) => {
      try {
        await vrchatClient.auth()
        const response = await vrchatClient.groupsApi.searchGroups(
          args.query,
          args.offset,
          args.n
        )
        return {
          content: [{
            type: 'text',
            text: JSON.stringify(response.data, null, 2)
          }]
        }
      } catch (error) {
        return {
          content: [{
            type: 'text',
            text: 'Failed to search groups: ' + error
          }]
        }
      }
    }
  • Zod schema defining the input parameters for the tool: query (required string), offset (optional number), n (optional number between 1-100).
    {
      query: z.string().describe('Query to search for, can be either Group Name or Group shortCode'),
      offset: z.number().min(0).optional().describe('A zero-based offset from the default object sorting'),
      n: z.number().min(1).max(100).optional().describe('The number of objects to return')
    },
Behavior2/5

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

With no annotations provided, the description carries full burden but offers minimal behavioral insight. It implies a read-only search operation but doesn't disclose critical traits like authentication requirements, rate limits, pagination behavior (beyond offset/n parameters), error conditions, or what the output looks like (no output schema). This leaves significant gaps for an agent to understand tool behavior.

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 a single, efficient sentence that directly states the tool's purpose without unnecessary words. It's appropriately front-loaded with the core functionality, making it easy for an agent to parse quickly. Every word earns its place in conveying the essential action.

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

Completeness2/5

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

Given the tool's moderate complexity (search with pagination), lack of annotations, and absence of an output schema, the description is insufficiently complete. It doesn't address authentication needs, result format, error handling, or how this tool fits within the broader VRChat API context. The agent would struggle to use this effectively without additional behavioral context.

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%, providing clear documentation for all three parameters. The description adds marginal value by specifying that the query searches 'Group Name or Group shortCode', which slightly elaborates beyond the schema's 'Query to search for, can be either Group Name or Group shortCode'. This meets the baseline for high schema coverage without significant enhancement.

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 action ('Search') and target resource ('VRChat groups'), specifying searchable attributes ('by name or shortCode'). It distinguishes from siblings like 'vrchat_list_favorite_groups' by focusing on search rather than listing, though it doesn't explicitly contrast with 'vrchat_search_avatars' or 'vrchat_search_worlds' which share the search pattern.

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

Usage Guidelines2/5

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

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention prerequisites (e.g., authentication), differentiate from similar search tools (e.g., 'vrchat_search_avatars'), or indicate scenarios where other tools like 'vrchat_join_group' might be more appropriate after finding a group.

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