Skip to main content
Glama
Plant Simulation Research Bridge

Plant Simulation Research Bridge

method_set_source

Replace a Plant Simulation Method's SimTalk source and read it back to verify the write, so updated model logic is stored correctly.

Instructions

Replace a Method's SimTalk source; the write is read back and compared.

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": {
      "path": "<path>",
      "source": "<source>"
    },
    "name": "method_set_source"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
sourceYes
work_dirNo
model_rootNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3/5.0
Behavior3/5

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

No annotations are provided, so the description bears full behavioral burden. It does disclose one genuinely useful trait beyond structured data: the write is read back and compared, signaling post-write verification. However, it omits what happens when verification fails (error vs. rollback), whether the method must exist first, and any permission or locking requirements for a destructive overwrite.

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?

A single front-loaded sentence with two clauses: the action first, then the verification behavior. Nothing is wasted, though a little more length would have been justified by the documentation gaps.

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

Completeness2/5

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

For a four-parameter mutation tool with no annotations and no output schema, the description covers only the core operation and its read-back check. It leaves the caller unable to determine what path/work_dir/model_root should contain or how failures are reported, which is not enough to invoke it confidently.

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

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across four parameters, and the description clarifies only that 'source' means SimTalk source. The meaning of 'path' (method path? file path?), 'work_dir', and 'model_root' is left entirely undocumented in both schema and description — a significant gap for a mutation tool.

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?

States a specific verb and resource: 'Replace a Method's SimTalk source'. The possessive 'Method's' plus SimTalk scoping separates it from siblings like method_get_source (read) and simulation_set_source, though it never names those siblings as alternatives.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

The word 'Replace' implies the target method must already exist, but there is no explicit when-to-use guidance, no statement of prerequisites, and no routing to method_get_source for reading or to simulation_set_source for the simulation variant. Usage must be inferred entirely from the name and the verb.

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