Skip to main content
Glama

diana_plot_result

Read-only

Plot a selected result in DianaIE's RESULT view and return a screenshot, enabling inspection of contours, vectors, or diagrams for a chosen analysis and component.

Instructions

Plot a result in DianaIE's RESULT view and return a screenshot.

Args: analysis: analysis with loaded results. result: result label from diana_load_results, e.g. "Displacements" or "Cauchy Total Stresses". component: component, e.g. "DtY", "SXX". case: result case (load case / step), default the first one. block: output block, needed only when the analysis has several. item_type: result owner; required by DianaIE unless the label starts with it (e.g. "Reinforcement ...") or the result is nodal. location: where the result was computed, "node" or "element" (see diana_load_results). layer: fibre / layer of beams and shells: a number, "maximum" or "minimum". plot: contours, vectors or diagram. viewpoint: camera direction; 2D models in the XY plane are best seen from "top". width: image width in pixels. height: image height in pixels.

Input Schema

NameRequiredDescriptionDefault
caseNo
plotNocontours
blockNo
layerNo
widthNo
heightNo
resultYes
analysisYes
locationNo
componentYes
item_typeNo
viewpointNocurrent

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.10.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false. The description adds real context beyond that: it operates on the GUI RESULT view (transient view-state change), needs pre-loaded results, defaults to the first load case, and enforces item_type for non-nodal/non-prefixed labels. It still omits what happens on an invalid combination or where the screenshot ends up.

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 summary sentence is front-loaded and the Args list is tight, one line per parameter. A few entries (width/height pixels) merely restate obvious enum/default information, but nothing is padded or redundant enough to obscure the important guidance.

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 12-parameter tool with no output schema and no schema descriptions, the definition is nearly self-sufficient: it explains the screenshot return, the dependency on loaded results, and each parameter. Remaining gaps are error behavior and whether the view state persists after the call.

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

Parameters5/5

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

Schema description coverage is 0%, so the description carries the full burden — and it does, documenting all 12 parameters with examples ('DtY', 'SXX'), the item_type requirement rule, layer accepting a number/'maximum'/'minimum', and practical camera advice ('2D models in the XY plane are best seen from "top"').

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?

The first sentence names a specific verb, target view, and return value: 'Plot a result in DianaIE's RESULT view and return a screenshot.' It is clearly distinct from diana_screenshot (generic capture) and diana_results_table (numeric extraction).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Prerequisite chaining is stated implicitly via references to diana_load_results ('result label from diana_load_results'), which tells the agent results must be loaded first. However, there is no explicit when-to-use/when-not guidance versus siblings such as diana_results_table or diana_screenshot, and no statement of failure conditions.

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