Skip to main content
Glama
eng-toolkit

eng-toolkit

by Lin830326

Calc Orifice Flow

calc_orifice_flow

Calculate incompressible turbulent flow through a sharp-edged orifice or fixed throttle from pressure drop, or determine pressure drop from flow, using the orifice equation and discharge coefficient.

Instructions

Flow through a sharp-edged orifice or a fixed throttle (orifice equation Q = CdAsqrt(2*dp/rho)). Give the pressure drop to get the flow, or the flow to get the pressure drop (exactly one of the two). Incompressible liquid, turbulent flow; Cd is the discharge coefficient (about 0.6 for a sharp edge).

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

Input Schema

NameRequiredDescriptionDefault
densityYesFluid density with unit, e.g. '870 kg/m^3'
diameterYesOrifice (throat) diameter with unit, e.g. '5 mm'
flow_rateNoVolumetric flow, e.g. '40 L/min'. Give this OR pressure_drop, not both.
flow_unitNoUnit for the flow result, e.g. 'L/min', 'm^3/s', 'gal/min'L/min
viscosityNoOptional DYNAMIC viscosity, e.g. '40 cP'. Only used to report the orifice Reynolds number and warn when it is too low for a constant Cd. Empty = skip.
pressure_dropNoPressure drop across the orifice, e.g. '100 bar'. Give this OR flow_rate, not both.
pressure_unitNoUnit for the pressure-drop result, e.g. 'bar', 'MPa', 'psi'bar
discharge_coeffNoDischarge coefficient Cd, 0 < Cd <= 1. Sharp-edged orifice about 0.6-0.62.

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.2/5.0
Behavior4/5

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

With no annotations at all, the description carries the full burden and does well: it discloses the physical model, the incompressible/turbulent validity envelope, and the mutual-exclusivity contract that governs the call. It stops short of describing what happens on invalid input (both or neither supplied) or how the Reynolds-number warning surfaces, so it is not fully transparent.

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: equation first, then the bidirectional calling convention, then the validity envelope. Nothing is redundant or buried.

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 an 8-parameter engineering calculator with a full output schema, the description covers the model, units-bearing inputs, and the one-of constraint the agent must respect. The optional viscosity/Reynolds-number behavior is only explained in the schema, leaving a small gap for a tool where that flag affects result trust.

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 the schema already documents every parameter, including the Cd range and the 'give this OR that, not both' notes. The description reinforces but does not extend that, so the baseline 3 applies.

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?

Names a specific verb and resource plus the governing equation (Q = Cd*A*sqrt(2*dp/rho)), and states the two computation directions. That is far more specific than a name restatement and lets an agent distinguish it from sibling sizing tools such as calc_pipe_pressure_drop or calc_cylinder_speed.

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?

Gives clear applicability conditions: incompressible liquid, turbulent flow, and the rule that exactly one of pressure_drop or flow_rate must be supplied. It does not name an alternative tool for cases outside these assumptions (e.g. compressible gas or pipe friction losses), which keeps it short of a 5.

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