Skip to main content
Glama
loumalouomega

Kratos MCP Server

create_fsi_project

Scaffold a partitioned FSI case in Kratos: generate fluid and wall meshes, project parameters and material files for Dirichlet-Neumann coupling simulations.

Instructions

Scaffold a partitioned fluid-structure interaction (FSI) case with Kratos' FSIApplication: a 2D channel [0,length]x[0,fluid_height] whose floor is an elastic block [0,length]x[-wall_thickness,0]. The fluid (monolithic Navier-Stokes, inlet velocity ramped over 'ramp_time', outlet pressure 0) loads the wall through the shared 'Interface'; the deformed wall moves the fluid mesh (ALE, mesh_solver_structural_similarity). Fluid and wall meshes are generated with DIFFERENT interface discretizations ('fluid_divisions' [nx, ny] triangles, 'wall_divisions' [nx, ny] quads), so the interface mapper does real work. Dirichlet- Neumann coupling is iterated each step until 'coupling_tolerance' using the convergence 'accelerator' (MVQN_recursive, MVQN, Relaxation = Aitken, constant_relaxation, ...). Writes ProjectParameters.json, fluid.mdpa, structure.mdpa, MaterialsFluid.json, MaterialsStructure.json and runs with run_simulation like any case. Needs FSIApplication, FluidDynamicsApplication, StructuralMechanicsApplication, MeshMovingApplication and MappingApplication. The defaults are a verified Stokes-like regime; the wall must be stiff enough relative to the fluid's added damping (roughly wall_thicknessviscositylength^2/(Efluid_height^3time_step) << 1) or the Dirichlet-Neumann iteration diverges. The result is statically validated.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
lengthNo
end_timeNo
directoryYes
ramp_timeNo
time_stepNo
acceleratorNoMVQN_recursive
fluid_heightNo
wall_densityNo
fluid_densityNo
poisson_ratioNo
young_modulusNo
inlet_velocityNo
wall_divisionsNo
wall_thicknessNo
fluid_divisionsNo
fluid_viscosityNo
output_intervalNo
dynamic_structureNo
coupling_toleranceNo
max_coupling_iterationsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.9.0

TDQS

A4.1/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 so well: it names every file written (ProjectParameters.json, fluid.mdpa, etc.), the five required Kratos applications, the ALE/Dirichlet-Neumann coupling behavior, and a concrete divergence condition. It falls short of 5 only because it is silent on overwrite/existing-directory behavior and return semantics.

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?

Dense but information-rich, front-loaded with the core purpose before elaborating geometry, meshing, coupling, side effects, and dependencies. Length is largely justified by the tool's complexity, though the single unbroken paragraph lacks visual structure for such a long definition.

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?

A rich output schema exists, so return values need not be explained, and the description supplies the dependency list, generated artifacts, and physical validity caveats an agent needs to call it correctly. The remaining gaps are the undocumented parameters and the absence of explicit sibling-selection guidance.

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 description coverage is 0%, so the description must compensate, and it does substantially: it gives meaning to ramp_time, the [nx, ny] shape of fluid_divisions/wall_divisions, the accelerator option list, and couples wall_thickness/viscosity/length/E/fluid_height/time_step into a scaling relation. It leaves end_time, output_interval, dynamic_structure, poisson_ratio, wall_density, fluid_density, and max_coupling_iterations completely undocumented, 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?

States a specific verb ('Scaffold') and a precisely defined resource: a partitioned FSI case with explicit 2D channel and elastic-wall geometry. It is unmistakably distinct from siblings like create_project, create_multistage_project, and create_cosim_project, which an agent can identify without opening any schema.

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?

Usage is implied by the tool name and the 'runs with run_simulation like any case' workflow pointer, and the stability caveat implicitly warns when NOT to expect success. However, it never explicitly says when to pick this over the sibling creators (create_project / create_multistage_project / create_cosim_project), leaving the selection decision to inference.

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

Deploy Server

Other Tools