Skip to main content
Glama

find_group_members

Locate all nodes assigned to a specific group across indexed Godot scenes to manage scene trees and analyze project structure.

Instructions

Find all nodes belonging to a specific group across all indexed scenes.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
groupYesGroup name to search for
maxResultsNoMaximum results to return

Implementation Reference

  • The handler function for 'find_group_members' that retrieves nodes by group name from the index and formats the response.
    handler: async (ctx) => {
      const { group, maxResults = 50 } = ctx.args;
      const results = await index.findNodesByGroup(group);
      const truncated = results.length > maxResults;
      const data = results.slice(0, maxResults).map((r) => ({
        name: r.node.name,
        type: r.node.type,
        nodePath: r.node.nodePath,
        scenePath: r.scenePath,
      }));
    
      return makeTextResponse({
        data,
        truncated,
        totalCount: results.length,
        metadata: { source: "index" },
      });
    },
  • Input schema validation for the 'find_group_members' tool.
    schema: {
      group: z.string().describe("Group name to search for"),
      maxResults: z
        .number()
        .int()
        .min(1)
        .max(500)
        .optional()
        .default(50)
        .describe("Maximum results to return"),
    },

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/woohq/godette-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server