# Canine Sleep & Activity Correlation AI Agent Connect

> Canine Sleep & Activity Correlation MCP lets your AI agent analyze biological rhythms by linking sleep, movement, and feeding data. It calculates sleep duration and fragmentation, identifies behavioral shifts, and finds correlations between exercise and rest patterns. Use it with any MCP-compatible client to get a clear picture of your dog's daily routine.

## Overview
- **Category:** analytics
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_PLH53ltFzsErcnZpZDAJb0yhwGK2WGHZnxwmHwuL/ai-agent-connect
- **Tags:** canine, sleep-analysis, behavioral-patterns, biological-rhythms, activity-tracking

## Description

You can now give your AI agent a deep understanding of canine biological rhythms. This MCP connects your client to raw behavioral data, turning logs of movement and rest into quantitative analysis. Instead of guessing why your dog is restless, you can ask your agent to find the specific link between a late feeding and a fragmented sleep cycle. 

Your agent can pull total sleep and movement numbers to establish a baseline. From there, it can dig into the math to see how exercise or food impacts rest through lagged correlations. It also spots significant shifts in behavior that might indicate a change in health or routine. You can even compare how your dog's behavior changes between a standard weekday and a relaxed weekend. It's a direct way to move from simple tracking to actual behavioral intelligence.

## Tools

### get_behavior_change_points
This tool identifies specific moments when a dog's behavioral patterns shifted significantly. It helps your agent pinpoint exactly when a change in activity or rest occurred.

### get_behavioral_correlations
This tool calculates the relationship between feeding or exercise and sleep patterns. It uses lagged correlations to show how one activity impacts subsequent rest.

### get_routine_comparisons
This tool compares behavioral patterns across different timeframes. It's used to see how a dog's routine differs between weekdays and weekends.

### get_sleep_activity_summary
This tool provides a high-level overview of sleep and movement. It returns total sleep duration and activity levels for a specific period.

## Prompt Examples

**Prompt:** 
```
How much did my dog sleep and how active was it between 2024-05-01T00:00:00Z and 2024-05-02T00:00:00Z?
```

**Response:** 
```
Between those dates, your dog had 420 minutes of sleep with a fragmentation score of 12, and 150 active minutes.
```

**Prompt:** 
```
Is there a relationship between feeding and sleep patterns for the last 7 days?
```

**Response:** 
```
There is a strong correlation (coefficient: 0.75) between feeding events and subsequent sleep, with a typical lag of 2 hours.
```

**Prompt:** 
```
Did my dog's movement patterns change significantly last week?
```

**Response:** 
```
Yes, a significant change point in movement was detected on 2024-05-03T14:30:00Z with a magnitude of 0.45.
```

## Capabilities

### Sleep Fragmentation Analysis
Your agent uses this to determine how interrupted a dog's rest period is.

### Activity Correlation
Your agent calculates how feeding or exercise timing affects sleep quality.

### Behavioral Shift Detection
Your agent identifies specific timestamps where behavior patterns changed.

### Routine Comparison
Your agent compares weekday activity against weekend activity levels.

### Quantitative Summaries
Your agent pulls total sleep and movement counts for specific date ranges.

## Use Cases

### Post-Feeding Sleep Analysis
Check if a specific feeding time leads to better or worse sleep quality for your dog.

### Health Change Detection
Use your agent to find when a dog's movement patterns shifted, which might indicate a health issue.

### Routine Optimization
Compare weekend versus weekday activity to see how schedule changes affect rest.

### Activity Monitoring
Get a quick summary of total sleep and movement for any specific date range.

## Benefits

- Identifies specific timestamps for behavioral changes.
- Links feeding and exercise to sleep quality via lagged correlations.
- Quantifies sleep fragmentation and total activity levels.
- Compares routine differences between weekdays and weekends.

## How It Works

Connecting this MCP to your AI client gives your agent immediate access to canine behavioral data.

1. Connect your AI client to the MCP via Vinkius.
2. Ask your agent to pull a sleep and activity summary for a specific date.
3. Request a correlation analysis between feeding and sleep.
4. Ask your agent to identify any significant behavioral change points.
5. Review the quantitative results provided by your agent.

## Frequently Asked Questions

**What can this MCP do with my dog's data?**
It analyzes biological rhythms by correlating sleep, movement, and feeding logs. It can find sleep duration, fragmentation, and behavioral shifts.

**Can I see how exercise affects my dog's sleep?**
Yes. You can use the behavioral correlation tool to see how exercise impacts sleep patterns through lagged correlations.

**How does it detect changes in behavior?**
The MCP uses a change point tool to identify specific moments when a dog's movement or rest patterns shift significantly.

**Does it work with Claude or Cursor?**
Yes. This MCP works with any MCP-compatible client, including Claude, Cursor, Windsurf, and VS Code.

**Can I compare weekday and weekend routines?**
Yes. The routine comparison tool allows your agent to see how behavior patterns differ between weekdays and weekends.

**What kind of data can I analyze?**
You can analyze sleep, rest, movement, exercise, feeding, and event logs to find correlations and behavioral changes.

**How do I check for changes in my dog's routine?**
You can use the `get_behavior_change_points` tool to detect significant statistical shifts in metrics like sleep or feeding.

**Can I compare weekend activity to weekday activity?**
Yes, the `get_routine_comparisons` tool provides a direct comparison of sleep and activity levels between weekdays and weekends.
