Skip to main content
Glama

Gradient Dynamics: thermal and CFD simulation

Check mesh request

validate_mesh
Read-onlyIdempotent

Validate structured, octree/prism or OpenFOAM meshing configuration without compute. All engines default to ±30% cell-count tolerance; leave cell_count_tolerance omitted unless the user requests another tolerance. A target count alone does not imply ±5%. Domain coordinates have engine-specific units; returns clarification/default guidance and configured routing. This checks the contract, not native geometry; use inspect_mesh_geometry for structured component IDs, and check_geometry and plan_mesh for what the octree mesher will make of it. Quality is assessed after execution.

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": {
      "surface_artifact_id": "<surface_artifact_id>",
      "engine": "<engine>"
    },
    "name": "validate_mesh"
  }
}

Input Schema

NameRequiredDescriptionDefault
engineYesstructured: Cartesian; octree_prism: native octree/polyhedral with prism layers, for a generic unstructured request; openfoam: legacy. Keep a method the user named. Formats are export_formats.
openfoamNo
project_idNo
structuredNo
octree_prismNo
target_cellsNo
export_formatsNoDelivered formats, any engine; the first is the primary download. cgns (default): Standard CGNS (NGON/NFACE) for ParaView. gd_cgns: for Fluxcore/Studio, always kept for viewing and simulation. Fluent-format polyhedral .msh. openfoam: polyMesh. Keep the user's choice; never ask for one.
reviewed_job_idNoA new attempt the user asked for after reviewing this finished mesh job, failures included. Needs a fresh idempotency key; records lineage, never restarts the old run.
decision_contextNoUser intent and declared assumptions, retained with the owned job request.
surface_artifact_idYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / $defs / OctreePrismOptions / properties / retry_policy / description
      Previous value: -"review: stop before another full or memory-escalated attempt, keeping out-of-tolerance results for a decision. automatic: the authorized, bounded retry budget, within the credential's retry allowance."New value: +"review: stop before another full or memory-escalated attempt, keeping out-of-tolerance results for a decision. automatic: the authorized, bounded retry budget."
    • changedInput schema / $defs / OpenFoamOptions / properties / retry_policy / description
      Previous value: -"review: stop before another full mesh attempt. automatic: the authorized, bounded max_remesh_iterations, within the credential's retry allowance."New value: +"review: stop before another full mesh attempt. automatic: the authorized, bounded max_remesh_iterations."
    • changedInput schema / $defs / StructuredOptions / properties / retry_policy / description
      Previous value: -"review: stop before another full target-count attempt. automatic: the authorized, bounded max_target_iterations, within the credential's retry allowance."New value: +"review: stop before another full target-count attempt. automatic: the authorized, bounded max_target_iterations."
  2. Changed1 schema field changed
    • changedInput schema / properties / export_formats / description
      Previous value: -"Delivered formats, any engine; the first is the primary download. cgns (default): Standard CGNS (NGON/NFACE) for ParaView. gd_cgns: for Fluxcore/Studio, always kept for viewing and simulation. fluent: polyhedral .msh. openfoam: polyMesh. Keep the user's choice; never ask for one."New value: +"Delivered formats, any engine; the first is the primary download. cgns (default): Standard CGNS (NGON/NFACE) for ParaView. gd_cgns: for Fluxcore/Studio, always kept for viewing and simulation. Fluent-format polyhedral .msh. openfoam: polyMesh. Keep the user's choice; never ask for one."
  3. Changed6 schema fields changed
    • removedInput schema / $defs / DecisionContext
      Removed value: -{
      -  "additionalProperties": false,
      -  "description": "User intent and declared assumptions, retained with the owned job request.",
      -  "properties": {
      -    "assumptions": {
      -      "items": {
      -        "maxLength": 500,
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "maxItems": 32,
      -      "type": "array"
      -    },
      -    "clarifications": {
      -      "items": {
      -        "$ref": "#/$defs/Clarification"
      -      },
      -      "maxItems": 16,
      -      "type": "array"
      -    },
      -    "objective": {
      -      "anyOf": [
      -        {
      -          "maxLength": 500,
      -          "minLength": 1,
      -          "type": "string"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ]
      -    }
      -  },
      -  "type": "object"
      -}
    • removedInput schema / properties / decision_context / $ref
      Removed value: -"#/$defs/DecisionContext"
    • addedInput schema / properties / decision_context / additionalProperties
      Added value: +false
    • addedInput schema / properties / decision_context / description
      Added value: +"User intent and declared assumptions, retained with the owned job request."
    • addedInput schema / properties / decision_context / properties
      Added value: +{
      +  "assumptions": {
      +    "items": {
      +      "maxLength": 500,
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    "maxItems": 32,
      +    "type": "array"
      +  },
      +  "clarifications": {
      +    "items": {
      +      "$ref": "#/$defs/Clarification"
      +    },
      +    "maxItems": 16,
      +    "type": "array"
      +  },
      +  "objective": {
      +    "anyOf": [
      +      {
      +        "maxLength": 500,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ]
      +  }
      +}
    • addedInput schema / properties / decision_context / type
      Added value: +"object"
  4. Changed1 schema field changed
    • changedInput schema / $defs / OctreePrismOptions / properties / named_surfaces / description
      Previous value: -"Wall parts, each an uploaded STL in the surface's units, named for controls.surfaces, wake parts and around regions; each becomes a wall patch. Leave out for a STEP: the mesher names its solids."New value: +"Wall parts, each an uploaded STL in the surface's units, named for controls.surfaces, wake parts and around regions; each becomes a wall patch. For a STEP: its preview's surfaces (omit: solids are named)."
  5. Changed19 schema fields changed
    • changedInput schema / $defs / FlowRegion / properties / ambient_name / description
      Previous value: -"External CHT: the region name of the fluid filling the box round the solids (a cabinet's air). Send the solids and the box, and name the air here: the air body's own surface is then never needed."New value: +"External CHT: region name of the fluid round the solids in the box."
    • changedInput schema / $defs / FlowRegion / properties / component_id / description
      Previous value: -"Existing native profile component ID for internal fluid or solid-only meshing; never infer an ID from a display name."New value: +"Native profile component ID for internal fluid or solid-only meshing; never infer one from a display name."
    • changedInput schema / $defs / FlowRegion / properties / kind / description
      Previous value: -"external: fluid outside bodies; internal: selected fluid volume; solid: material inside a selected closed component, with no fluid region."New value: +"external: fluid outside bodies; internal: a selected fluid volume; solid: a selected closed component's material, no fluid."
    • changedInput schema / $defs / NamedSurface / description
      Previous value: -"A part of the wall, uploaded as its own STL in the surface's units, for per-part sizes, layers, wakes and patches."New value: +"A wall part, uploaded as its own STL in the surface's units, for per-part sizes, layers, wakes and patches."
    • changedInput schema / $defs / OctreePrismOptions / description
      Previous value: -"GD Unstructured. Get exact sizing, units, layers and rotating-zone controls with get_mesh_controls or get_tool_schema. Unknown fields and quality-gate overrides are rejected."New value: +"GD Unstructured. Sizing, units, layers and rotating zones: get_mesh_controls or get_tool_schema. Unknown fields and quality-gate overrides are rejected."
    • changedInput schema / $defs / OctreePrismOptions / properties / controls / description
      Previous value: -"Meshing intent (flow, wake, layers, sizes) for an external mesh. The mesher resolves the domain, spacings and every other field left out from the geometry, with the settings the development meshes were validated with. Other fields given beside it override the resolved values: set them only for a value the user asked for."New value: +"Meshing intent (flow, wake, layers, sizes) for an external mesh; the mesher resolves every field left out as the development meshes were validated. Fields beside it override that: set them only for a value the user asked for."
    • changedInput schema / $defs / OctreePrismOptions / properties / named_surfaces / description
      Previous value: -"Parts of the wall, each an uploaded STL in the surface's units, named for controls.surfaces, wake parts and around regions; each also becomes a wall patch. A STEP's solids are named by the mesher, so leave this out for a STEP."New value: +"Wall parts, each an uploaded STL in the surface's units, named for controls.surfaces, wake parts and around regions; each becomes a wall patch. Leave out for a STEP: the mesher names its solids."
    • changedInput schema / $defs / OctreePrismOptions / properties / retry_authorization_reason / description
      Previous value: -"Explicit user or authorized-agent delegation for bounded automatic mesh retries; required for retry_policy=automatic."New value: +"Who authorized automatic retries (the user or a delegated agent); needed for retry_policy=automatic."
    • changedInput schema / $defs / OctreePrismOptions / properties / retry_policy / description
      Previous value: -"Review stops before another full mesh or memory-escalation attempt and retains eligible out-of-tolerance results for a decision. Automatic allows only the explicitly authorized bounded retry budget, within the credential's retry allowance."New value: +"review: stop before another full or memory-escalated attempt, keeping out-of-tolerance results for a decision. automatic: the authorized, bounded retry budget, within the credential's retry allowance."
    • changedInput schema / $defs / OpenFoamOptions / description
      Previous value: -"engine=openfoam options. Sizing, refinement and quality fields: get_mesh_controls(engine=openfoam) or get_tool_schema. Unknown fields are rejected."New value: +"engine=openfoam. Sizing and quality fields: get_mesh_controls(engine=openfoam) or get_tool_schema; unknown fields are rejected."
    • changedInput schema / $defs / OpenFoamOptions / properties / retry_authorization_reason / description
      Previous value: -"Explicit user or authorized-agent delegation for bounded automatic mesh retries; required for retry_policy=automatic."New value: +"Who authorized automatic retries (the user or a delegated agent); needed for retry_policy=automatic."
    • changedInput schema / $defs / OpenFoamOptions / properties / retry_policy / description
      Previous value: -"Review stops before another full mesh attempt; automatic allows the explicitly authorized, bounded max_remesh_iterations budget, within the credential's retry allowance."New value: +"review: stop before another full mesh attempt. automatic: the authorized, bounded max_remesh_iterations, within the credential's retry allowance."
    • changedInput schema / $defs / StructuredOptions / description
      Previous value: -"engine=structured options. Sizing, refinement and quality fields: get_mesh_controls(engine=structured) or get_tool_schema. Unknown fields are rejected."New value: +"engine=structured. Sizing and quality fields: get_mesh_controls(engine=structured) or get_tool_schema; unknown fields are rejected."
    • changedInput schema / $defs / StructuredOptions / properties / adaptive_refinement / description
      Previous value: -"CAD assemblies and internal stair-step: resolve sampled thin features and tight passages, with coarser bulk where possible. Geometric sizing does not establish wall-model accuracy."New value: +"CAD assemblies and internal stair-step: resolve sampled thin features and tight passages, coarser bulk elsewhere. Sizing alone does not set wall-model accuracy."
    • changedInput schema / $defs / StructuredOptions / properties / retry_authorization_reason / description
      Previous value: -"Explicit user or authorized-agent delegation for bounded automatic mesh retries; required for retry_policy=automatic."New value: +"Who authorized automatic retries (the user or a delegated agent); needed for retry_policy=automatic."
    • changedInput schema / $defs / StructuredOptions / properties / retry_policy / description
      Previous value: -"Review stops before another full target-count attempt; automatic allows the explicitly authorized bounded max_target_iterations budget, within the credential's retry allowance."New value: +"review: stop before another full target-count attempt. automatic: the authorized, bounded max_target_iterations, within the credential's retry allowance."
    • changedInput schema / properties / engine / description
      Previous value: -"structured = Cartesian; octree_prism = native octree/polyhedral with prism layers; openfoam = legacy engine identifier. Prefer configured octree_prism for generic unstructured requests; preserve explicit methods. Choose delivered file formats separately with export_formats."New value: +"structured: Cartesian; octree_prism: native octree/polyhedral with prism layers, for a generic unstructured request; openfoam: legacy. Keep a method the user named. Formats are export_formats."
    • changedInput schema / properties / export_formats / description
      Previous value: -"Delivered mesh formats, in preference order. Default cgns is Standard CGNS (NGON/NFACE) for ParaView. gd_cgns is GD CGNS for Fluxcore/Studio; fluent is a Fluent-format polyhedral .msh; openfoam is a polyMesh archive. Select formats independently of the meshing engine. The first format is the primary download. GD CGNS is also retained internally for simulation and viewing. Preserve an explicit user choice; do not ask for a format when none was specified."New value: +"Delivered formats, any engine; the first is the primary download. cgns (default): Standard CGNS (NGON/NFACE) for ParaView. gd_cgns: for Fluxcore/Studio, always kept for viewing and simulation. fluent: polyhedral .msh. openfoam: polyMesh. Keep the user's choice; never ask for one."
    • changedInput schema / properties / reviewed_job_id / description
      Previous value: -"Explicitly requested new attempt after reviewing this completed mesh job, including quality or resource failures. Use a fresh idempotency key; this records lineage and never restarts the prior execution."New value: +"A new attempt the user asked for after reviewing this finished mesh job, failures included. Needs a fresh idempotency key; records lineage, never restarts the old run."
  6. Changed1 schema field changed
    • addedInput schema / $defs / FlowRegion / properties / ambient_name
      Added value: +{
      +  "default": "ambient",
      +  "description": "External CHT: the region name of the fluid filling the box round the solids (a cabinet's air). Send the solids and the box, and name the air here: the air body's own surface is then never needed.",
      +  "pattern": "^[A-Za-z_][A-Za-z0-9_]{0,119}$",
      +  "type": "string"
      +}
  7. Changed2 schema fields changed
    • changedInput schema / $defs / FlowRegion / properties / kind / enum
      Previous value: -[
      -  "external",
      -  "internal",
      -  "solid"
      -]New value: +[
      +  "external",
      +  "internal",
      +  "solid",
      +  "assembly"
      +]
    • changedInput schema / $defs / StructuredOptions / properties / adaptive_refinement / description
      Previous value: -"Internal stair-step: retain fine cells near walls and in tight passages, coarsen the bulk with conformal 2:1 transitions."New value: +"CAD assemblies and internal stair-step: resolve sampled thin features and tight passages, with coarser bulk where possible. Geometric sizing does not establish wall-model accuracy."
  8. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), and the description adds real context beyond them: no compute is performed, a ±30% cell-count tolerance is applied by default with an instruction to leave it unset, and the tool returns clarification/default guidance and configured routing. It does not disclose the retry/authorization behavior or the reviewed_job_id lineage semantics, which is the remaining gap.

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?

The core capability and the tolerance default are front-loaded, and later sentences handle units, return behavior, and sibling routing in order of importance. Dense but largely earned; the '±5%' warning is a slightly reactive tangent that could be folded into the tolerance sentence.

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?

With an output schema present, return values need no explanation, and the description covers the engine choice, unit ambiguity, tolerance default, and sibling boundaries that matter for calling correctly. Gaps remain around multi-attempt semantics (reviewed_job_id lineage, retry authorization) for what is otherwise a complex, nested-parameter request.

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

Parameters3/5

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

Schema coverage is only 40% across 10 parameters with heavy nesting, so the schema needs help. The description adds meaningful semantics for the tolerance default (including the negative guidance that a target count alone does not imply ±5%) and for engine-specific domain coordinate units, but says nothing about export_formats, reviewed_job_id, decision_context, surface_artifact_id, or the retry_policy/authorization_reason pairing that the schema itself leaves thin.

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 — 'Validate structured, octree/prism or OpenFOAM meshing configuration without compute' — and immediately scopes it against siblings by naming where geometry work actually happens. An agent can distinguish this contract-check from inspect_mesh_geometry, check_geometry and plan_mesh without opening any schema.

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?

States both sides: use this to check configuration only, then explicitly routes to inspect_mesh_geometry for structured component IDs and to check_geometry/plan_mesh for octree mesher behavior, plus 'Quality is assessed after execution.' That is explicit when/when-not guidance with named alternatives.

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