Skip to main content
Glama

Gradient Dynamics: thermal and CFD simulation

View residual history

view_convergence_history
Idempotent

Show a finished simulation's residual history in the browser: residuals per equation against iteration on a log scale, and drag, lift and any named force coefficients against iteration, with the saved convergence window and verdict when there is one. Do this at the end of every simulation, whether it converged, diverged or stopped at its iteration limit; get_job does it automatically and returns convergence_chart. Show viewer_url as a labelled link in your reply with the outcome and final residuals, preserving the complete URL including its fragment. Judge convergence from the history, not only from whether residuals reached a tolerance such as 1e-6: report result.convergence_assessment when present and point the user to its window on the chart; steady force coefficients with flat residuals can be a usable result short of the tolerance, while residuals still falling steeply, rising, or forces still drifting mean more iterations would change the answer. Report what the chart shows and let the user decide on a longer run; never rerun automatically. Uses only the job's saved result: no compute and no charge. Requires jobs:read and artifacts:read.

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": "view_convergence_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
job_idYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Adds substantial context beyond the annotations: no compute and no charge, reads only the job's saved result, and requires jobs:read and artifacts:read. There is mild tension with readOnlyHint=false, since 'uses only the job's saved result' reads as passive, but this is plausibly because a viewer resource is created; it is not a direct contradiction.

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 what the chart shows, then usage, then reporting instructions; every sentence is actionable. It is long (~190 words) and the convergence-judgment and reply-formatting guidance, while useful, pushes it toward the verbose side.

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?

Covers the full picture for a viewer tool: what is rendered, how to present viewer_url (preserving the fragment), what result.convergence_assessment means, permission scopes, and cost profile. With an output schema present, no further return-value explanation is needed.

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?

Only one parameter (job_id) and schema description coverage is 0%, so the schema contributes nothing beyond the UUID format. The description adds the meaningful constraint that the job must be a finished simulation, but says nothing further about the identifier itself.

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?

States a specific verb and resource (show a finished simulation's residual history) and enumerates the exact contents: per-equation residuals vs iteration on a log scale, force coefficients, saved convergence window and verdict. It is clearly distinguishable from get_job (which returns convergence_chart automatically) and from assess_convergence.

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 when: at the end of every simulation regardless of outcome (converged, diverged, iteration limit). It also names the alternative path — get_job does it automatically — and states the exclusions (never rerun automatically, judge convergence from the history rather than a single tolerance).

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