bulc_delete_mesh
Remove an FDS mesh from a building design simulation by specifying its ID to clean up model geometry and optimize computational resources.
Instructions
Delete an FDS mesh by its ID.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| meshId | Yes | Mesh ID to delete |
Implementation Reference
- src/tools/mesh.ts:281-288 (handler)Handler logic for the 'bulc_delete_mesh' tool: parses arguments using DeleteMeshSchema and sends a 'delete_mesh' command with validated parameters to the BULC client.case "bulc_delete_mesh": { const validated = DeleteMeshSchema.parse(args); result = await client.sendCommand({ action: "delete_mesh", params: validated, }); break; }
- src/tools/mesh.ts:175-192 (schema)Tool schema definition for 'bulc_delete_mesh', including name, description, input schema requiring 'meshId', and annotations indicating it's destructive.{ name: "bulc_delete_mesh", description: "Delete an FDS mesh by its ID.", inputSchema: { type: "object" as const, properties: { meshId: { type: "string", description: "Mesh ID to delete", }, }, required: ["meshId"], }, annotations: { readOnlyHint: false, destructiveHint: true, }, },
- src/tools/mesh.ts:231-233 (schema)Zod validation schema used for input validation in the bulc_delete_mesh handler.const DeleteMeshSchema = z.object({ meshId: z.string(), });
- src/index.ts:40-51 (registration)Registration of meshTools (including bulc_delete_mesh) into the complete allTools list provided to the MCP server for tool discovery.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 ];
- src/index.ts:96-99 (registration)Routing registration: dispatches calls to 'bulc_*_mesh' tools (including bulc_delete_mesh) to the handleMeshTool function.// Mesh tools if (name.startsWith("bulc_") && name.includes("mesh")) { return await handleMeshTool(name, safeArgs); }