Skip to main content
Glama
petropt

petropt/petro-mcp

by petropt

calculate_beggs_brill

Calculate multiphase pressure drop in pipes using the Beggs & Brill correlation. Determines flow patterns, liquid holdup, and pressure gradients for oil and gas pipelines.

Instructions

Beggs & Brill (1973) multiphase pressure drop in pipes.

The most widely used multiphase flow correlation. Determines flow pattern, calculates liquid holdup, friction factor, and pressure gradient including elevation, friction, and acceleration terms.

Args: flow_rate_bpd: Total liquid flow rate in bbl/day. gor_scf_bbl: Gas-oil ratio in scf/bbl. water_cut: Water cut as fraction (0-1). oil_api: Oil API gravity. gas_sg: Gas specific gravity (air = 1.0). pipe_id_in: Pipe inner diameter in inches. pipe_length_ft: Pipe length in feet. inclination_deg: Pipe inclination from horizontal (-90 to 90 degrees). wellhead_pressure_psi: Wellhead (outlet) pressure in psi. temperature_f: Average flowing temperature in degrees F.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
flow_rate_bpdYes
gor_scf_bblYes
water_cutYes
oil_apiYes
gas_sgYes
pipe_id_inYes
pipe_length_ftYes
inclination_degYes
wellhead_pressure_psiYes
temperature_fYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It describes what the tool calculates but lacks critical behavioral details: it doesn't specify if this is a read-only calculation or has side effects, doesn't mention error handling or validation for input ranges (e.g., water_cut 0-1, inclination_deg -90 to 90), and doesn't describe the output format or units despite having an output schema.

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 description is well-structured and appropriately sized. It begins with a high-level overview, details the calculations performed, and then lists all parameters with clear definitions. Every sentence earns its place, though the parameter section is lengthy but necessary given the complex tool. It could be slightly more front-loaded with usage context.

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?

Given the tool's complexity (10 required parameters, engineering calculations) and no annotations, the description is partially complete. It excellently documents parameters but lacks behavioral context (e.g., computational requirements, accuracy limitations). The presence of an output schema reduces the need to describe return values, but more guidance on tool behavior would improve completeness.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The description adds substantial meaning beyond the input schema, which has 0% description coverage. It provides clear semantics for all 10 parameters: defines each parameter's purpose (e.g., 'Total liquid flow rate in bbl/day'), units (e.g., 'psi', 'degrees F'), and valid ranges where applicable (e.g., 'Water cut as fraction (0-1)'). This fully compensates for the schema's lack of descriptions.

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 clearly states the tool's purpose with specific verbs and resources: 'Determines flow pattern, calculates liquid holdup, friction factor, and pressure gradient including elevation, friction, and acceleration terms.' It distinguishes from siblings by specifying it's for 'multiphase pressure drop in pipes' using the 'Beggs & Brill (1973)' correlation, which is unique among the listed tools.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives. It mentions it's 'the most widely used multiphase flow correlation' but doesn't specify scenarios where it's preferred over other methods or tools, nor does it mention any prerequisites or exclusions for its use.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/petropt/petro-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server