Skip to main content
Glama
codersag

ls-dyna-mcp

by codersag

read_d3plot

Extract peak field results from LS-DYNA d3plot files: get min, max, and mean values with the node or element ID at the maximum across spread states, plus non-finite value counts to detect blown-up runs.

Instructions

Field results from the d3plot: where and when a quantity peaks. With no field it lists the fields stored. With a field (node_displacement, node_velocity, element_solid_stress, element_solid_effective_plastic_strain, element_shell_stress...) it returns, for up to max_states evenly spread states (or the single state), the min / max / mean, the id of the node or element holding the max, and a count of non-finite values (a blown-up run). Vectors give their magnitude and stresses von Mises (worst integration point). Needs lasso-python. Args: directory, field, state (-1 = spread), max_states (at most 20)

Input Schema

NameRequiredDescriptionDefault
fieldNo
stateNo
directoryYes
max_statesNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.9.2

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does well: discloses the lasso-python dependency, the non-finite count as a blow-up signal, vector-magnitude and von Mises handling (worst integration point), and the max_states cap of 20. It omits error behavior when lasso-python is missing and any permission/read-only framing.

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-loads the core purpose and modes, and the Args line is compact. It is dense to the point of being run-on (parentheticals, ellipsis in the field list), but nearly every clause adds information.

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?

An output schema exists, yet the description still usefully previews the return shape (stats, extremum id, non-finite count). For a 4-param read tool this is nearly complete; only directory format and failure/dependency handling are unstated.

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?

Schema coverage is 0%, so the description must compensate; it documents field (with enum-like examples), state (-1 = spread), and max_states (at most 20). The 'directory' parameter is only listed, not explained (path to the d3plot directory?), leaving one gap.

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?

States a specific verb+resource ('Field results from the d3plot') and precisely describes what is computed: min/max/mean, id of extremum, non-finite count, with vector magnitude and von Mises treatment. It does not explicitly contrast with the sibling summarize_d3plot, so it falls short of 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 Guidelines4/5

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

Gives clear mode selection: 'With no field it lists fields stored' vs 'With a field ... it returns ...', plus state=-1 meaning spread. It never names an alternative tool (e.g. summarize_d3plot) or when-not to use it, so no explicit routing.

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