Skip to main content
Glama

Gradient Dynamics: thermal and CFD simulation

Prepare job viewer

prepare_job_viewer
Idempotent

Prepare or reopen a finished geometry, verified mesh candidate or published simulation result in its default interactive 3D browser viewer with orbit/pan/zoom. get_job normally does this automatically; PNG snapshots and 2D sections do not replace this view. Uses only this job’s saved outputs and one durable cached preparation; it never reruns compute, creates extra sections or retries failed/cancelled preparation. Show viewer_url automatically in a labelled browser link, preserving the complete fragment. Pending viewer.operation_id or operation_id is continued with get_operation. Report visualization failure separately from job outcome. 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": "prepare_job_viewer"
  }
}

Input Schema

NameRequiredDescriptionDefault
job_idYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Despite annotations covering safety (readOnlyHint false, idempotent true, destructive false), the description adds substantive behavior: it uses only saved outputs plus one durable cached preparation, never reruns compute, never creates extra sections, and does not retry failed or cancelled preparations. It also discloses required scopes (jobs:read, artifacts:read) and instructs separating visualization failure from job outcome.

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 purpose and its get_job alternative are front-loaded, and each sentence carries information. The mid-section mixes agent-facing output instructions ('Show viewer_url automatically in a labelled browser link, preserving the complete fragment') with behavioral disclosure, making it denser than ideal, though little is pure waste.

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?

With an output schema present, return values need not be documented, and the description still covers the key return-path detail (pending operation_id continuing through get_operation). For a single-parameter, non-destructive preparation tool, the agent has everything needed to call it and interpret the result.

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 0% for the single required job_id, so the description must carry the meaning. It implies per-job scoping ('Uses only this job's saved outputs') but never names job_id, its format, or what happens if the job has no saved outputs, so compensation is partial rather than complete.

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?

Specific verb (prepare/reopen) plus the exact resource (finished geometry, verified mesh candidate, or published simulation result) and the concrete outcome (default interactive 3D viewer with orbit/pan/zoom). It also draws boundaries against adjacent outputs, noting that PNG snapshots and 2D sections are not substitutes.

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?

Explicitly states that get_job normally handles this automatically, which tells the agent when this call is redundant versus when it is needed to prepare or reopen a viewer. It also provides a routing rule for pending viewer.operation_id/operation_id to get_operation and states what kinds of artifacts do not replace the interactive view.

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