Skip to main content
Glama

Gradient Dynamics: thermal and CFD simulation

Judge convergence

assess_convergence
Read-onlyIdempotent

Judge whether a finished simulation converged by the user's own standard. Unset fields keep the standard test: every reported residual (continuity, Ux, Uy, Uz, energy) at or below 1e-3 and none rising over the last 20% of iterations; forces count only when named in forces. Uses the run's full saved history: no compute, no charge, and the saved verdict is unchanged. Report the status, its reasons and the thresholds used. When the user states their standard before a run, pass it as run_simulation's convergence_criteria.

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": {
      "job_id": "<job_id>"
    },
    "name": "assess_convergence"
  }
}

Input Schema

NameRequiredDescriptionDefault
forcesNoForce coefficients that must also settle, e.g. drag_coefficient, lift_coefficient; default none.
job_idYes
residualsNoResiduals to judge, e.g. continuity; default every one reported.
window_fractionNoShare of the iterations run, counted back from the last, that the test examines.
force_band_floorNoSpread always allowed, for coefficients near zero.
window_iterationsNoExamine this many final iterations instead of window_fraction.
force_band_percentNoLargest max-min spread of each named force coefficient over the window, as a percentage of its mean.
max_final_residualNoEach final residual must be at or below this value (default 1e-3); null drops the limit.
residual_rise_ordersNoA residual is rising when the window's later half is this many orders of magnitude above its earlier half.
max_energy_balance_errorNoCHT: the thermal solve must converge and the heat balance close within this fraction of the heat input (default 0.01, 1%); null judges only thermal convergence.
min_residual_orders_droppedNoAlso require each residual to have fallen this many orders of magnitude from its peak.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / max_energy_balance_error
      Added value: +{
      +  "anyOf": [
      +    {
      +      "exclusiveMinimum": 0,
      +      "maximum": 1,
      +      "type": "number"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": 0.01,
      +  "description": "CHT: the thermal solve must converge and the heat balance close within this fraction of the heat input (default 0.01, 1%); null judges only thermal convergence."
      +}
  2. First observed

TDQS

A4.2/5.0
Behavior4/5

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

The annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, but the description adds context the annotations do not cover: 'no compute, no charge, and the saved verdict is unchanged.' That is exactly the reassurance an agent needs before re-judging a paid simulation. It stops short of describing failure behavior for unfinished jobs, so it is a 4 rather than a 5.

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 most useful part comes first: the default standard is stated before the side-effect reassurances and the alternative-tool note. The sentence is dense but front-loaded. The closing note about reporting status and reasons is slightly redundant with the output schema.

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 11 parameters, an output schema, and complete annotations, the description covers the default standard, the zero-cost behavior, the preserved verdict, and when to use the sibling instead. Minor gaps remain around behavior for non-converged or unfinished jobs and how window_iterations overrides window_fraction.

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?

The default judged standard is explained as a coherent rule: every residual at or below 1e-3 and none rising over the last 20% of iterations, with forces judged only when named. This goes beyond the 91%-covered schema by showing how window_fraction, max_final_residual, and residual_rise_orders combine. It does not explain the interaction between window_iterations and window_fraction, so it is not a 5.

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

Purpose4/5

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

The description has a specific verb and resource: 'Judge whether a finished simulation converged by the user's own standard.' It makes clear that the tool can override a saved verdict using adjustable criteria, which distinguishes it from a plain read of convergence data. It does not explicitly contrast itself with the sibling view_convergence_history, which keeps it from a 5.

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?

The description states both when and when-not to use the tool: here for a finished run, and 'when the user states their standard before a run, pass it as run_simulation's convergence_criteria.' It explicitly names the alternative tool and the condition that selects it, so the agent does not have to infer routing.

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