Skip to main content
Glama
codersag

ls-dyna-mcp

by codersag

set_analysis_settings

Configure LS-DYNA analysis settings from JSON by name or caption, validating units and ranges and reading back each value to confirm it was applied.

Instructions

Set Analysis Settings; each value is read back and compared. Each key is attempted independently and reported. A key matches the full property name ("Step Controls/Endtime"), the caption ("End Time") or the last name segment, ignoring case and punctuation; if a caption is ambiguous (e.g. "Time Step Size" exists under Step Controls and EM Step Controls) the reply lists the full names to use instead. Values are set raw, in the model's solver units (End Time is seconds); numeric text such as "5e-4" is parsed (text with a unit in brackets is refused, never silently converted), true/false become 1/0, and plain integer settings take their integer value (read the current one with get_analysis_settings; -1 is Program Controlled). Non-finite values and values outside a sensible range (End Time in (0, 1e6) s, cycle counts > 0, time-step factors in (0, 1]) are rejected before anything is sent. Each value is read back and compared (NaN and Infinity never compare equal): a setting that keeps its old value is reported as 'not applied'. Selection (drop-down) settings such as Hourglass Type, Output Format, Stress File Type or Automatic Mass Scaling were seen to accept only -1 through this interface; set those with keyword snippets (add_keyword_commands, set_dynain_output) or in the GUI. Args: settings_json: JSON object, e.g. {"End Time": 0.0005, "Output Controls/Stress": 1}; analysis_index

Input Schema

NameRequiredDescriptionDefault
settings_jsonYes
analysis_indexNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.9.2

TDQS

A4.8/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does: per-key independent attempts and reporting, read-back comparison with NaN/Infinity caveats, 'not applied' outcomes, unit expectations (End Time in seconds), value rejection before send, and a documented interface limitation for selection settings. An agent knows the failure modes and side effects before calling.

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 the action and verification model, and nearly every clause adds operational detail that prevents a bad call. There is redundancy (read-back/comparison stated twice) and heavy parenthetical nesting, but no filler or marketing language.

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?

For a high-complexity mutation tool with an output schema, this covers parsing, validation ranges, key resolution ambiguity, failure reporting, and known interface limitations. The only real gap is the unexplained analysis_index argument, which is minor against the breadth of what is disclosed.

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 for both parameters. settings_json is covered thoroughly — key matching rules (full name, caption, last segment, case/punctuation-insensitive), ambiguity handling, value parsing (

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 (set analysis settings) and immediately qualifies it with verification semantics ('each value is read back and compared', 'each key attempted independently'). It also distinguishes itself from sibling paths by naming get_analysis_settings for reads and add_keyword_commands/set_dynain_output for selection settings.

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 explicit when-to-use: read current values with get_analysis_settings first ('-1 is Program Controlled'), and for drop-down settings like Hourglass Type or Output Format use keyword snippets or the GUI instead. That is a concrete exclusion plus named alternatives, not inferred guidance.

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