Skip to main content
Glama

Build a plan

build
Idempotent

Compile a LEGO plan into a validated model: place parts on real studs, remove or recolor invalid pieces, check collisions and loose parts, then save the model and report.

Instructions

Compile a build plan into a LEGO model, repair it and validate it strictly.

This is the main tool. The plan gives a board size and a list of operations (hill, block, water, path, boulder, tree, plant, scatter, brick, ldraw); call guide for what each does. BrickScape places every part on real studs, removes parts that don't fit or stick out past the board, swaps colours that don't exist for a part to the nearest real one, then checks for intersecting parts, loose parts, unavailable parts and impossible colours.

Writes <BRICKSCAPE_OUT>/<plan name>/model.ldr, plan.json and report.json (building the same name again replaces them). Returns the report: VALID or PROBLEMS, what was removed or recoloured, part count, and the saved path. Next: render to look at it, then export, parts_list or instructions. Invalid plans are rejected with the exact field at fault.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "plan": "<plan>"
    },
    "name": "build"
  }
}

Input Schema

NameRequiredDescriptionDefault
planYesThe build plan as JSON text: {"name": ..., "board": {"width": 32, "depth": 32}, "seed": 1, "ops": [...]}. Operations: hill, block, water, path, boulder, tree, plant, scatter, brick, ldraw. Full field reference: the `guide` tool or the brickscape://schema/plan resource; example plans: brickscape://examples/{forest-clearing,garden-20,showcase}.
sourceNoPart source: 'lego' (official LEGO parts and colours, default) or 'gobricks' (GoBricks moulds, colours and prices)lego

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.1.3
    • removedInput schema / $defs
      Removed value: -{
      -  "Area": {
      -    "additionalProperties": false,
      -    "description": "Exactly one of rect / ellipse / polygon / cells.",
      -    "properties": {
      -      "cells": {
      -        "anyOf": [
      -          {
      -            "items": {
      -              "maxItems": 2,
      -              "minItems": 2,
      -              "prefixItems": [
      -                {
      -                  "type": "integer"
      -                },
      -                {
      -                  "type": "integer"
      -                }
      -              ],
      -              "type": "array"
      -            },
      -            "type": "array"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Cells"
      -      },
      -      "ellipse": {
      -        "anyOf": [
      -          {
      -            "maxItems": 4,
      -            "minItems": 4,
      -            "prefixItems": [
      -              {
      -                "type": "number"
      -              },
      -              {
      -                "type": "number"
      -              },
      -              {
      -                "type": "number"
      -              },
      -              {
      -                "type": "number"
      -              }
      -            ],
      -            "type": "array"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "cx, cz, rx, rz",
      -        "title": "Ellipse"
      -      },
      -      "polygon": {
      -        "anyOf": [
      -          {
      -            "items": {
      -              "maxItems": 2,
      -              "minItems": 2,
      -              "prefixItems": [
      -                {
      -                  "type": "number"
      -                },
      -                {
      -                  "type": "number"
      -                }
      -              ],
      -              "type": "array"
      -            },
      -            "minItems": 3,
      -            "type": "array"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Polygon"
      -      },
      -      "rect": {
      -        "anyOf": [
      -          {
      -            "maxItems": 4,
      -            "minItems": 4,
      -            "prefixItems": [
      -              {
      -                "type": "integer"
      -              },
      -              {
      -                "type": "integer"
      -              },
      -              {
      -                "type": "integer"
      -              },
      -              {
      -                "type": "integer"
      -              }
      -            ],
      -            "type": "array"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "x0, z0, x1, z1 (x1, z1 exclusive)",
      -        "title": "Rect"
      -      },
      -      "rough": {
      -        "default": 0,
      -        "description": "noisy outline, 0..1",
      -        "maximum": 1,
      -        "minimum": 0,
      -        "title": "Rough",
      -        "type": "number"
      -      }
      -    },
      -    "title": "Area",
      -    "type": "object"
      -  },
      -  "Block": {
      -    "additionalProperties": false,
      -    "properties": {
      -      "area": {
      -        "$ref": "#/$defs/Area"
      -      },
      -      "colour": {
      -        "anyOf": [
      -          {
      -            "type": "integer"
      -          },
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Colour"
      -      },
      -      "height": {
      -        "default": 3,
      -        "description": "plates",
      -        "maximum": 60,
      -        "minimum": 1,
      -        "title": "Height",
      -        "type": "integer"
      -      },
      -      "hollow": {
      -        "default": true,
      -        "title": "Hollow",
      -        "type": "boolean"
      -      },
      -      "id": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "name for this op's parts",
      -        "title": "Id"
      -      },
      -      "op": {
      -        "const": "block",
      -        "title": "Op",
      -        "type": "string"
      -      },
      -      "seed": {
      -        "anyOf": [
      -          {
      -            "type": "integer"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Seed"
      -      },
      -      "top": {
      -        "default": "tiles",
      -        "enum": [
      -          "tiles",
      -          "studs",
      -          "grass"
      -        ],
      -        "title": "Top",
      -        "type": "string"
      -      },
      -      "top_colour": {
      -        "anyOf": [
      -          {
      -            "type": "integer"
      -          },
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Top Colour"
      -      }
      -    },
      -    "required": [
      -      "op",
      -      "area"
      -    ],
      -    "title": "Block",
      -    "type": "object"
      -  },
      -  "Board": {
      -    "additionalProperties": false,
      -    "properties": {
      -      "colour": {
      -        "anyOf": [
      -          {
      -            "type": "integer"
      -          },
      -          {
      -            "type": "string"
      -          }
      -        ],
      -        "default": "green",
      -        "title": "Colour"
      -      },
      -      "depth": {
      -        "default": 32,
      -        "maximum": 192,
      -        "minimum": 4,
      -        "title": "Depth",
      -        "type": "integer"
      -      },
      -      "width": {
      -        "default": 32,
      -        "maximum": 192,
      -        "minimum": 4,
      -        "title": "Width",
      -        "type": "integer"
      -      }
      -    },
      -    "title": "Board",
      -    "type": "object"
      -  },
      -  "Boulder": {
      -    "additionalProperties": false,
      -    "properties": {
      -      "at": {
      -        "description": "[x, z, size]",
      -        "items": {
      -          "maxItems": 3,
      -          "minItems": 3,
      -          "prefixItems": [
      -            {
      -              "type": "integer"
      -            },
      -            {
      -              "type": "integer"
      -            },
      -            {
      -              "enum": [
      -                1,
      -                2,
      -                4,
      -                6
      -              ],
      -              "type": "integer"
      -            }
      -          ],
      -          "type": "array"
      -        },
      -        "minItems": 1,
      -        "title": "At",
      -        "type": "array"
      -      },
      -      "colours": {
      -        "anyOf": [
      -          {
      -            "items": {
      -              "anyOf": [
      -                {
      -                  "type": "integer"
      -                },
      -                {
      -                  "type": "string"
      -                }
      -              ]
      -            },
      -            "type": "array"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Colours"
      -      },
      -      "id": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "name for this op's parts",
      -        "title": "Id"
      -      },
      -      "op": {
      -        "const": "boulder",
      -        "title": "Op",
      -        "type": "string"
      -      },
      -      "seed": {
      -        "anyOf": [
      -          {
      -            "type": "integer"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Seed"
      -      }
      -    },
      -    "required": [
      -      "op",
      -      "at"
      -    ],
      -    "title": "Boulder",
      -    "type": "object"
      -  },
      -  "Brick": {
      -    "additionalProperties": false,
      -    "properties": {
      -      "at": {
      -        "maxItems": 2,
      -        "minItems": 2,
      -        "prefixItems": [
      -          {
      -            "type": "number"
      -          },
      -          {
      -            "type": "number"
      -          }
      -        ],
      -        "title": "At",
      -        "type": "array"
      -      },
      -      "colour": {
      -        "anyOf": [
      -          {
      -            "type": "integer"
      -          },
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Colour"
      -      },
      -      "id": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "name for this op's parts",
      -        "title": "Id"
      -      },
      -      "op": {
      -        "const": "brick",
      -        "title": "Op",
      -        "type": "string"
      -      },
      -      "part": {
      -        "title": "Part",
      -        "type": "string"
      -      },
      -      "seed": {
      -        "anyOf": [
      -          {
      -            "type": "integer"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Seed"
      -      },
      -      "spin": {
      -        "default": "N",
      -        "enum": [
      -          "N",
      -          "E",
      -          "S",
      -          "W"
      -        ],
      -        "title": "Spin",
      -        "type": "string"
      -      },
      -      "y": {
      -        "anyOf": [
      -          {
      -            "type": "integer"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "plates; default: the surface there",
      -        "title": "Y"
      -      }
      -    },
      -    "required": [
      -      "op",
      -      "part",
      -      "at"
      -    ],
      -    "title": "Brick",
      -    "type": "object"
      -  },
      -  "Hill": {
      -    "additionalProperties": false,
      -    "properties": {
      -      "accent": {
      -        "anyOf": [
      -          {
      -            "type": "integer"
      -          },
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Accent"
      -      },
      -      "area": {
      -        "$ref": "#/$defs/Area"
      -      },
      -      "colour": {
      -        "anyOf": [
      -          {
      -            "type": "integer"
      -          },
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Colour"
      -      },
      -      "falloff": {
      -        "anyOf": [
      -          {
      -            "exclusiveMinimum": 0,
      -            "type": "number"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "studs from edge to full height",
      -        "title": "Falloff"
      -      },
      -      "height": {
      -        "default": 8,
      -        "description": "plates at the top",
      -        "maximum": 96,
      -        "minimum": 1,
      -        "title": "Height",
      -        "type": "integer"
      -      },
      -      "id": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "name for this op's parts",
      -        "title": "Id"
      -      },
      -      "op": {
      -        "const": "hill",
      -        "title": "Op",
      -        "type": "string"
      -      },
      -      "seed": {
      -        "anyOf": [
      -          {
      -            "type": "integer"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Seed"
      -      },
      -      "style": {
      -        "default": "terraces",
      -        "enum": [
      -          "terraces",
      -          "rock"
      -        ],
      -        "title": "Style",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "op",
      -      "area"
      -    ],
      -    "title": "Hill",
      -    "type": "object"
      -  },
      -  "Ldraw": {
      -    "additionalProperties": false,
      -    "properties": {
      -      "id": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "name for this op's parts",
      -        "title": "Id"
      -      },
      -      "lines": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "minItems": 1,
      -        "title": "Lines",
      -        "type": "array"
      -      },
      -      "op": {
      -        "const": "ldraw",
      -        "title": "Op",
      -        "type": "string"
      -      },
      -      "seed": {
      -        "anyOf": [
      -          {
      -            "type": "integer"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Seed"
      -      }
      -    },
      -    "required": [
      -      "op",
      -      "lines"
      -    ],
      -    "title": "Ldraw",
      -    "type": "object"
      -  },
      -  "Path": {
      -    "additionalProperties": false,
      -    "properties": {
      -      "id": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "name for this op's parts",
      -        "title": "Id"
      -      },
      -      "op": {
      -        "const": "path",
      -        "title": "Op",
      -        "type": "string"
      -      },
      -      "points": {
      -        "items": {
      -          "maxItems": 2,
      -          "minItems": 2,
      -          "prefixItems": [
      -            {
      -              "type": "number"
      -            },
      -            {
      -              "type": "number"
      -            }
      -          ],
      -          "type": "array"
      -        },
      -        "minItems": 2,
      -        "title": "Points",
      -        "type": "array"
      -      },
      -      "seed": {
      -        "anyOf": [
      -          {
      -            "type": "integer"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Seed"
      -      },
      -      "style": {
      -        "default": "cobble",
      -        "enum": [
      -          "cobble",
      -          "dirt"
      -        ],
      -        "title": "Style",
      -        "type": "string"
      -      },
      -      "width": {
      -        "anyOf": [
      -          {
      -            "type": "number"
      -          },
      -          {
      -            "maxItems": 2,
      -            "minItems": 2,
      -            "prefixItems": [
      -              {
      -                "type": "number"
      -              },
      -              {
      -                "type": "number"
      -              }
      -            ],
      -            "type": "array"
      -          }
      -        ],
      -        "default": 3,
      -        "title": "Width"
      -      }
      -    },
      -    "required": [
      -      "op",
      -      "points"
      -    ],
      -    "title": "Path",
      -    "type": "object"
      -  },
      -  "Plan": {
      -    "additionalProperties": false,
      -    "properties": {
      -      "board": {
      -        "$ref": "#/$defs/Board",
      -        "default": {
      -          "colour": "green",
      -          "depth": 32,
      -          "width": 32
      -        }
      -      },
      -      "name": {
      -        "default": "brickscape build",
      -        "title": "Name",
      -        "type": "string"
      -      },
      -      "ops": {
      -        "default": [],
      -        "items": {
      -          "discriminator": {
      -            "mapping": {
      -              "block": "#/$defs/Block",
      -              "boulder": "#/$defs/Boulder",
      -              "brick": "#/$defs/Brick",
      -              "hill": "#/$defs/Hill",
      -              "ldraw": "#/$defs/Ldraw",
      -              "path": "#/$defs/Path",
      -              "plant": "#/$defs/Plant",
      -              "scatter": "#/$defs/Scatter",
      -              "tree": "#/$defs/Tree",
      -              "water": "#/$defs/Water"
      -            },
      -            "propertyName": "op"
      -          },
      -          "oneOf": [
      -            {
      -              "$ref": "#/$defs/Brick"
      -            },
      -            {
      -              "$ref": "#/$defs/Block"
      -            },
      -            {
      -              "$ref": "#/$defs/Ldraw"
      -            },
      -            {
      -              "$ref": "#/$defs/Hill"
      -            },
      -            {
      -              "$ref": "#/$defs/Boulder"
      -            },
      -            {
      -              "$ref": "#/$defs/Path"
      -            },
      -            {
      -              "$ref": "#/$defs/Water"
      -            },
      -            {
      -              "$ref": "#/$defs/Tree"
      -            },
      -            {
      -              "$ref": "#/$defs/Plant"
      -            },
      -            {
      -              "$ref": "#/$defs/Scatter"
      -            }
      -          ]
      -        },
      -        "title": "Ops",
      -        "type": "array"
      -      },
      -      "seed": {
      -        "default": 1,
      -        "title": "Seed",
      -        "type": "integer"
      -      }
      -    },
      -    "title": "Plan",
      -    "type": "object"
      -  },
      -  "Plant": {
      -    "additionalProperties": false,
      -    "properties": {
      -      "at": {
      -        "maxItems": 2,
      -        "minItems": 2,
      -        "prefixItems": [
      -          {
      -            "type": "number"
      -          },
      -          {
      -            "type": "number"
      -          }
      -        ],
      -        "title": "At",
      -        "type": "array"
      -      },
      -      "id": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "name for this op's parts",
      -        "title": "Id"
      -      },
      -      "kind": {
      -        "default": "bush",
      -        "enum": [
      -          "tuft",
      -          "flower",
      -          "flowers",
      -          "bush",
      -          "big_bush",
      -          "fern",
      -          "leafy",
      -          "reeds",
      -          "bamboo",
      -          "cactus",
      -          "succulent",
      -          "stone"
      -        ],
      -        "title": "Kind",
      -        "type": "string"
      -      },
      -      "op": {
      -        "const": "plant",
      -        "title": "Op",
      -        "type": "string"
      -      },
      -      "seed": {
      -        "anyOf": [
      -          {
      -            "type": "integer"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Seed"
      -      }
      -    },
      -    "required": [
      -      "op",
      -      "at"
      -    ],
      -    "title": "Plant",
      -    "type": "object"
      -  },
      -  "Scatter": {
      -    "additionalProperties": false,
      -    "properties": {
      -      "area": {
      -        "anyOf": [
      -          {
      -            "$ref": "#/$defs/Area"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null
      -      },
      -      "density": {
      -        "default": 0.08,
      -        "exclusiveMinimum": 0,
      -        "maximum": 1,
      -        "title": "Density",
      -        "type": "number"
      -      },
      -      "id": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "name for this op's parts",
      -        "title": "Id"
      -      },
      -      "keep_clear": {
      -        "default": [],
      -        "items": {
      -          "$ref": "#/$defs/Area"
      -        },
      -        "title": "Keep Clear",
      -        "type": "array"
      -      },
      -      "kinds": {
      -        "default": [
      -          "tuft",
      -          "flower",
      -          "bush"
      -        ],
      -        "items": {
      -          "anyOf": [
      -            {
      -              "enum": [
      -                "tuft",
      -                "flower",
      -                "flowers",
      -                "bush",
      -                "big_bush",
      -                "fern",
      -                "leafy",
      -                "reeds",
      -                "bamboo",
      -                "cactus",
      -                "succulent",
      -                "stone"
      -              ],
      -              "type": "string"
      -            },
      -            {
      -              "enum": [
      -                "tree:oak",
      -                "tree:birch",
      -                "tree:pine",
      -                "tree:palm",
      -                "tree:cypress"
      -              ],
      -              "type": "string"
      -            }
      -          ]
      -        },
      -        "title": "Kinds",
      -        "type": "array"
      -      },
      -      "op": {
      -        "const": "scatter",
      -        "title": "Op",
      -        "type": "string"
      -      },
      -      "seed": {
      -        "anyOf": [
      -          {
      -            "type": "integer"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Seed"
      -      }
      -    },
      -    "required": [
      -      "op"
      -    ],
      -    "title": "Scatter",
      -    "type": "object"
      -  },
      -  "Tree": {
      -    "additionalProperties": false,
      -    "properties": {
      -      "at": {
      -        "maxItems": 2,
      -        "minItems": 2,
      -        "prefixItems": [
      -          {
      -            "type": "number"
      -          },
      -          {
      -            "type": "number"
      -          }
      -        ],
      -        "title": "At",
      -        "type": "array"
      -      },
      -      "bark": {
      -        "anyOf": [
      -          {
      -            "type": "integer"
      -          },
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Bark"
      -      },
      -      "id": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "name for this op's parts",
      -        "title": "Id"
      -      },
      -      "kind": {
      -        "default": "oak",
      -        "enum": [
      -          "oak",
      -          "birch",
      -          "pine",
      -          "palm",
      -          "cypress"
      -        ],
      -        "title": "Kind",
      -        "type": "string"
      -      },
      -      "leaf": {
      -        "anyOf": [
      -          {
      -            "type": "integer"
      -          },
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "items": {
      -              "anyOf": [
      -                {
      -                  "type": "integer"
      -                },
      -                {
      -                  "type": "string"
      -                }
      -              ]
      -            },
      -            "type": "array"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Leaf"
      -      },
      -      "op": {
      -        "const": "tree",
      -        "title": "Op",
      -        "type": "string"
      -      },
      -      "seed": {
      -        "anyOf": [
      -          {
      -            "type": "integer"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Seed"
      -      },
      -      "size": {
      -        "default": "medium",
      -        "enum": [
      -          "small",
      -          "medium",
      -          "tall",
      -          "fat",
      -          "big"
      -        ],
      -        "title": "Size",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "op",
      -      "at"
      -    ],
      -    "title": "Tree",
      -    "type": "object"
      -  },
      -  "Water": {
      -    "additionalProperties": false,
      -    "properties": {
      -      "area": {
      -        "anyOf": [
      -          {
      -            "$ref": "#/$defs/Area"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "a pond"
      -      },
      -      "colour": {
      -        "anyOf": [
      -          {
      -            "type": "integer"
      -          },
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Colour"
      -      },
      -      "id": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "name for this op's parts",
      -        "title": "Id"
      -      },
      -      "op": {
      -        "const": "water",
      -        "title": "Op",
      -        "type": "string"
      -      },
      -      "points": {
      -        "anyOf": [
      -          {
      -            "items": {
      -              "maxItems": 2,
      -              "minItems": 2,
      -              "prefixItems": [
      -                {
      -                  "type": "number"
      -                },
      -                {
      -                  "type": "number"
      -                }
      -              ],
      -              "type": "array"
      -            },
      -            "minItems": 2,
      -            "type": "array"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "a stream",
      -        "title": "Points"
      -      },
      -      "seed": {
      -        "anyOf": [
      -          {
      -            "type": "integer"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Seed"
      -      },
      -      "width": {
      -        "anyOf": [
      -          {
      -            "type": "number"
      -          },
      -          {
      -            "maxItems": 2,
      -            "minItems": 2,
      -            "prefixItems": [
      -              {
      -                "type": "number"
      -              },
      -              {
      -                "type": "number"
      -              }
      -            ],
      -            "type": "array"
      -          }
      -        ],
      -        "default": 4,
      -        "title": "Width"
      -      }
      -    },
      -    "required": [
      -      "op"
      -    ],
      -    "title": "Water",
      -    "type": "object"
      -  }
      -}
    • removedInput schema / properties / plan / anyOf
      Removed value: -[
      -  {
      -    "$ref": "#/$defs/Plan"
      -  },
      -  {
      -    "type": "string"
      -  }
      -]
    • changedInput schema / properties / plan / description
      Previous value: -"The build plan: board size, seed and a list of operations (hill, block, water, path, boulder, tree, plant, scatter, brick, ldraw). An object or a JSON string."New value: +"The build plan as JSON text: {\"name\": ..., \"board\": {\"width\": 32, \"depth\": 32}, \"seed\": 1, \"ops\": [...]}. Operations: hill, block, water, path, boulder, tree, plant, scatter, brick, ldraw. Full field reference: the `guide` tool or the brickscape://schema/plan resource; example plans: brickscape://examples/{forest-clearing,garden-20,showcase}."
    • addedInput schema / properties / plan / type
      Added value: +"string"
  2. Changed3 schema fields changedv0.1.1
    • addedInput schema / properties / plan / description
      Added value: +"The build plan: board size, seed and a list of operations (hill, block, water, path, boulder, tree, plant, scatter, brick, ldraw). An object or a JSON string."
    • addedInput schema / properties / source / description
      Added value: +"Part source: 'lego' (official LEGO parts and colours, default) or 'gobricks' (GoBricks moulds, colours and prices)"
    • addedInput schema / properties / source / enum
      Added value: +[
      +  "lego",
      +  "gobricks"
      +]
  3. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations, it discloses the actual repair pipeline (drops parts that don't fit or protrude, recolours to nearest real colour, checks intersections, loose/unavailable parts and impossible colours), the exact files written and where, that re-running the same name replaces those files, and the shape of the returned report. That is far more than readOnlyHint/destructiveHint/idempotentHint convey.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core action, then repair behaviour, then outputs and next steps — a sensible order. It is dense but every paragraph carries weight; the op-type list is slightly redundant with the schema enum but it also serves as a pointer to `guide`.

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

Completeness5/5

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

For a main compile/repair/validate tool with an output schema, everything an agent needs is present: inputs and where to look for their full format, side effects on disk, overwrite semantics, failure mode for invalid plans, and the recommended follow-up tools.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so 3 is the floor, but the description adds value by explaining that the plan carries board size and an op list, enumerating the operation types, and pointing to `guide`, the brickscape://schema/plan resource and named example plans for the full field reference. The `source` enum is already fully documented in the schema and is not duplicated.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Compile a build plan into a LEGO model, repair it and validate it strictly" gives a specific verb, resource and full scope (compile + repair + validate), and explicitly claims the role of "the main tool." It is clearly distinguishable from siblings like render, export and parts_list, which are named as downstream steps.

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

Usage Guidelines4/5

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

The description gives real routing guidance: call `guide` for operation semantics, and after building use `render`, `export`, `parts_list` or `instructions`. It also states invalid plans are rejected with the offending field. What it lacks is a when-not-to-use clause (e.g. relative to `check`), so it falls just short of a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.