Skip to main content
Glama
petropt

petropt/petro-mcp

calculate_collapse_pressure

Calculate collapse pressure rating for casing using API 5C3. Determines collapse regime from D/t ratio and yield strength, then applies the corresponding formula.

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?

No annotations are provided, so the description bears full burden. It explains the calculation method and regimes but does not disclose if the operation is read-only or whether any side effects occur. This is adequate but not comprehensive.

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 two short paragraphs: the first states the purpose and method, the second lists parameter descriptions. Every sentence adds value with no 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?

The description explains the calculation algorithm and parameters, and since an output schema is present, the return value is covered. It could mention that the output is a single pressure value, but overall it is complete for a calculation tool.

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 adds essential meaning: it specifies units (inches, psi) and purpose for each parameter, including the optional grade parameter with an example. This fully compensates for the schema's lack of descriptions.

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 calculates collapse pressure per API 5C3 and explains the regime determination. It is specific and distinguishes from sibling calculation tools like calculate_burst_pressure.

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 does not explicitly state when to use this tool versus alternatives, though the purpose is clear. No exclusions or alternative recommendations are provided, leaving the agent to infer usage context.

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