Skip to main content
Glama
using76
by using76

bulc_list_rooms

Retrieve all rooms with IDs, names, positions, and dimensions for modify/delete operations in BULC Building Designer. Filter by floor level to view specific rooms.

Instructions

Get a list of all rooms with their IDs, names, positions, and dimensions. Use the returned IDs for modify/delete operations.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
levelNoFilter by floor level index. Omit to list all rooms.

Implementation Reference

  • Specific handler case for 'bulc_list_rooms' tool: validates input using ListRoomsSchema and sends 'list_rooms' command to BULC client.
    case "bulc_list_rooms": {
      const validated = ListRoomsSchema.parse(args);
      result = await client.sendCommand({
        action: "list_rooms",
        params: validated,
      });
      break;
    }
  • src/index.ts:69-71 (registration)
    Routing registration in main MCP server handler: dispatches all 'bulc_*_room' tools (including bulc_list_rooms) to handleRoomTool.
    if (name.startsWith("bulc_") && name.includes("room")) {
      return await handleRoomTool(name, safeArgs);
    }
  • Tool definition object for 'bulc_list_rooms' including name, description, inputSchema, and annotations (part of roomTools array).
    {
      name: "bulc_list_rooms",
      description:
        "Get a list of all rooms with their IDs, names, positions, and dimensions. " +
        "Use the returned IDs for modify/delete operations.",
      inputSchema: {
        type: "object" as const,
        properties: {
          level: {
            type: "integer",
            description: "Filter by floor level index. Omit to list all rooms.",
          },
        },
      },
      annotations: {
        readOnlyHint: true,
        destructiveHint: false,
      },
    },
  • Zod schema for input validation of 'bulc_list_rooms' parameters.
    const ListRoomsSchema = z.object({
      level: z.number().int().optional(),
    });
  • src/index.ts:40-51 (registration)
    Inclusion of roomTools (containing bulc_list_rooms schema) in the allTools array, used for listing available tools in MCP server.
    const allTools = [
      ...contextTools,      // 8 tools: spatial context, home info, levels, undo/redo, save
      ...roomTools,         // 5 tools: create, create_polygon, list, modify, delete
      ...wallTools,         // 5 tools: create, create_rectangle, list, modify, delete
      ...furnitureTools,    // 5 tools: catalog, place, list, modify, delete
      ...fdsDataTools,      // 7 tools: get, fire_source, detector, sprinkler, hvac, thermocouple, clear
      ...meshTools,         // 5 tools: list, create, auto, modify, delete
      ...simulationTools,   // 4 tools: get_settings, time, output, ambient
      ...fdsRunTools,       // 6 tools: preview, validate, export, run, status, stop
      ...resultTools,       // 5 tools: open_viewer, list_datasets, point_data, aset, report
      ...evacTools,         // 25 tools: setup, stairs, agents, run, results, advanced features
    ];

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/using76/BULC_MCP'

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