Skip to main content
Glama

Engineering Script

PIPEFLOWGAS

Calculate isothermal gas pipe flow: density, volumetric flow rate, mass flow rate from pressure drop

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": {
      "P1": "<P1>",
      "P2": "<P2>",
      "T": "<T>",
      "L": "<L>",
      "D": "<D>",
      "MW": "<MW>"
    },
    "name": "PIPEFLOWGAS"
  }
}

Input Schema

NameRequiredDescriptionDefault
DYesPipe inside diameter
LYesPipe length
TYesGas temperature
MWYesGas molecular weight
P1YesUpstream (inlet) pressure
P2YesDownstream (outlet) pressure
M_unitNoOutput mass flow unitkg/hr
Q_unitNoOutput volumetric flow unit (normal conditions)Nm3/hr
rho_unitNoOutput density unitkg/m3

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the burden of explaining behavior. It discloses the isothermal condition and the kind of calculations performed. However, it does not mention any underlying assumptions (e.g., ideal gas, friction factor), potential errors, or whether the return is a set of values or a structured object.

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?

The description is a single, front-loaded sentence with the action verb 'Calculate' first. Every word contributes to conveying the tool's purpose, with no filler or repetition.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Despite the tool having 9 parameters and nested value-unit objects, the description is sparse. It does not mention the output format or return structure, which is critical because there is no output schema. It also omits any notes on optional parameter defaults or required relationships between inputs (e.g., P1 must exceed P2).

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 parameters are already clearly labeled (e.g., 'Pipe inside diameter', 'Gas molecular weight'). The description adds no additional semantics beyond naming the outputs, which do not directly explain how parameters should be combined. It leaves unit handling to the already-detailed schema.

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 description uses a specific verb 'Calculate' and identifies the exact resource 'isothermal gas pipe flow'. It lists the computed outputs (density, volumetric flow rate, mass flow rate) and the input basis (pressure drop), making it clear and distinguishing it from sibling tools like PIPEFLOWLIQ or PIPEWATER via the explicit 'gas' qualifier.

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 implies use for gas pipe flow through the tool name and text, but provides no explicit comparison or exclusion with alternatives such as PIPEFLOWLIQ or PIPEWATER. It does not state when to use this tool over others or any prerequisites like P1 > P2.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources