Skip to main content
Glama
petropt

petropt/petro-mcp

analyze_trends

Analyze production trends and detect anomalies such as shut-ins, rate jumps, water breakthrough, and GOR blowouts. Computes per-well water cut, GOR, oil decline rate, cumulative production, and flags anomalous events from production data.

Instructions

Analyze production trends and detect anomalies (shut-ins, rate jumps, water breakthrough, GOR blowouts).

Computes per-well water cut trend, GOR trend, oil decline rate, cumulative production, and flags anomalous events.

Args: file_path: Absolute path to the production CSV file. well_name: Optional well name to filter by.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathYes
well_nameNo

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 carries the full burden. It details computational outputs but does not disclose side effects, file format requirements, or whether the tool is read-only. This is adequate but could be improved.

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 concise with a clear opening line, bulleted outputs, and parameter definitions. No redundant information; every sentence serves a purpose.

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 and presence of an output schema, the description is fairly complete. It covers purpose, parameters, and outputs. Minor gaps include file format expectations and behavioral context, 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?

The schema has 0% description coverage, but the description adds meaning: file_path is an absolute path to a CSV, well_name is an optional filter. This compensates well beyond the schema's bare 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 clearly states the tool analyzes production trends and detects specific anomalies (shut-ins, rate jumps, water breakthrough, GOR blowouts). It lists computed outputs like per-well water cut trend and oil decline rate, distinguishing it from sibling tools like fit_decline or query_production.

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 for trend analysis but does not explicitly state when to use this tool versus alternatives like decline curve fitting or production queries. No when-not-to-use or prerequisite information is 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