# Drill Hole Compositing AI Agent Connect

> Standardize irregular assay data into uniform intervals for geological modeling.

## Overview
- **Category:** data-science
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_dl22Pnh0O7mcjtUMyw8r17gQB5kaUDrrvsTK9xgz/ai-agent-connect
- **Tags:** assay, compositing, drill-hole, geostatistics, mining-engineering

## Description

This MCP server provides specialized tools for transforming irregular drill hole assay measurements into standardized, equal-length intervals. It is essential for geological modeling and statistical analysis to prevent bias from varying sample lengths. Use `get_composites` to generate uniform intervals, `get_composite_statistics` for statistical summaries, `validate_interval_consistency` to check for depth overlaps, and `get_compositing_summary` to verify mass preservation.

## Tools

### get_composite_statistics
Provides summary statistics for a set of generated composites

### get_composites
Generates a standardized sequence of composite intervals and grades from raw assay data

### get_compositing_summary
Provides a high-level comparison between raw assay data and the resulting composites

### validate_interval_consistency
Checks if the input assay data or composites contain overlapping or illogical depth ranges

## Prompt Examples

**Prompt:** 
```
Generate 2-meter composites from this assay data: [{'startDepth': 0, 'endDepth': 5, 'grade': 1.2}, {'startDepth': 5, 'endDepth': 10, 'grade': 0.8}]
```

**Response:** 
```
[{'startDepth': 0, 'endDepth': 2, 'grade': 1.2}, {'startDepth': 2, 'endDepth': 4, 'grade': 1.2}, {'startDepth': 4, 'endDepth': 6, 'grade': 1.0}, {'startDepth': 6, 'endDepth': 8, 'grade': 0.8}, {'startDepth': 8, 'endDepth': 10, 'grade': 0.8}]
```

**Prompt:** 
```
What are the mean and max grades for these composites: [{'startDepth': 0, 'endDepth': 2, 'grade': 1.5}, {'startDepth': 2, 'endDepth': 4, 'grade': 2.5}]
```

**Response:** 
```
The mean grade is 2.0 and the maximum grade is 2.5.
```

**Prompt:** 
```
Check if these intervals are valid: [{'startDepth': 10, 'endDepth': 5}]
```

**Response:** 
```
The intervals are invalid because the start depth is greater than the end depth.
```

## Frequently Asked Questions

**How does the tool handle geological boundaries?**
You can provide `boundaryDepths` to the `get_composites` tool. This ensures that the compositing process resets at these specific depths, preventing the mixing of data across different geological units.

**Can I check if my data has overlapping intervals?**
Yes, use the `validate_interval_consistency` tool to detect overlapping or out-of-order depth ranges in your assay data or composites.

**How is mass preservation verified?**
The `get_compositing_summary` tool provides a `totalMassPreservationRatio`. A value of 1.0 indicates that the total metal mass was perfectly preserved during the transformation.
