Skip to main content
Glama

Gradient Dynamics: thermal and CFD simulation

Prepare cold-plate simulation

prepare_cold_plate_simulation
Read-onlyIdempotent

Prepare a CHT request from a brief and actual mesh zones/patches. Assign each CSV heat-map cell exactly once to a solid zone, conserve total power and explicitly accept any zone averaging. Supply verified materials, inlet flow conversion and boundary conditions. Returns a validated request for run_simulation and its resolved_physics; sets thermal.characteristic_length_m from the inlet port. Never launches compute or pretends a spatial field is retained when averaged.

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": {
      "brief_id": "<brief_id>",
      "request": "<request>"
    },
    "name": "prepare_cold_plate_simulation"
  }
}

Input Schema

NameRequiredDescriptionDefault
requestYes
brief_idYes
allow_zone_averagingNo
heat_map_cells_by_zoneNoAssign every zero-based heat-map row exactly once to a verified solid zone

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • removedInput schema / $defs / SimulationRequest
      Removed value: -{
      -  "additionalProperties": false,
      -  "properties": {
      -    "config": {
      -      "$ref": "#/$defs/FluxCoreConfig"
      -    },
      -    "convergence_criteria": {
      -      "anyOf": [
      -        {
      -          "$ref": "#/$defs/ConvergenceCriteria"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "description": "How to judge this run converged when it finishes; omit for the standard test (every residual at or below 1e-3, none rising)."
      -    },
      -    "decision_context": {
      -      "$ref": "#/$defs/DecisionContext"
      -    },
      -    "gpu": {
      -      "anyOf": [
      -        {
      -          "enum": [
      -            "B200",
      -            "H100"
      -          ],
      -          "type": "string"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "description": "GPU type: B200 (default) or H100."
      -    },
      -    "gpu_count": {
      -      "anyOf": [
      -        {
      -          "enum": [
      -            1,
      -            2,
      -            4,
      -            8
      -          ],
      -          "type": "integer"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "description": "GPUs for the solve (default 1). CHT and Krylov runs use one."
      -    },
      -    "mesh_artifact_id": {
      -      "maxLength": 128,
      -      "minLength": 1,
      -      "pattern": "^[A-Za-z0-9_-]+$",
      -      "type": "string"
      -    },
      -    "mesh_unit_conversion": {
      -      "anyOf": [
      -        {
      -          "$ref": "#/$defs/MeshUnitConversion"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ]
      -    },
      -    "project_id": {
      -      "anyOf": [
      -        {
      -          "format": "uuid",
      -          "type": "string"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ]
      -    },
      -    "restart_artifact_id": {
      -      "anyOf": [
      -        {
      -          "maxLength": 128,
      -          "minLength": 1,
      -          "pattern": "^[A-Za-z0-9_-]+$",
      -          "type": "string"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ]
      -    }
      -  },
      -  "required": [
      -    "mesh_artifact_id"
      -  ],
      -  "type": "object"
      -}
    • removedInput schema / properties / request / $ref
      Removed value: -"#/$defs/SimulationRequest"
    • addedInput schema / properties / request / additionalProperties
      Added value: +false
    • addedInput schema / properties / request / properties
      Added value: +{
      +  "config": {
      +    "$ref": "#/$defs/FluxCoreConfig"
      +  },
      +  "convergence_criteria": {
      +    "anyOf": [
      +      {
      +        "$ref": "#/$defs/ConvergenceCriteria"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ],
      +    "description": "How to judge this run converged when it finishes; omit for the standard test (every residual at or below 1e-3, none rising)."
      +  },
      +  "decision_context": {
      +    "$ref": "#/$defs/DecisionContext"
      +  },
      +  "gpu": {
      +    "anyOf": [
      +      {
      +        "enum": [
      +          "B200",
      +          "H100"
      +        ],
      +        "type": "string"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ],
      +    "description": "GPU type: B200 (default) or H100."
      +  },
      +  "gpu_count": {
      +    "anyOf": [
      +      {
      +        "enum": [
      +          1,
      +          2,
      +          4,
      +          8
      +        ],
      +        "type": "integer"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ],
      +    "description": "GPUs for the solve (default 1). CHT and Krylov runs use one."
      +  },
      +  "mesh_artifact_id": {
      +    "maxLength": 128,
      +    "minLength": 1,
      +    "pattern": "^[A-Za-z0-9_-]+$",
      +    "type": "string"
      +  },
      +  "mesh_unit_conversion": {
      +    "anyOf": [
      +      {
      +        "$ref": "#/$defs/MeshUnitConversion"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ]
      +  },
      +  "project_id": {
      +    "anyOf": [
      +      {
      +        "format": "uuid",
      +        "type": "string"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ]
      +  },
      +  "restart_artifact_id": {
      +    "anyOf": [
      +      {
      +        "maxLength": 128,
      +        "minLength": 1,
      +        "pattern": "^[A-Za-z0-9_-]+$",
      +        "type": "string"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ]
      +  }
      +}
    • addedInput schema / properties / request / required
      Added value: +[
      +  "mesh_artifact_id"
      +]
    • addedInput schema / properties / request / type
      Added value: +"object"
  2. Changed20 schema fields changed
    • addedInput schema / $defs / BoundaryCondition / properties / thermal
      Added value: +{
      +  "anyOf": [
      +    {
      +      "$ref": "#/$defs/BoundaryThermal"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "CHT only: heat transfer through this outer solid surface; default adiabatic."
      +}
    • addedInput schema / $defs / BoundaryThermal
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Heat transfer through an outer solid surface in a CHT run. Surfaces default to adiabatic.",
      +  "properties": {
      +    "ambient_temperature_k": {
      +      "anyOf": [
      +        {
      +          "exclusiveMinimum": 0,
      +          "type": "number"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "description": "Surrounding temperature in K; convection only."
      +    },
      +    "emissivity": {
      +      "default": 0,
      +      "description": "Surface emissivity for radiation to surroundings at ambient_temperature_k; 0 for none.",
      +      "maximum": 1,
      +      "minimum": 0,
      +      "type": "number"
      +    },
      +    "htc_w_m2k": {
      +      "anyOf": [
      +        {
      +          "maximum": 1000000,
      +          "minimum": 0,
      +          "type": "number"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "description": "Heat transfer coefficient to the surroundings in W/(m^2 K); convection only."
      +    },
      +    "solid_zone": {
      +      "anyOf": [
      +        {
      +          "maxLength": 128,
      +          "minLength": 1,
      +          "pattern": "^[A-Za-z0-9_-]+$",
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "description": "Solid zone that owns this surface; needed when the run has more than one solid zone."
      +    },
      +    "type": {
      +      "default": "adiabatic",
      +      "description": "adiabatic (no heat crosses) or convection to the surroundings, with optional radiation. Fixed-temperature and fixed-heat-flux surfaces are not available.",
      +      "enum": [
      +        "adiabatic",
      +        "convection"
      +      ],
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
    • addedInput schema / $defs / ContactResistance
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "resistance_m2k_w": {
      +      "description": "Contact resistance in m^2 K/W.",
      +      "maximum": 1,
      +      "minimum": 0,
      +      "type": "number"
      +    },
      +    "zones": {
      +      "description": "The two solid zones that touch.",
      +      "maxItems": 2,
      +      "minItems": 2,
      +      "prefixItems": [
      +        {
      +          "maxLength": 128,
      +          "minLength": 1,
      +          "pattern": "^[A-Za-z0-9_-]+$",
      +          "type": "string"
      +        },
      +        {
      +          "maxLength": 128,
      +          "minLength": 1,
      +          "pattern": "^[A-Za-z0-9_-]+$",
      +          "type": "string"
      +        }
      +      ],
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "zones",
      +    "resistance_m2k_w"
      +  ],
      +  "type": "object"
      +}
    • changedInput schema / $defs / ConvergenceCriteria / description
      Previous value: -"Fields as in assess_convergence: window_fraction, window_iterations, max_final_residual, residuals, residual_rise_orders, min_residual_orders_dropped, forces, force_band_percent, force_band_floor. Unset fields keep the standard test; unknown fields are rejected."New value: +"Fields as in assess_convergence: window_fraction, window_iterations, max_final_residual, residuals, residual_rise_orders, min_residual_orders_dropped, forces, force_band_percent, force_band_floor, max_energy_balance_error. Unset fields keep the standard test; unknown fields are rejected."
    • addedInput schema / $defs / FluxCoreConfig / properties / convergence_tolerance / description
      Added value: +"Unset, it follows run_quality."
    • changedInput schema / $defs / FluxCoreConfig / properties / max_iterations / description
      Previous value: -"Steady iteration ceiling; explicitly null for URANS."New value: +"Steady iteration ceiling; explicitly null for URANS. Unset, it follows run_quality."
    • addedInput schema / $defs / FluxCoreConfig / properties / run_quality
      Added value: +{
      +  "default": "standard",
      +  "description": "Fills only unset limits: max_iterations 3000/6000/12000, convergence_tolerance 1e-4/1e-6/1e-7 and, for CHT, compressible_config.cht_outer_tol 1e-3/1e-4/1e-5.",
      +  "enum": [
      +    "quick",
      +    "standard",
      +    "thorough"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / $defs / FluxCoreConfig / properties / scale_resolving
      Added value: +{
      +  "anyOf": [
      +    {
      +      "const": "ddes",
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "URANS only: ddes runs delayed detached-eddy simulation on the chosen turbulence model."
      +}
    • changedInput schema / $defs / FluxCoreConfig / properties / turbulence_model / default
      Previous value: -"k_omega_sst"New value: +"auto"
    • addedInput schema / $defs / FluxCoreConfig / properties / turbulence_model / description
      Added value: +"auto (default): k-omega SST for flow-only runs; for CHT laminar below Reynolds number 2300, otherwise k-omega SST. Set a model only when the user asks for one. The choice and its reason are returned as resolved_physics."
    • changedInput schema / $defs / FluxCoreConfig / properties / turbulence_model / enum
      Previous value: -[
      -  "k_omega_sst",
      -  "spalart_allmaras",
      -  "laminar"
      -]New value: +[
      +  "auto",
      +  "k_omega_sst",
      +  "spalart_allmaras",
      +  "laminar"
      +]
    • addedInput schema / $defs / FluxCoreConfig / properties / wall_function
      Added value: +{
      +  "const": "spalding",
      +  "default": "spalding",
      +  "description": "Wall law used with wall functions, for the flow, the forces and the thermal wall handoff. Ignored when the walls are resolved (low_re or none).",
      +  "type": "string"
      +}
    • changedInput schema / $defs / FluxCoreConfig / properties / wall_treatment / default
      Previous value: -"wall_functions"New value: +"auto"
    • addedInput schema / $defs / FluxCoreConfig / properties / wall_treatment / description
      Added value: +"auto (default): wall functions valid at any y+ for turbulent flow, resolved walls (low_re) for laminar flow. low_re needs a first cell at y+ of about 1; none is for laminar CHT only."
    • changedInput schema / $defs / FluxCoreConfig / properties / wall_treatment / enum
      Previous value: -[
      -  "wall_functions",
      -  "low_re",
      -  "none"
      -]New value: +[
      +  "auto",
      +  "wall_functions",
      +  "low_re",
      +  "none"
      +]
    • addedInput schema / $defs / ThermalConfig / properties / characteristic_length_m
      Added value: +{
      +  "anyOf": [
      +    {
      +      "exclusiveMinimum": 0,
      +      "maximum": 100,
      +      "type": "number"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Hydraulic diameter in metres of the passage that carries the inlet flow, used for the Reynolds number that chooses laminar or turbulent flow when turbulence_model is auto. With a volumetric inlet the flow is taken through a circle of this diameter."
      +}
    • addedInput schema / $defs / ThermalConfig / properties / contact_resistances
      Added value: +{
      +  "description": "Thermal contact resistance on named solid-solid interfaces; overrides the global cht_solid_contact_resistance on those interfaces.",
      +  "items": {
      +    "$ref": "#/$defs/ContactResistance"
      +  },
      +  "maxItems": 512,
      +  "type": "array"
      +}
    • addedInput schema / $defs / ThermalConfig / properties / expansion_coefficient_per_k
      Added value: +{
      +  "anyOf": [
      +    {
      +      "exclusiveMinimum": 0,
      +      "maximum": 0.1,
      +      "type": "number"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Fluid volumetric thermal expansion coefficient in 1/K for buoyancy. Default 1/T_ref for gases; required for liquids (water is about 2.1e-4)."
      +}
    • addedInput schema / $defs / ThermalConfig / properties / gravity_m_s2
      Added value: +{
      +  "anyOf": [
      +    {
      +      "$ref": "#/$defs/Vector3"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Gravity vector in m/s^2 in mesh coordinates, e.g. [0, 0, -9.81]; turns on buoyancy (Boussinesq) in every fluid zone. Omit for no buoyancy."
      +}
    • addedInput schema / $defs / ThermalConfig / properties / natural_convection_cycles
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maximum": 50,
      +      "minimum": 1,
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Buoyant flow/thermal re-solve cycles sharing max_iterations; default 3 when gravity is set."
      +}
  3. Changed2 schema fields changed
    • changedInput schema / $defs / BoundaryValue / properties / turbulence_intensity / description
      Previous value: -"Inlet turbulence fraction, not percent; native reference default 0.01 when exact SST state is absent."New value: +"Optional inlet turbulence fraction (0–1, not percent). Omit all inlet turbulence quantities to use model-specific solver defaults; provide both intensity and viscosity ratio for a custom inlet."
    • changedInput schema / $defs / BoundaryValue / properties / turbulent_viscosity_ratio / description
      Previous value: -"Inlet eddy/molecular viscosity ratio; native default 10 when exact SST state is absent."New value: +"Optional inlet eddy/molecular viscosity ratio. Omit all inlet turbulence quantities for model-specific solver defaults; supply with turbulence_intensity for a custom inlet."
  4. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnlyHint/idempotent/non-destructive, and the description still adds substantive behavior beyond them: every heat-map cell must be assigned exactly once, total power is conserved, zone averaging must be explicitly accepted via allow_zone_averaging, and it side-effects thermal.characteristic_length_m from the inlet port. The line 'Never launches compute or pretends a spatial field is retained when averaged' forecloses exactly the failure modes an agent would otherwise guess at.

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

Conciseness5/5

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

Four sentences, all front-loaded with the core action first and the guardrails after. Some sentences are dense and compound ('Supply verified materials, inlet flow conversion and boundary conditions'), but each clause carries distinct behavioral information, so nothing is padding.

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

Completeness4/5

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

For a heavy nested CHT schema with an output schema present, the description covers the semantics that matter — zone assignment, power conservation, averaging consent, and the derived characteristic length. It stops short of stating prerequisites (that brief_id and mesh_artifact_id must originate from upstream tools), which is the main remaining gap.

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 only 25%, and the two top-level parameters with no schema prose — heat_map_cells_by_zone and allow_zone_averaging — are precisely the ones the description explains ('assign each CSV heat-map cell exactly once', 'explicitly accept any zone averaging'). It also clarifies the inlet-flow conversion and material verification work done on the nested request, though it adds no syntax-level detail for brief_id.

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: 'Prepare a CHT request from a brief and actual mesh zones/patches.' It also draws the boundary against the sibling that consumes its output ('Returns a validated request for run_simulation'), so an agent can tell this apart from run_simulation, plan_cold_plate and compare_cold_plate_candidates without inspecting schemas.

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?

Usage context is clear: this is the pre-solve step that produces a request for run_simulation, and it 'Never launches compute,' so an agent knows not to expect a solve. It gives no explicit exclusions or ordering guidance relative to other preparation siblings, but the when-to-use signal is unambiguous.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources