Skip to main content
Glama
Almond MCP

Almond MCP

visualize_structure

Overlay a live structural analysis in every Rhino viewport to show deformed shapes, supports, loads and PASS/FAIL, so you can iteratively fix red members while designing.

Instructions

Run a live structural analysis on a line model and SHOW it in every Rhino viewport: the undeformed wireframe, the exaggerated deformed shape coloured blue -> red by displacement (or by utilization), supports, load arrows and a legend panel with max deflection, the L/limit check and PASS/FAIL. Nothing is baked into the document.

Use it to make structural behaviour visible while designing: model the structural axes as curves, include Rhino point objects at the supports, call this tool, then fix the members it shows in red (add a column, shorten a cantilever, upsize the section via beam_diameter_mm) and call it again. validate_structure gives the auditable verdict; this tool is the visual, iterative view of the same solve.

Args: guids: Curve GUIDs of the structural axes plus point GUIDs marking supports (see fixed_supports). Without points, the lowest nodes are supported. load_kn: Total imposed load in kN, shared equally by the free nodes (-Z). material: "Steel", "S355", "Concrete", "Wood", "Aluminium". beam_diameter_mm, beam_wall_mm: circular hollow section for every member (default: inferred / CHS 114.3x4). self_weight: include gravity. fixed_supports: True = fully fixed supports, False = pinned (rotations free). deflection_limit_ratio: span/ratio limit, e.g. 250 for L/250. Default: the design code's limit (Eurocode profile: 250). span_m: reference span in meters for the limit (default: longest member). Set it when members are split at every node, e.g. a 6.2 m joist drawn as two 3.1 m segments. color_by: "displacement" or "utilization". scale: deformation exaggeration; omit for automatic (~6% of span). reveal: 0..1 fraction of members drawn (for staged construction playback). reanalyze: False re-uses the last solve and only changes the display (scale / color_by / reveal / physics / title) - cheap enough to animate. physics: False draws the same members as plain geometry with no analysis overlay ("physics off"), for before/after comparisons. display_guids: draw only these members (e.g. one frame line for a section view); the analysis still covers every member in guids. title: legend title. clear: remove the overlay. engine: "auto" (default: Almond's native frame solver, no Karamba needed; Karamba when the selection has shells or the bridge cannot export a model), "native" or "karamba". asset_loads, scene_id: add the loads of placed library assets (native engine), as in validate_structure; loaded points are drawn with load arrows. floor_load_kn_m2, floor_dead_kn_m2: floor area loads on every enclosed bay, as in validate_structure. design_basis, uls_combination, design_code: as in validate_structure; the overlay draws the SLS deflected shape coloured by the ULS utilization envelope. connections: "rigid" or "simple", as in validate_structure; pinned ends are drawn as small circles. stability: "auto" or "off", as in validate_structure. view: "deflection" (default) or "buckling": draw the first buckling mode of the governing ULS combination with its alpha_cr (STABLE >= 10, SWAY-SENSITIVE 1-10, UNSTABLE <= 1) instead of the deflected shape. structure_type: as in validate_structure (sets the reference span; storey drift is checked for every type except "truss"). With the same inputs the overlay's PASS/FAIL is validate_structure's native verdict.

Returns JSON: status ("pass"|"fail"|"indicative"|"error"|"cleared"), max_deflection_mm (native: each member's deflection relative to its supports, the value checked against deflection_limit_mm, as in validate_structure), max_displacement_mm (absolute, incl. column shortening and sway; it scales the drawing), storey_drift, failures, class4_members, span_m, max_utilization, scale, per-element {source_guids, max_displacement_mm, utilization}, warnings. The native engine reports analysis_method "native"; engine="karamba" (BETA) needs Karamba3D 3.1 (the trial caps models at 20 beam elements).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "visualize_structure"
  }
}

Input Schema

NameRequiredDescriptionDefault
viewNodeflection
clearNo
guidsNo
scaleNo
titleNo
engineNoauto
revealNo
span_mNo
load_knNo
physicsNo
color_byNodisplacement
materialNoSteel
scene_idNo
reanalyzeNo
stabilityNoauto
asset_loadsNo
connectionsNorigid
design_codeNoeurocode
fabricationNocold_formed
self_weightNo
beam_wall_mmNo
design_basisNoen1990
display_guidsNo
fixed_supportsNo
structure_typeNobeam
uls_combinationNo
beam_diameter_mmNo
floor_dead_kn_m2No
floor_load_kn_m2No
lateral_restraintNojoints
deflection_limit_ratioNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.8.0

TDQS

A4.9/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so: it states nothing is baked into the document (non-destructive), that analysis covers all members while display_guids limits drawing, that the overlay PASS/FAIL equals validate_structure's native verdict, and the engine fallback rules including Karamba's 3.1 requirement and 20-element trial cap. Those are exactly the side effects and constraints an agent cannot get from structured fields.

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 purpose then usage, followed by a structured Args block and a Returns block, so it is easy to scan despite its length. It is long, but the length is largely earned by a 31-parameter surface; the repeated 'as in validate_structure' cross-references are efficient rather than wasteful.

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 high-complexity, 31-parameter visualization tool with no annotations, the definition covers setup, iteration loop, engine selection, failure modes and result fields. Since an output schema exists, the Returns summary is supplementary rather than a gap.

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

Parameters5/5

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

Schema description coverage is 0%, so the description must compensate and it largely does, explaining ~29 of 31 parameters with defaults, accepted values and purpose (e.g. span_m for joists split at nodes, scale default ~6% of span, reveal for staged playback, physics off for before/after). Only fabrication and lateral_restraint are left undocumented, a negligible gap at this scale.

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?

Opens with a specific verb and resource: 'Run a live structural analysis on a line model and SHOW it in every Rhino viewport,' then enumerates exactly what is drawn (wireframe, deformed shape, supports, load arrows, legend). It explicitly separates itself from the sibling: 'validate_structure gives the auditable verdict; this tool is the visual, iterative view of the same solve.'

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

Usage Guidelines5/5

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

Gives an explicit workflow ('model the structural axes as curves, include Rhino point objects at the supports, call this tool, then fix the members it shows in red ... and call it again') plus a named alternative and the condition that selects it. It also calls out the low-cost iteration path via reanalyze, which tells the agent when repeat calls are cheap.

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

Deploy Server

Other Tools