Skip to main content
Glama
petropt

petropt/petro-mcp

by petropt

calculate_choke_flow

Calculate flow rate through a choke using Gilbert correlation for critical flow conditions in petroleum engineering applications.

Instructions

Calculate flow rate through a choke using Gilbert correlation (1954).

q = P * S^1.89 / (435 * GLR^0.546). Valid for critical (sonic) flow only.

Args: upstream_pressure_psi: Upstream pressure in psi. choke_size_64ths: Choke bean size in 64ths of an inch. gor_scf_bbl: Gas-oil ratio in scf/bbl. oil_api: Oil API gravity. water_cut: Water cut as fraction (0-1). Default 0.0. gas_sg: Gas specific gravity. Default 0.65.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
upstream_pressure_psiYes
choke_size_64thsYes
gor_scf_bblYes
oil_apiYes
water_cutNo
gas_sgNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It discloses the mathematical model (Gilbert correlation) and its validity condition (critical flow only), which are important behavioral traits. However, it lacks details on error handling, units of the output (implied but not stated), or performance characteristics like computational limits.

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 front-loaded with the core purpose and formula, followed by a structured 'Args:' section. Every sentence earns its place: the first two sentences define the tool and its constraints, and the parameter explanations are necessary given the lack of schema descriptions. No redundant information is present.

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?

Given the complexity (engineering calculation with 6 parameters), no annotations, and an output schema (implied by 'Has output schema: true'), the description is largely complete. It covers the formula, validity, and all parameters thoroughly. However, it does not explicitly state the output's nature (e.g., flow rate in specific units), relying on the output schema, which is acceptable but leaves a minor gap for full context.

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?

Schema description coverage is 0%, so the description must compensate fully. It provides detailed semantics for all 6 parameters: explaining what each represents (e.g., 'upstream pressure in psi'), units (e.g., 'scf/bbl'), ranges (e.g., '0-1' for water cut), and defaults. This adds significant meaning beyond the bare schema titles.

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 specific action ('Calculate flow rate through a choke') and the method ('using Gilbert correlation (1954)'), distinguishing it from sibling tools like 'calculate_annular_velocity' or 'calculate_ecd' which address different engineering calculations. It provides a precise mathematical formula, making the 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 description explicitly states 'Valid for critical (sonic) flow only,' which provides clear context for when to use this tool. However, it does not mention when not to use it (e.g., for subcritical flow) or name specific alternatives among the many sibling tools, such as 'calculate_turner_critical' which might handle different flow regimes.

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