Skip to main content
Glama
loumalouomega

Kratos MCP Server

session_set_nodal_values

Assign nodal values (scalar or vector) to selected nodes or a whole model part in a live Kratos simulation. Control DOF fixity, effective on next advance, without modifying disk files.

Instructions

Assign a nodal solution-step value (a number, or [x, y, z] for vector variables such as DISPLACEMENT or VELOCITY) to node_ids, or to every node of model_part when node_ids is omitted. fix=True/False fixes/frees the DOF (a list of 3 booleans sets each vector component); omit it to leave fixity unchanged. Takes effect from the next session_advance, so you can add a support, pin a temperature or perturb the state mid-run. Writes into the live model only: files on disk are unchanged.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fixNo
valueYes
node_idsNo
variableYes
model_partNo
session_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.9.0

TDQS

A4.5/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: it discloses the deferred-effect timing (next session_advance), that writes go only into the live in-memory model with disk files unchanged, and that omitted fix leaves fixity untouched. It does not discuss permissions or error behavior, but the mutation model is clearly conveyed.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Dense, front-loaded prose with every clause carrying information: target selection, value typing, fixity semantics, effect timing, and persistence scope. No redundant restatement of the tool name or title.

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?

An output schema exists, so return values need not be described, and the description covers targeting, value formats, fixity behavior, and when the change materializes. Nothing an agent needs to call this mutation correctly is missing.

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 for the key parameters: value can be a scalar or [x, y, z] for vector variables like DISPLACEMENT/VELOCITY, fix accepts a boolean or a 3-boolean list with omission meaning unchanged, and node_ids/model_part define the target set. session_id is left unexplained, which keeps this from 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 precise verb+resource (assign a nodal solution-step value) and defines the two targeting modes: explicit node_ids, or all nodes of model_part when node_ids is omitted. It also names the live-model scope versus on-disk files, which helps distinguish it from the file-oriented mdpa_set_nodal_data sibling.

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?

Explicitly says it takes effect from the next session_advance and gives concrete use cases (add a support, pin a temperature, perturb state mid-run), which tells the agent when to reach for it. It does not name alternative tools like mdpa_set_nodal_data, so sibling routing is implied rather than stated.

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