Skip to main content
Glama
petropt

petropt/petro-mcp

calculate_collapse_pressure

Compute collapse pressure rating per API 5C3. Input casing OD, wall thickness, and yield strength; tool identifies collapse regime (yield, plastic, transition, elastic) and calculates pressure.

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, the description carries full burden. It explains the algorithm (regime determination from D/t and yield strength) and that grade is optional for reference, but does not disclose error handling, output format, or side effects. 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: a two-sentence overview followed by a clean Args list. Every sentence adds value, no fluff. Properly front-loaded with 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 (API standard, regime logic) and that an output schema exists, the description covers the essential algorithm and parameters. It could mention return value structure, but completeness is high for a single-purpose calculator.

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?

Schema description coverage is 0%, so the description compensates well. It lists all parameters in an 'Args' section with one-line descriptions (e.g., 'Casing outer diameter (inches)') and clarifies grade as optional. This adds significant meaning beyond the schema's bare titles.

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, specifying the verb 'calculate' and the resource 'collapse pressure rating'. It distinguishes from sibling tools by referencing the specific API standard and regime determination.

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 like calculate_burst_pressure. It implicitly addresses usage through naming but lacks explicit when-to/not-to-use context or comparisons.

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