sample-prompts.md•5.72 kB
# Sample Prompts for MCP Plots
This document provides ready-to-use prompts that you can copy and paste to test the mcp-plots functionality in your MCP-enabled environment (like Cursor).
## Getting Started
Simply copy any prompt below and paste it into your chat interface. The mcp-plots tool will automatically generate the appropriate chart using Mermaid syntax.
---
## Pie Charts
### Basic Expense Breakdown
```
Create a pie chart showing my monthly expenses:
- Housing: 40%
- Food: 25%
- Transportation: 15%
- Entertainment: 10%
- Savings: 10%
```
### Project Budget Allocation
```
Show a pie chart of our project budget allocation:
- Development: 50%
- Design: 20%
- Marketing: 15%
- Operations: 10%
- Contingency: 5%
```
### Market Share Analysis
```
Create a pie chart showing smartphone market share:
- Apple: 28%
- Samsung: 22%
- Xiaomi: 13%
- Oppo: 11%
- Others: 26%
```
---
## Bar Charts
### Simple Sales Performance
```
Plot a bar chart for our Q1 sales performance:
- January: $45,000
- February: $52,000
- March: $38,000
- April: $61,000
```
### Department Performance
```
Bar chart for department productivity scores:
- Engineering: 85
- Marketing: 92
- Sales: 78
- Support: 88
- HR: 80
```
### Product Comparison
```
Create a bar chart comparing product ratings:
- Product A: 4.2 stars
- Product B: 3.8 stars
- Product C: 4.6 stars
- Product D: 3.9 stars
- Product E: 4.1 stars
```
### Multi-Category Regional Sales
```
Create a bar chart comparing product sales by region:
Product A: North 100, South 150, East 120, West 80
Product B: North 200, South 180, East 160, West 140
Product C: North 80, South 90, East 200, West 110
```
---
## Line Charts
### Website Traffic Growth
```
Show me a line chart of website visitors over 6 months:
- January: 1200
- February: 1450
- March: 1800
- April: 1650
- May: 2100
- June: 2400
```
### User Growth Metrics
```
Create a line chart showing user growth:
Month 1: 500 users
Month 2: 650 users
Month 3: 800 users
Month 4: 1200 users
Month 5: 1500 users
```
### Performance Monitoring
```
Plot server response times over the last week:
- Monday: 120ms
- Tuesday: 95ms
- Wednesday: 110ms
- Thursday: 85ms
- Friday: 140ms
- Saturday: 75ms
- Sunday: 80ms
```
### Stock Price Tracking
```
Show a line chart of stock price over 2 weeks:
Week 1: $45.20
Week 2: $47.80
Week 3: $44.60
Week 4: $48.90
Week 5: $52.10
Week 6: $49.30
Week 7: $53.70
Week 8: $51.40
```
---
## Business Scenarios
### Customer Satisfaction
```
Create a pie chart for customer satisfaction survey results:
- Very Satisfied: 35%
- Satisfied: 40%
- Neutral: 15%
- Dissatisfied: 7%
- Very Dissatisfied: 3%
```
### Team Performance Dashboard
```
Bar chart showing team sprint completion rates:
- Team Alpha: 95%
- Team Beta: 87%
- Team Gamma: 92%
- Team Delta: 78%
- Team Epsilon: 89%
```
### Revenue Growth Trend
```
Line chart for quarterly revenue growth:
Q1 2023: $2.4M
Q2 2023: $2.7M
Q3 2023: $3.1M
Q4 2023: $3.8M
Q1 2024: $4.2M
Q2 2024: $4.9M
```
---
## Personal Finance
### Investment Portfolio
```
Pie chart of my investment portfolio:
- Stocks: 60%
- Bonds: 25%
- Real Estate: 10%
- Cash: 5%
```
### Monthly Spending Categories
```
Bar chart of monthly spending by category:
- Groceries: $450
- Utilities: $200
- Gas: $150
- Dining Out: $300
- Shopping: $250
- Entertainment: $180
```
### Savings Goal Progress
```
Line chart showing savings goal progress:
- Month 1: $500
- Month 2: $1,200
- Month 3: $1,800
- Month 4: $2,500
- Month 5: $3,100
- Month 6: $3,900
Target: $4,000
```
---
## Educational Examples
### Student Grade Distribution
```
Pie chart for class grade distribution:
- A: 25%
- B: 35%
- C: 25%
- D: 10%
- F: 5%
```
### Study Time by Subject
```
Bar chart showing weekly study hours by subject:
- Mathematics: 8 hours
- Science: 6 hours
- History: 4 hours
- Literature: 5 hours
- Language: 3 hours
```
### Test Score Improvement
```
Line chart of test scores over semester:
Test 1: 72%
Test 2: 78%
Test 3: 81%
Test 4: 85%
Test 5: 88%
Test 6: 92%
```
---
## Technical Examples
### System Resource Usage
```
Pie chart of server resource utilization:
- CPU: 45%
- Memory: 30%
- Storage: 20%
- Network: 5%
```
### Error Rate by Service
```
Bar chart showing daily error rates:
- Authentication Service: 0.2%
- Payment Service: 0.1%
- User Service: 0.3%
- Notification Service: 0.15%
- Analytics Service: 0.05%
```
### API Response Times
```
Line chart of API response times over 24 hours:
00:00: 45ms
04:00: 32ms
08:00: 67ms
12:00: 89ms
16:00: 76ms
20:00: 54ms
```
---
## Tips for Custom Prompts
### Structure Your Data Clearly
- Use consistent formatting for your data points
- Include clear labels for categories/time periods
- Specify the chart type you want (pie, bar, line)
### Good Prompt Pattern
```
[Chart Type] + [Title/Context] + [Data Points]
Example:
"Create a bar chart for Q2 sales results:
- April: $50K
- May: $65K
- June: $72K"
```
### Data Formatting Tips
- **Percentages**: Use % symbol or specify "out of 100"
- **Currency**: Include $ or currency symbol
- **Time series**: Use consistent date/time formats
- **Categories**: Keep names short and clear
### Advanced Features
You can also specify:
- Custom titles: "titled 'My Custom Chart'"
- Specific colors: "using blue and green colors"
- Different themes: "with dark theme"
---
## Try Your Own
Now that you've seen these examples, try creating your own prompts! The tool works best when you:
1. **Clearly specify the chart type** (pie, bar, line)
2. **Provide well-structured data**
3. **Use descriptive labels**
4. **Keep data sets reasonably sized** (5-15 data points work best)
Have fun exploring different visualizations with your own data!