WiseGH
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Rules first: family_check before building. Build with family_compile then gh_apply, never by wiring components one at a time. Only a solve with zero errors, expected counts and passing asserts counts as done. A timeout is not a failure: use gh_result.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| family_checkB | Check a family spec (JSON): every parameter has a basis (measured, inferred, assumed, unknown), sources for measured and inferred values, bands for knobs. Returns the rules gate: pass, blocked (a person must decide the open items) or fail. |
| family_metricsC | Pure-Python numbers for a family with optional knob overrides: floor count, top level, top rotation, areas, top scale. These are the oracle the Grasshopper result must match. |
| family_compileC | Compile a family spec into a Grasshopper definition (wise.ghjson, a GhJSON 1.0 profile) and save it. The graph is built by fixed code from the spec, not wired by hand. Overrides may only change knobs, inside their bands. |
| family_variantsB | Sample variants inside the family's bands (seeded Latin hypercube) and score each for novelty and silhouette similarity to the original. Returns the in-family set, the Pareto front and a shortlist for a person to pick from. |
| family_revit_exchangeC | Write a Revit exchange file (wise.revit-exchange) for a family: levels, exact floor outlines (arcs and lines) and triangulated massing, from the same geometry the Grasshopper script runs. Revit builds it with revit/revit_build.py in Dynamo, with no Rhino in Revit. Overrides may only change knobs, inside their bands. |
| plan_checkB | Check a floor plan spec (wise.revit-plan JSON) before Revit sees it: known levels and wall types, unique ids, closed floor loops, doors and openings on real walls, ramps no steeper than 25%. Returns the problems and the element counts. |
| plan_drawingB | Draw one level of a plan spec as a PNG (walls cut at 1.2 m, glazing, columns, stairs, room names) so a person can check it before the Revit build. |
| plan_exampleC | Write the worked example plan: Le Corbusier's Villa Savoye (pilotis on a 4.75 m grid, 4-flight ramp, 2 spiral stairs, strip windows, roof solarium, 9 cameras). Every assumed value is labelled in the spec's notes. |
| ghjson_validateA | Validate a wise.ghjson definition before it touches a canvas: ids, names, verified GUIDs only, script components start with '#! python 3' and have outputs, every wire names both ends. |
| gh_statusA | Is the listener up, is Grasshopper loaded, which definition is open. Call first. |
| gh_find_componentA | Exact lookup of a Grasshopper component by name, nickname or 'Category/Name'. No fuzzy matching: zero hits means use another name; several hits means add a category. |
| gh_describe_componentB | Inputs and outputs (names, nicknames, types, access) of a component. Read it before wiring. |
| gh_new_documentB | Open a new empty Grasshopper definition (the user's open definitions are left alone). |
| gh_applyA | Build a wise.ghjson definition on the canvas atomically: every component and wire is resolved first, nothing is added if anything fails, all errors are reported, one undo step, one solve. Returns refs (definition id -> instance GUID). |
| gh_solveC | Recompute the definition and return runtime errors and warnings per object. |
| gh_messagesA | Runtime errors and warnings of every object, without solving. |
| gh_outputsB | Data on one output: tree shape (paths, items), item types, a short preview. Use it to check counts after every change. |
| gh_set_sliderB | Set a number slider by nickname and solve. Returns the value before, so you can put it back. |
| gh_measure_platesB | Measure floor plates on an output inside Rhino: closed and planar count, top level, rotation of the corners from base to top, base and top area, top scale. |
| gh_bakeA | Bake one output to a WISE layer, tagged with stage and role. Earlier objects with the same stage and role are replaced, so a rerun never duplicates. Only bake after a solve with no errors. |
| gh_save_copyB | Save the definition as a new .gh or .ghx file written by Grasshopper itself. Refuses to overwrite unless overwrite is true. |
| gh_capture_canvasC | PNG of the visible Grasshopper canvas (for the gate, not every step). |
| gh_capture_viewC | PNG of a Rhino viewport, optionally zoomed to WISE layers. |
| gh_resultA | Fetch the result of a job that was still running when its call returned. A timeout is not a failure: never resend a job that changes the model. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 24 tools
Tools are grouped by clear domain prefixes (gh_, family_, plan_, ghjson_) and mostly target distinct resources. A few boundaries require reading descriptions to separate: gh_solve vs gh_messages, gh_capture_canvas vs gh_capture_view, and family_metrics vs gh_measure_plates (same floor-plate concepts, different backends) could cause momentary misselection, but descriptions disambiguate.
Consistent snake_case with a domain-prefix convention (gh_*, family_*, plan_*, ghjson_validate) applied throughout. Minor verb/noun mix within prefixes (family_check vs family_metrics, plan_check vs plan_drawing) is still predictable and readable.
24 tools is at the heavy end and crosses into the 'feels heavy' band, spread across four sub-domains (Grasshopper control, family specs, plan specs, capture). Each tool is largely non-redundant and earns a place given the breadth, but the surface is large enough to burden an agent's selection.
Grasshopper control and family lifecycle (check, metrics, compile, variants, Revit exchange) are thoroughly covered, and the gh_ pipeline (status, find, describe, apply, solve, outputs, bake, save) has no dead ends. The plan side is thinner—only check, drawing, and example, with construction deferred to an external Dynamo script—leaving a mild gap.