Skip to main content
Glama
petropt

petropt/petro-mcp

by petropt

calculate_well_economics

Calculate discounted cash flow analysis for oil and gas wells to determine NPV, IRR, payout period, and profitability index using production data and economic assumptions.

Instructions

Full discounted cash flow analysis for a well.

Takes production arrays (from decline forecast) plus economic assumptions. Returns NPV, IRR, payout period, profitability index, and monthly cash flows.

Args: monthly_oil_bbl: Monthly oil production (bbl) for each period. monthly_gas_mcf: Monthly gas production (Mcf) for each period. monthly_water_bbl: Monthly water production (bbl) for each period. oil_price_bbl: Oil price ($/bbl). gas_price_mcf: Gas price ($/Mcf). opex_monthly: Monthly operating expense ($). capex: Total capital expenditure ($), applied at time 0. royalty_pct: Royalty fraction (0-1). Default 0.125. tax_rate: Severance/production tax rate (0-1). Default 0.0. discount_rate: Annual discount rate for NPV. Default 0.10. working_interest: Working interest fraction (0-1). Default 1.0. net_revenue_interest: Net revenue interest fraction (0-1). Default 0.875.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
monthly_oil_bblYes
monthly_gas_mcfYes
monthly_water_bblYes
oil_price_bblYes
gas_price_mcfYes
opex_monthlyYes
capexYes
royalty_pctNo
tax_rateNo
discount_rateNo
working_interestNo
net_revenue_interestNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

With no annotations provided, the description carries the full burden. It discloses that the tool performs a 'discounted cash flow analysis' and returns specific financial metrics, which implies a computational, non-destructive operation. However, it lacks details on behavioral traits such as error handling, performance characteristics, or any side effects (e.g., data persistence or external calls), leaving gaps in transparency for an agent.

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 with a clear purpose statement, input explanation, and output listing, all in a compact format. Every sentence earns its place by providing essential information. It could be slightly more front-loaded by moving the output details earlier, but overall it is efficient and avoids 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?

Given the complexity (12 parameters, economic analysis) and no annotations, the description does a good job explaining inputs and outputs. Since an output schema exists, it need not detail return values, but it still lists key metrics (NPV, IRR, etc.). The main gap is lack of behavioral context (e.g., computational limits), but it compensates well with parameter semantics and purpose clarity.

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 schema description coverage is 0%, so the description must compensate fully. It provides detailed semantics for all 12 parameters, including units (e.g., bbl, Mcf, $), ranges (e.g., 0-1 for fractions), defaults, and their roles in the analysis (e.g., 'applied at time 0' for capex). This adds significant meaning beyond the bare schema, effectively documenting each parameter.

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 ('Full discounted cash flow analysis for a well') and distinguishes it from siblings by focusing on comprehensive economic metrics (NPV, IRR, payout period, etc.) rather than single calculations like 'calculate_npv' or 'calculate_irr' in the sibling list. It specifies the verb ('analysis') and resource ('a well') precisely.

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 by mentioning it 'Takes production arrays (from decline forecast) plus economic assumptions,' suggesting it should be used after production forecasting. However, it does not explicitly state when to use this tool versus alternatives like 'calculate_npv' or 'calculate_irr' from the sibling list, nor does it provide exclusions or prerequisites beyond the implied input data.

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