Skip to main content
Glama
ventsim-mcp

ventsim-mcp

by agenticeram

calibrate_airflow

Fits airway resistances to measured airflow values, adjusting selected airways and returning resistance factors plus before/after airflow and residual misfit for use in what-if simulations or edits.

Instructions

EXPERIMENTAL. Fit airway resistances to survey measurements: 'measured' = {Unique No: airflow m3/s}; 'adjustable' = airways whose resistance may change (default: the measured ones). Returns the resistance factors, the airflow before and after at the measured airways, and the remaining misfit. Feed the factors to what_if / simulate_airflow as resistance_scale, or write them with edit_airways (kFactor). Measurements that cannot tell airways apart (airways in series) get the smallest change; check 'at_limit'.

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

Input Schema

NameRequiredDescriptionDefault
pathYes
measuredYes
adjustableNo
max_factorNo
from_inputsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.14.0

TDQS

A4.1/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 most of it: it flags the tool as EXPERIMENTAL, states exactly what is returned (resistance factors, before/after airflow at measured airways, remaining misfit), and warns about the identifiability edge case where series airways get the smallest change and the 'at_limit' field should be checked. What it omits is any mention of runtime, permissions, or what happens when the fit fails to converge.

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 caveat is correctly front-loaded, and the text moves efficiently from purpose to input contract to return values to next steps. It is dense but every clause carries information; the only mild cost is the run-on sentence packing input semantics and output semantics together.

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?

There is no output schema, so the explicit enumeration of returned fields is necessary and present, and the identifiability caveat covers the main interpretive risk of a calibration result. The remaining gap is the undocumented 'max_factor' and 'from_inputs' parameters, which could change behavior materially and are invisible to the agent.

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 description coverage is 0%, so the description must compensate, and it does for the two most important parameters: the 'measured' map format is spelled out and 'adjustable' gets both meaning and default. However, 'max_factor', 'from_inputs', and 'path' are never explained, leaving three of five parameters undocumented in both schema and prose.

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 opening clause names a specific verb and resource — 'Fit airway resistances to survey measurements' — and immediately defines the two core inputs in domain terms. It is clearly distinguishable from siblings because it names what_it/simulate_airflow as downstream consumers of its output rather than competitors.

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 description tells the agent what to do with the result (feed factors as resistance_scale to what_if/simulate_airflow, or persist them via edit_airways kFactor), which effectively routes it into the right workflow. It also states the default for 'adjustable' so the agent knows it can omit it. It stops short of saying when calibration is the wrong choice versus, say, manual editing, but the context is clear.

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