Skip to main content
Glama
petropt

petropt/petro-mcp

havlena_odeh

Perform oil material balance analysis using the Havlena-Odeh method to identify reservoir drive mechanisms (depletion, gas cap, water drive) and estimate Original Oil In Place (OOIP) from production and PVT data.

Instructions

Oil material balance using Havlena-Odeh straight-line method (1963).

Identifies drive mechanism (depletion, gas cap, water drive) and estimates Original Oil In Place (OOIP). Returns F vs Et plot data for diagnostics.

Args: pressures: Reservoir pressures at each time step (psi). np_values: Cumulative oil production at each step (STB). rp_values: Cumulative producing GOR at each step (scf/STB). wp_values: Cumulative water production at each step (STB). wi_values: Cumulative water injection at each step (STB). bo_values: Oil FVF at each pressure (bbl/STB). rs_values: Solution GOR at each pressure (scf/STB). bg_values: Gas FVF at each pressure (bbl/scf). bw_values: Water FVF at each pressure (bbl/STB). boi: Initial oil FVF (bbl/STB). rsi: Initial solution GOR (scf/STB). bgi: Initial gas FVF (bbl/scf). cf: Formation compressibility (1/psi). Optional. swi: Initial water saturation (fraction, 0-1). Optional.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pressuresYes
np_valuesYes
rp_valuesYes
wp_valuesYes
wi_valuesYes
bo_valuesYes
rs_valuesYes
bg_valuesYes
bw_valuesYes
boiYes
rsiYes
bgiYes
cfNo
swiNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

With no annotations, the description must carry the transparency burden. It explains the method and inputs but omits behavioral details such as assumptions, numerical stability, error handling, or data quality requirements. The method and return type are stated, but deeper behavioral traits are missing.

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 front-loaded with purpose and method, followed by a systematic parameter list. While lengthy, every sentence adds value. It could be slightly trimmed without loss but is well-organized.

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 (14 params, output schema exists), the description covers the core functionality, input semantics, and high-level output. It does not detail the output structure but relies on the output schema. Some additional context on drive mechanism indicators 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 compensates for the schema's 0% coverage by detailing each parameter with units and context (e.g., 'pressures (psi)', 'np_values (STB)'). This adds significant meaning beyond the schema's names and types.

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 explicitly names the Havlena-Odeh straight-line method, identifies its purpose (oil material balance, drive mechanism identification, OOIP estimation), and defines the output (F vs Et plot data). This clearly distinguishes it from sibling reservoir tools.

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 usage when pressure and production data are available but does not specify when to use this tool over alternatives like pz_analysis or volumetric_ooip. No explicit when-not or exclusion criteria are provided.

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