Skip to main content
Glama
loumalouomega

Kratos MCP Server

mdpa_convert_cells

Convert cell kinds in Kratos MDPA files: split quadrilaterals/hexahedra into triangles/tetrahedra or drop quadratic mid-edge nodes for solver-compatible meshes.

Instructions

Convert cell kinds. mode 'quad_to_tri' splits every quadrilateral element into 2 triangles (e.g. SmallDisplacementElement2D4N -> ...2D3N); 'hex_to_tet' splits hexahedra into 6 tetrahedra (Kuhn split, conforming for structured meshes with consistent node ordering) and the boundary quads into triangles matching the tet faces; 'quadratic_to_linear' drops the mid-edge/face nodes of quadratic cells (tri6->tri, quad8/9->quad, tet10->tet, hex20/27->hex, wedge15->prism, line3->line; ids and sub model parts unchanged, mid nodes kept as unused nodes). Sub model parts follow. element_name / condition_name override the derived new type names. Other cell kinds are left alone. Needed e.g. for the convection-diffusion solver, which requires simplices.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeYes
pathYes
outputNo
overwriteNo
element_nameNo
condition_nameNo

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 discloses split ratios, node handling ('mid nodes kept as unused nodes'), id preservation, sub-model-part propagation, name overrides, and that non-target cell kinds are untouched. It does not address auth, file-write side effects, or overwrite behavior.

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?

A single dense paragraph that is front-loaded with the core purpose and mode enumeration; each clause carries technical payload, though the packing of exception cases makes it somewhat heavy to scan.

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 mesh-conversion operation the description is thorough, and an output schema exists so return values need not be explained. The main gap is the unaddressed output/overwrite parameters.

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

Parameters3/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. It covers mode exhaustively and explains element_name/condition_name overrides, but says nothing about path, output, or overwrite semantics, leaving half the parameters undocumented.

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 description opens with a specific verb+resource ('Convert cell kinds') and enumerates each mode's exact transformation (quad_to_tri, hex_to_tet, quadratic_to_linear), so an agent can distinguish it from siblings like mdpa_transform or mdpa_extract without opening the schema.

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?

It provides clear motivating context ('Needed e.g. for the convection-diffusion solver, which requires simplices') and states that other cell kinds are left alone, but it names no explicit alternatives or when-not-to-use conditions.

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