Skip to main content
Glama
ventsim-mcp

ventsim-mcp

by agenticeram

check_flow_balance

Checks simulated airflow mass balance at model junctions and reports imbalances, helping identify models that need re-simulation, recirculation fans, or disconnected nodes.

Instructions

Mass-balance check of simulated airflow at every junction (mass flow expressed as m3/s of standard 1.2 kg/m3 air when the file has it, else volume flow).

Only airways of the simulated stage are used. Junctions are found by matching airway end coordinates. Nodes touched by a single airway (portals, dead ends) are skipped. A large imbalance usually means the model needs to be re-simulated, contains recirculation fans, or has disconnected nodes.

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": "check_flow_balance"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
limitNo
toleranceNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

A3.7/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 a good job: it discloses units (m3/s of 1.2 kg/m3 standard air, falling back to volume flow), the node-matching method, the exclusion of single-airway nodes (portals, dead ends), and how to interpret a large imbalance. It stops short of describing output shape or how the tolerance knob changes the result.

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-loaded with the purpose, then method, then interpretation of results — a logical order with no filler sentences. The mid-sentence line breaks are cosmetic and slightly hinder scanning but no content is wasted.

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 tool with no annotations, no output schema, and an undocumented parameter set, the description covers the method and edge cases but leaves two gaps: the return format (presumably per-junction imbalances) and the meaning of limit/tolerance. Enough to call it, not enough to call it correctly on the first try.

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% for three parameters, so the description needs to compensate and does not. Neither 'limit' nor 'tolerance' is mentioned anywhere, leaving the agent to guess whether tolerance is an absolute imbalance threshold and what limit caps. Only the implicit notion of imbalance in the last sentence hints at tolerance.

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?

"Mass-balance check of simulated airflow at every junction" names a specific verb (check/verify mass balance) and resource (airflow at junctions), with a stated scope. An agent can distinguish this from siblings like velocity_check or fan_summary 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 Guidelines3/5

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

Usage is implied rather than stated: the agent must infer this is a validation/sanity-check tool for a simulated model. The description does add the important precondition that only airways of the simulated stage are used, and interprets a large imbalance as a sign of an un-simulated model, recirculation fans, or disconnected nodes. There is no explicit when-to-use vs. an alternative sibling.

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