Skip to main content
Glama
ventsim-mcp

ventsim-mcp

by agenticeram

fix_model

Copies a Ventsim model to a new path and applies automatic fixes for duplicate airways, loose ends, and blocked fans. Returns what changed and before/after model-check counts.

Instructions

Copy the model to 'out_path' with the automatic fixes for what model_check finds: "duplicates" (airways between the same two junctions become one airway with Pathways = their number and the equivalent parallel resistance; not done when one has a fan, fixed flow or stopping), "loose_ends" (ends without air, surface or closed-end setting are marked Closed End, as Ventsim's edit box does), "blocked_fans" (running fans whose air has no path are turned off). Default: all three. Returns what was changed and the model_check counts before and after.

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

Input Schema

NameRequiredDescriptionDefault
pathYes
fixesNo
out_pathYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.14.0

TDQS

A4.3/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 well: it discloses that the source model is copied rather than mutated, details each transformation and its exceptions ('not done when one has a fan, fixed flow or stopping'), states defaults, and describes the return payload. Missing only permissions/prerequisites and any note on how conflicts between fixes are resolved.

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 main action is front-loaded in the first clause, with the fix details following as parentheticals. Dense but every clause adds operational meaning; readability suffers slightly from the single run-on sentence.

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 three-parameter mutation tool with no output schema, the description covers the transformation semantics, defaults, exceptions and return contents. Only the input 'path' semantics and any prerequisite state are left implicit.

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 coverage is 0%, so the description must compensate; it does partly by defining out_path as the copy destination and by naming the valid fix values in quotes along with the all-three default. The 'path' parameter is never explained as the input model, leaving one of three params undocumented.

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?

States a specific verb and resource -- copy the model to 'out_path' applying automatic fixes -- and enumerates exactly which fixes (duplicates, loose_ends, blocked_fans), which distinguishes it from the sibling model_check that only reports problems.

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?

The framing 'fixes for what model_check finds' makes the workflow role clear and the default of all three fixes is stated, but the description never explicitly says to inspect with model_check first or when to prefer manual editing via edit_airways.

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