Skip to main content
Glama
petropt

petropt/petro-mcp

by petropt

calculate_collapse_pressure

Calculate casing collapse pressure ratings using API 5C3 standards. Determines failure regime and applies appropriate formulas based on D/t ratio and yield strength for petroleum engineering applications.

Instructions

Calculate collapse pressure rating per API 5C3.

Determines regime (yield, plastic, transition, elastic) from D/t ratio and yield strength, then applies the corresponding API formula.

Args: od_in: Casing outer diameter (inches). wall_thickness_in: Wall thickness (inches). yield_strength_psi: Minimum yield strength (psi). grade: Optional API grade label (e.g. 'N-80') for reference.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
od_inYes
wall_thickness_inYes
yield_strength_psiYes
gradeNo

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 explains the calculation methodology (determining regime, applying API formulas) which adds behavioral context beyond just 'calculate'. However, it doesn't disclose performance characteristics, error handling, or output format details that would be helpful 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 purpose explanation first, then methodology, then parameter details. Every sentence serves a clear purpose, though the parameter explanations could be slightly more concise. The information is front-loaded with the core calculation 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 existence of an output schema (which handles return values), the description provides adequate context for this calculation tool. It covers the calculation methodology and parameter meanings. However, it could benefit from more behavioral transparency about what the calculation produces or typical use cases.

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?

With 0% schema description coverage, the description fully compensates by explaining all 4 parameters in the Args section. It clarifies what each parameter represents (e.g., 'Casing outer diameter', 'Minimum yield strength'), provides units, and explains the optional 'grade' parameter is 'for reference', adding significant value beyond the bare schema.

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 verb 'calculate' and resource 'collapse pressure rating per API 5C3', distinguishing it from siblings like calculate_burst_pressure or calculate_hydrostatic_pressure. It provides technical specificity about determining regime from D/t ratio and yield strength, making the purpose unambiguous.

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?

No guidance is provided on when to use this tool versus alternatives like calculate_burst_pressure or other pressure-related calculations. The description mentions the API 5C3 standard but doesn't specify scenarios or prerequisites for its application, leaving usage context implicit.

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