omni_fence_post
Calculate 4×4 posts, 2×4 rails, pickets, and concrete bags from fence perimeter, post spacing, and picket width. Returns exact material counts without manual arithmetic errors.
Instructions
Fence Post, Rail & Picket Calculator. Calculate 4×4 posts, 2×4 horizontal rails, dog-ear pickets, and quick-set concrete bags for privacy and picket fences. Discipline: CONSTRUCTION. Governing mathematical model / formula: Posts = ceil[Fence Length / Post Spacing] + 1.
USAGE GUIDELINES:
WHEN TO USE: Invoke for deterministic calculation of posts_count (4×4 Posts Needed), rails_count (2×4 Horizontal Rails), pickets_count (Fence Pickets (5% Waste)), concrete_bags (Fast-Setting Concrete (50 lb)) using fence_length (Total Fence Perimeter in ft), post_spacing (Post Spacing (On-Center) in ft), picket_width (Picket Face Width in in), rails_per_section (Horizontal Rails per Section). Guarantees exact machine floating-point precision, eliminating LLM arithmetic mistakes and formula hallucinations.
WHEN NOT TO USE: Do not use for qualitative evaluations or unquantified reasoning. All input parameters must be valid numerical values.
DISAMBIGUATION & BOUNDARIES:
Use this dedicated specialist tool for 'Fence Post, Rail & Picket Calculator' rather than generic dispatchers like omni_universal_query.
For multi-calculation chained jobs, use 'omni_batch_calculate'.
To inspect schema fields, see 'omni_describe_solver'.
BEHAVIOR & SAFETY:
Pure deterministic computation with machine floating-point precision.
Read-only, idempotent, and stateless. Zero side effects or persistent state mutations.
Input validation: All arguments are validated against physical and domain bounds. Out-of-bounds inputs return a safe diagnostic error status without throwing runtime exceptions.
RETURNS:
Structured JSON object containing:
status (string): "success" on valid execution or "error" if validation fails
calculator (string): "fence-post"
category (string): "construction"
name (string): "Fence Post, Rail & Picket Calculator"
formula (string): Governing mathematical formula string
inputs (object): Echoed input parameter dictionary with applied defaults
metrics (object): Dictionary of computed outputs:
metrics.posts_count (4×4 Posts Needed): Formatted display string (e.g. '16 posts')
metrics.rails_count (2×4 Horizontal Rails): Formatted display string (e.g. '45 rails (8 ft)')
metrics.pickets_count (Fence Pickets (5% Waste)): Formatted display string (e.g. '275 pickets')
metrics.concrete_bags (Fast-Setting Concrete (50 lb)): Formatted display string (e.g. '32 bags (2 per hole)')
execution_time_ms (number): Latency in milliseconds.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "omni_fence_post"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fence_length | No | Total Fence Perimeter (ft). Total running length of fencing. Default: 120. Min: 8. Max: 1000. | |
| picket_width | No | Picket Face Width (in). Standard 1×6 picket measures 5.5 inches wide. Default: 5.5. Min: 3.5. Max: 6. | |
| post_spacing | No | Post Spacing (On-Center) (ft). 8 ft standard, 6 ft for high-wind zones. Default: 8. Min: 6. Max: 10. | |
| rails_per_section | No | Horizontal Rails per Section. 3 rails standard for 6ft privacy fence. Default: 3. Min: 2. Max: 4. |