Skip to main content
Glama
eng-toolkit

eng-toolkit

by Lin830326

Calc Pipe Pressure Drop

calc_pipe_pressure_drop

Calculate frictional pressure drop for steady, incompressible flow in a straight circular pipe using Darcy-Weisbach, including laminar and turbulent friction factors; excludes minor losses.

Instructions

Frictional pressure drop of a fully developed, incompressible, steady flow in a straight circular pipe (Darcy-Weisbach). Friction factor: laminar 64/Re, turbulent Colebrook (Clamond) via the MIT-licensed fluids. Minor losses (fittings, bends) are NOT included.

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": {
      "diameter": "<diameter>",
      "length": "<length>",
      "flow_rate": "<flow_rate>",
      "density": "<density>",
      "viscosity": "<viscosity>"
    },
    "name": "calc_pipe_pressure_drop"
  }
}

Input Schema

NameRequiredDescriptionDefault
lengthYesStraight pipe length, e.g. '1 m'
densityYesFluid density, e.g. '870 kg/m^3'
diameterYesPipe inner diameter, e.g. '10 mm'
flow_rateYesVolumetric flow rate, e.g. '4.7 L/min'
roughnessNoAbsolute wall roughness; default 0.0015 mm (drawn tubing)0.0015 mm
viscosityYesDYNAMIC viscosity, e.g. '0.04 Pa*s' or '40 cP' (kinematic cSt is rejected)
output_unitNoPressure unit for the drop, e.g. 'bar', 'kPa', 'psi'bar

Output Schema

NameRequiredDescriptionDefault
okYes
dataNoNon-quantity payload (reports, listings)
errorNo
valueNoPrimary quantity result
valuesNoAll named quantity results (includes the primary)
warningsNo
artifactsNo
provenanceYesWhat produced the result and from which inputs.
review_statusNounreviewed

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.1

TDQS

A4/5.0
Behavior4/5

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

With no annotations supplied, the description carries the disclosure burden and does well: it names the friction-factor model per regime, credits the underlying `fluids` library, and clearly flags what is not computed (minor losses). It stops short of describing rate limits, error behavior for invalid regimes, or how unit strings are parsed.

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

Conciseness5/5

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

Three tight sentences, front-loaded with the governing equation, then the friction-factor treatment, then the exclusions. Every clause conveys decision-relevant information and nothing is repeated from the schema.

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 engineering calculation with a full schema and an output schema, the description covers assumptions, method, and scope exclusions adequately. The remaining gap is guidance on when an agent should prefer a network-level tool instead, which the definition leaves unstated.

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 100%, so all seven parameters including the dynamic-viscosity rejection note and default roughness are already documented in structured data. The description adds no parameter-level meaning beyond the schema; its added value is entirely at the method/scope level.

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 plus the governing method: 'Frictional pressure drop ... in a straight circular pipe (Darcy-Weisbach)' with laminar 64/Re and turbulent Colebrook correlations. It also narrows scope by excluding minor losses, which cleanly separates it from network-style siblings such as fluids_pipe_network.

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?

The description establishes the physical regime (fully developed, incompressible, steady, straight pipe) which implies when the tool applies, and explicitly excludes fittings and bends. However, it never tells the agent what alternative to use when minor losses or compressible flow are involved, and no prerequisites or failure conditions are stated.

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

Deploy Server

Other Tools