Skip to main content
Glama
codersag

ls-dyna-mcp

by codersag

presolve_check

Run a read-only pre-solve check that reports memory and disk availability, overwrite risks, CPU/core fit, and deck audit findings, then returns an ok, warn, or stop verdict with reasons.

Instructions

Check before a solve, read-only (nothing is deleted or started). Reports free RAM and free disk, a memory estimate (the solver's own 'Memory required' report in a previous d3hsp of the folder when there is one; otherwise a rough heuristic from the node and element counts of the deck, uncertain by a factor of about 3 either way), the LS-DYNA result files in the folder that a new run would overwrite (names only), ncpu against the physical and logical cores, and the unit-system hint and error findings of audit_deck. verdict: ok, warn or stop, with reasons. Give working_dir (the newest .k in it is used) and/or deck_path. Args: working_dir, deck_path, ncpu (0 = not given), memory (words as for the solver, e.g. 200m)

Input Schema

NameRequiredDescriptionDefault
ncpuNo
memoryNo
deck_pathNo
working_dirNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.9.2

TDQS

A4.3/5.0
Behavior4/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 well: explicitly read-only ('nothing is deleted or started'), discloses the overwriteable-files risk (names only, no deletion), and honestly flags the memory heuristic as uncertain by roughly 3x. It doesn't cover permissions or how verdict thresholds are derived, keeping it from a 5.

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?

Purpose is front-loaded and every clause carries information, but the long parenthetical on the memory heuristic and the trailing args summary make it denser than ideal. Structure is functional rather than crisp.

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?

Given an output schema exists, the description still usefully explains `verdict` (ok/warn/stop) and `reasons`, and covers all preflight checks an agent needs. It is essentially complete, with only minor gaps like exact verdict thresholds.

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%, yet the description meaningfully explains all four: ncpu (0 = not given), memory ('words as for the solver, e.g. 200m'), and working_dir ('the newest .k in it is used') with deck_path as the alternative source. deck_path's own resolution semantics are left slightly implicit, so not quite a 5.

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 ('Check before a solve') and enumerates exactly what it reports: free RAM/disk, memory estimate, overwriteable result files, ncpu vs cores, and audit_deck findings. This is clearly distinguishable from siblings like audit_deck or solve_analysis, which do subsets of this.

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?

'Check before a solve' gives clear timing context, and the description notes it folds in audit_deck results, implying it supersedes a separate audit call in this flow. It does not explicitly name alternatives or exclusions (e.g. vs check_run_health or audit_deck alone), so it falls short of a 5.

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