Skip to main content
Glama
ventsim-mcp

ventsim-mcp

by agenticeram

write_results

Write solved airflow, pressure, and optional heat results into a copied Ventsim model, preserving the original, so Ventsim and other tools can read them.

Instructions

EXPERIMENTAL. Copy the model to 'out_path' with this server's results written into it, so Ventsim and the other tools see them: airflow ('Quantity', 'Dry Massflow'), pressures at both ends, the airway pressure drop and the fan pressure, from the what_if solver (airflow='saved', default: the saved state plus the changes given) or from simulate_airflow (airflow='simulated', inputs only, less accurate); with_heat also the dry- and wet-bulb temperatures from simulate_heat. Ventsim stores airflow positive along each airway; an airway whose air now runs backwards is written negative and counted in 'reversed'. Other saved results (heat terms, gases) stay as they were; re-simulate in Ventsim before relying on the copy. The changes themselves are written into the inputs (resistance, Fan Off, Fan Speed). Never overwrites a file.

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>",
      "out_path": "<out_path>"
    },
    "name": "write_results"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
airflowNosaved
fans_offNo
out_pathYes
fan_speedNo
with_heatNo
resistance_scaleNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.14.0

TDQS

A4.1/5.0
Behavior3/5

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

With no annotations, the description does substantial work: sign convention for reversed airways, the 'reversed' count, that other saved results (heat terms, gases) are left stale, that changes are persisted into the inputs, and that existing files are never overwritten. It does not say what error or result is produced when out_path already exists, nor whether the source file is required to exist — gaps that matter for a file-writing tool.

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?

The EXPERIMENTAL warning and the core copy action are front-loaded, and nearly every clause adds real information. Sentences are long and overloaded with parenthetical enumerations, which slightly hurts scanability, but there is little filler.

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 seven-parameter, no-annotation, no-output-schema tool this is close to complete: it explains modes, sign handling, data staleness and non-overwrite behavior. Missing only edge-case behavior (existing out_path, missing source path, failure modes) to be fully sufficient.

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 carry all seven parameters, and it largely does: path (source model), out_path (copy destination), the airflow enum values with defaults, with_heat, and the change parameters resistance / Fan Off / Fan Speed. It still leaves the shapes unclear — e.g. that resistance_scale and fan_speed are airway-to-number maps and fans_off is a list of names.

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 concrete verb and object ('Copy the model to out_path with this server's results written into it') and immediately names the sources it draws from (what_if, simulate_airflow, simulate_heat). An agent can distinguish this from siblings like export_csv or simulate_airflow 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 states the condition selecting each mode: airflow='saved' (default, saved state plus your changes) versus airflow='simulated' (inputs only, less accurate), and it flags that the copy is experimental and must be re-simulated in Ventsim before reliance. It stops short of explicitly naming a non-use case or an alternative tool when a plain export is wanted.

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