Skip to main content
Glama
petropt

petropt/petro-mcp

calculate_choke_flow

Calculate oil flow rate through a choke using the Gilbert correlation for critical flow. Requires upstream pressure, choke size, GOR, and oil API.

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 reveals the formula, valid flow regime, and parameter defaults, but lacks disclosure of error handling, output units, or behavior for invalid inputs (e.g., negative pressures). The math adds transparency but edge cases are omitted.

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 a one-sentence purpose and formula, followed by a clean parameter list. Every sentence serves a purpose with no redundancy.

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?

With an output schema present, the description only needs to cover inputs and behavior. It does so adequately for a calculation tool by providing the formula, validity condition, and parameter details. A slight gap is the lack of output description or equation limits, but overall sufficient.

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

Parameters4/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. It provides a parameter list with names, units, defaults (e.g., water_cut as fraction 0-1, gas_sg default 0.65), adding meaning beyond the schema titles. However, not all parameters have full range constraints, keeping it from a 5.

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 calculates flow rate through a choke using the Gilbert correlation (1954), which is a specific verb and resource. It distinguishes itself from sibling tools like calculate_beggs_brill or calculate_turner_critical by naming the correlation and specifying the application.

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 specifies that the formula is valid for critical (sonic) flow only, giving a clear condition for use. However, it does not explicitly mention when to use this tool over alternatives or provide exclusions, which is needed given the many similar calculation tools.

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