Skip to main content
Glama
flexsim-console-mcp

flexsim-console-mcp

by 764liang

flexsim_set_variable_code

Replaces a FlexSim object variable with custom FlexScript code and compiles it, enabling custom interarrival times, cycle times, and other simulation parameters; reset the model after changes.

Instructions

替换对象变量为自定义 FlexScript 代码并编译(interarrivaltime=到达间隔、cycletime=加工时间等)。例:code="return 1;" 或 "return exponential(0,5,getstream(current));"。修改后需 reset。

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "object": "<object>",
      "variable": "<variable>",
      "code": "<code>"
    },
    "name": "flexsim_set_variable_code"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYes
objectYes
variableYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations exist, so the description carries the full burden. It usefully discloses a non-obvious behavior — the code is compiled and a reset is required afterward — but says nothing about compile-failure handling, whether the change is persisted to the model, or what permissions/state are needed.

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 compact sentence plus examples, with the operation front-loaded and the reset caveat last. Every element earns its place; the parenthetical variable glossary is efficiently terse.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 3-required-parameter mutation tool with no annotations and no output schema, the description covers the code format and the reset requirement but leaves the 'object' identifier format, error behavior, and return value unaddressed — enough to attempt a call, not enough to call it reliably.

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 coverage is 0% across three required parameters. The description adds real meaning for 'code' via two literal FlexScript examples including stateful functions like getstream(current), and clarifies 'variable' with named examples, but 'object' (name vs. path vs. handle) is entirely unexplained.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource: replace an object's variable with custom FlexScript code and compile it, with concrete variable examples (interarrivaltime, cycletime). It implicitly distinguishes itself from the numeric/name setters (flexsim_set_number, flexsim_set_name) by making the value a code string, though it never names an alternative.

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 context is implied through examples of what kind of variables fit (arrival interval, processing time) and the post-condition 'reset needed after modification'. There is no explicit statement of when not to use it versus flexsim_set_number or flexsim_set_name, and no mention of prerequisites such as an open session.

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