Skip to main content
Glama
petropt

petropt/petro-mcp

by petropt

calculate_breakeven_price

Calculate the minimum oil price needed for a project to break even by analyzing production, costs, and financial parameters to determine when net present value equals zero.

Instructions

Calculate breakeven oil price -- minimum price for NPV = 0.

Uses bisection to find the oil price at which discounted net cash flow equals zero.

Args: monthly_production_bbl: Monthly oil production (bbl) per period. monthly_opex: Monthly operating expense ($). capex: Total capital expenditure ($). discount_rate: Annual discount rate. Default 0.10. royalty_pct: Royalty fraction (0-1). Default 0.125. months: Number of months to evaluate (default: length of production array).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
monthly_production_bblYes
monthly_opexYes
capexYes
discount_rateNo
royalty_pctNo
monthsNo

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 full burden. It discloses the calculation method ('bisection') and mentions default values for some parameters, but doesn't describe important behavioral aspects like error conditions, numerical precision, performance characteristics, or what happens with invalid inputs. It provides basic operational context but lacks comprehensive behavioral disclosure.

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 starts with the core purpose, explains the method, then lists parameters with helpful details. Every sentence earns its place, though the parameter documentation could be slightly more concise. The information is front-loaded with the most important details first.

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 tool's complexity (financial calculation with multiple parameters) and the presence of an output schema (which handles return values), the description provides good contextual completeness. It explains the calculation purpose, method, and all parameters thoroughly. The main gap is lack of usage guidance relative to sibling tools, but otherwise it's quite complete for this type of calculation tool.

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?

With 0% schema description coverage, the description must compensate, and it does so effectively. It provides clear semantic explanations for all 6 parameters, including units (bbl, $), ranges (0-1 for royalty_pct), and relationships (months defaulting to length of production array). The description adds substantial meaning beyond the bare schema, though it could provide more context about parameter interactions.

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 purpose: 'Calculate breakeven oil price -- minimum price for NPV = 0.' It uses a precise verb ('calculate') with the specific resource ('breakeven oil price') and distinguishes from siblings by focusing on NPV breakeven analysis rather than other economic or engineering calculations.

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. While it mentions the calculation method ('Uses bisection'), it doesn't indicate when this tool is appropriate compared to other economic calculation tools like 'calculate_npv', 'calculate_irr', or 'calculate_well_economics' in the sibling list.

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