Skip to main content
Glama
ventsim-mcp

ventsim-mcp

by agenticeram

simulate_airflow

Solve airflow from model inputs alone, without saved results, to simulate unsimulated Ventsim models and what-if changes; optionally compare computed airflow with saved results.

Instructions

EXPERIMENTAL. Solve the airflow from the model inputs alone, without the results Ventsim saved: airway resistance, fan curves, fan speed and count, fixed-flow and fixed-pressure airways, closed airways, surface connections and dead ends. Works on a model that was never simulated. Optional changes as in what_if. Natural ventilation and heat are not modelled; use_saved_heat=True takes them from the saved results instead. If the file has saved airflow, 'vs_saved' compares the two (error = total absolute airflow difference / total airflow). stage: simulate another stage (see list_stages) instead of the one whose results are saved. compressible=True: densities from absolute pressure (saved 'p air In/out', so the file must have been simulated once), mass balance, resistance and fan pressure scaled with density, as Ventsim's 'Compressible Airflows' setting; on a Ventsim example it cut the mean airflow difference from 4.2 % to 0.5 %.

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

Input Schema

NameRequiredDescriptionDefault
pathYes
limitNo
stageNo
fans_offNo
fan_speedNo
compressibleNo
use_saved_heatNo
resistance_scaleNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.14.0

TDQS

A3.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 substantial work: it flags the tool as EXPERIMENTAL, discloses that natural ventilation and heat are not modelled, explains the use_saved_heat escape hatch, and describes the vs_saved error metric. It still omits the return payload, runtime expectations, and any failure modes for a heavy simulation, but the behavioral disclosure is well above average.

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

Conciseness3/5

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

The description is front-loaded with the EXPERIMENTAL warning and the core purpose, which is good. But it is a single dense paragraph with no separation between purpose, caveats, and parameter notes, and several clauses are hard to parse on first read.

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 an eight-parameter simulation tool with no annotations and no output schema, the definition covers the major behavioral caveats but not the return value, the meaning of limit, or the full parameter set. The unexplained 'vs_saved' reference is an additional gap that a complete definition should resolve.

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 eight parameters, so the description must compensate. It adds real meaning for stage, compressible, and use_saved_heat, and alludes to fan speed and resistance, but leaves path, limit, fans_off, and resistance_scale unexplained. It also references a 'vs_saved' comparison that is not present in the schema, which risks confusing the agent about what can be passed.

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 opening states a specific verb and resource ('Solve the airflow from the model inputs alone, without the results Ventsim saved') and distinguishes it from a saved-results-based approach. It is clear enough to identify the tool's job, though the dense clause structure makes the core purpose slower to extract than it should be.

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?

It gives useful context that the tool 'Works on a model that was never simulated' and points to 'what_if' for optional changes, which implies when to reach for it. However, it never states an explicit when-not condition or routes the agent to a named alternative such as simulate_heat or what_if for the cases this tool does not cover.

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