Skip to main content
Glama
loumalouomega

Kratos MCP Server

materials_set_property

Add or update one Materials.json entry by model part name, creating the file if needed. Merge variables/tables or replace the entry without rewriting the whole file.

Instructions

Add or update ONE entry of a Materials.json (created if the file does not exist), keyed by model_part_name (e.g. 'Structure.domain'). New entries get the next free properties_id unless given. 'preset' (see list_material_presets) fills the constitutive law and default variables; 'constitutive_law' and 'variables' then override. On an existing entry, variables/tables are merged into the current ones; replace=true rebuilds the entry from scratch. This is the incremental counterpart of create_materials, which rewrites the whole file.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
presetNo
tablesNo
replaceNo
variablesNo
properties_idNo
materials_fileYes
model_part_nameYes
constitutive_lawNo

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 behavioral burden and does so well: it discloses that the file is created if missing, how properties_id is auto-assigned, that preset fills the law/defaults then gets overridden, that existing entries are merged, and that replace=true rebuilds from scratch. It does not cover error/permission conditions or id-collision behavior, keeping it short of 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?

Front-loads the core action and primary key in sentence one, then layers behavioral detail with no filler. The prose is dense and slightly clause-heavy, but every sentence earns its place.

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?

An output schema exists, so return values need not be explained, and the description thoroughly covers the mutation/merge semantics an agent needs. It omits failure modes and validation expectations (e.g., the role of materials_check), which for a write tool with no annotations would have been valuable.

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 and largely does: it explains preset, constitutive_law, variables, tables, replace, properties_id, and model_part_name semantics. It does not describe the internal structure of the free-form variables/tables objects or the materials_file path handling, leaving a gap for a nested-object-heavy signature.

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+resource ('Add or update ONE entry of a Materials.json'), the key field ('keyed by model_part_name'), and explicitly contrasts with the sibling create_materials. An agent can distinguish this incremental upsert from any of the ~90 siblings 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 Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Names the alternative and the condition that selects it: 'the incremental counterpart of create_materials, which rewrites the whole file.' It also routes the agent to list_material_presets for the preset argument, giving clear when-to-use context for both major choices.

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