Skip to main content
Glama

Engineering Script

PSVGAS

Calculate required PSV (pressure safety valve) relief area for gas/vapor service per API 520

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": {
      "M": "<M>",
      "P1": "<P1>",
      "P2": "<P2>",
      "T1": "<T1>",
      "MW": "<MW>"
    },
    "name": "PSVGAS"
  }
}

Input Schema

NameRequiredDescriptionDefault
MYesRelieving mass flow rate
kNoHeat capacity ratio (Cp/Cv), default 1.4
KbNoCapacity correction factor for back pressure, default 1.0
KcNoCombination correction factor (rupture disk), default 1.0
KdNoEffective coefficient of discharge, default 0.975
MWYesGas/vapor molecular weight
P1YesUpstream relieving pressure (set pressure + overpressure + atm)
P2YesDownstream (back) pressure
T1YesRelieving temperature
A_unitNoOutput relief area unitcm2

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior3/5

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

With no annotations provided, the description must carry the full burden. It mentions the API 520 standard and the output (relief area), but doesn't disclose assumptions such as compressibility factor handling, critical/non-critical flow considerations, or that it is a pure calculation with no side effects. This is adequate but not deeply 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?

A single, well-structured sentence that front-loads the main verb and object. It efficiently combines purpose, scope, and standard reference with zero waste.

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

Completeness3/5

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

For a tool with 10 parameters, nested value/unit objects, and no output schema, the description is minimal. It doesn't provide an overview of typical usage, unit handling, or the calculation result format beyond 'relief area'. While the schema covers parameters well, the description leaves gaps for an AI agent needing broader operational context.

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 descriptions cover 100% of parameters, so the baseline is 3. The tool description adds no parameter-specific information beyond what the schema already provides, and it doesn't elaborate on how parameters relate to the calculation or output. It correctly notes the output 'relief area' but that's not parameter semantics.

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 the specific verb 'calculate' and clearly identifies the resource: 'required PSV relief area for gas/vapor service per API 520'. It explicitly distinguishes from sibling tools like PSVLIQ and PSVSTEAM by specifying the service type (gas/vapor), making the tool's purpose unambiguous.

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 phrase 'for gas/vapor service' provides clear context for when this tool is appropriate, implying that PSVLIQ or PSVSTEAM should be used for other services. However, it doesn't explicitly name alternatives or state exclusions (e.g., 'not for liquid or steam'), so it stops just short of full when-not guidance.

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