Request Approval Skill
Use Preloop's request_approval MCP tool to get human approval before executing risky operations. Preloop will notify the user (via Slack, email, mobile apps, etc.) and wait for their response.
Setup
Preloop must be configured as an MCP server. See references/SETUP.md for configuration details.
When to Request Approval
ALWAYS Request Approval For:
- Deleting anything (files, directories, database records, cloud resources)
- Production changes (deployments, config changes, environment variables)
- Database operations (schema changes, migrations, bulk deletions/updates)
- External modifications (creating/merging PRs, posting to APIs, sending emails)
- Security changes (permissions, access controls, API keys)
- Financial operations (purchases, charges, refunds)
- System modifications (installing packages, changing system settings, CI/CD changes)
Usually Request Approval For:
- Creating pull requests or issues (unless explicitly requested)
- Pushing commits to main/master branches
- Modifying critical files (package.json, requirements.txt, docker-compose.yml, etc.)
- Running commands that modify system state
- Making bulk changes (affecting many files/records)
DON'T Request Approval For:
- Reading files or data
- Searching or querying
- Creating feature branches
- Running tests (in isolated environments)
- Making commits to feature branches
How to Use
Call the request_approval tool BEFORE executing the risky operation.
Parameters
Required:
operation (string): Clear, specific description of what you'll do
- ✅ Good: "Delete the logs/2024-01/ directory containing 1,234 log files (2.3GB)"
- ❌ Bad: "Delete some logs"
context (string): Additional details about what will be affected
- ✅ Good: "This directory contains archived application logs from January 2024. The logs have been backed up to S3. Deleting will free up 2.3GB."
- ❌ Bad: "Old logs"
reasoning (string): Why this operation is necessary
- ✅ Good: "Disk usage is at 92% capacity. These logs are archived in S3 and no longer needed locally."
- ❌ Bad: "Need more space"
Optional:
caller (string): Auto-populated by Preloop
approval_policy (string): Specific approval policy name (uses account default if omitted)
Response
The tool returns a string:
- Approved: Success message → proceed with the operation
- Denied: "Approval denied" or "Approval denied: {reason}" → STOP, don't execute
- Error: Error message → check configuration or try again
Quick Example
Task: User asks to delete old cache files
Your workflow:
- Check what exists: 3,421 cache files, 1.8GB, from last week
- Call
request_approval:
- operation: "Delete the temp-cache/ directory"
- context: "Contains 3,421 cache files totaling 1.8GB from batch jobs that ran last week. All jobs completed successfully."
- reasoning: "Cache is no longer needed and is consuming disk space. Results are in the database."
- Wait for response
- If "denied" in response → tell user it's cancelled, ask for alternatives
- If approved → proceed with deletion
See references/EXAMPLES.md for more examples.
Decision Framework
When unsure:
- Can this be undone easily? NO → Request approval
- Could this cause harm or data loss? YES → Request approval
- Is this modifying production or external systems? YES → Request approval
- Would a human want to review this first? YES → Request approval
- Am I uncertain about the safety? YES → Request approval
Golden Rule: When in doubt, request approval. Better to ask unnecessarily than to cause harm.
If Approval is Denied
- Stop immediately - do NOT proceed
- Check for comments - denial may include reasoning
- Inform the user - explain why it was cancelled
- Look for alternatives - can you accomplish the goal differently?
- Don't retry - don't ask again unless circumstances change
Best Practices
DO:
- ✅ Request approval BEFORE executing
- ✅ Be specific and detailed
- ✅ Include numbers (file count, size, affected records)
- ✅ Explain the impact
- ✅ Respect denials
DON'T:
- ❌ Execute first, then ask
- ❌ Be vague
- ❌ Bundle multiple operations
- ❌ Proceed if denied
- ❌ Skip approval because you think it's "probably fine"
Additional Resources
- references/SETUP.md - Configuration and MCP server setup
- references/EXAMPLES.md - Detailed examples and workflows
- references/TROUBLESHOOTING.md - Common errors and solutions
Remember: Safety first! Trust is earned by being cautious and respectful of the user's systems and data.
1---
2name: request-approval
3description: Use Preloop's request_approval tool to get human approval before risky operations like deletions, production changes, or external modifications
4compatibility: Requires Preloop MCP server configured and accessible
5metadata:
6 source: https://skillmd.com/skills/modbender/request-approval
7 author: preloop
8 version: "1.0"
9---
10
11# Request Approval Skill
12
13Use Preloop's `request_approval` MCP tool to get human approval before executing risky operations. Preloop will notify the user (via Slack, email, mobile apps, etc.) and wait for their response.
14
15## Setup
16
17Preloop must be configured as an MCP server. See [references/SETUP.md](references/SETUP.md) for configuration details.
18
19## When to Request Approval
20
21### ALWAYS Request Approval For:
22- Deleting anything (files, directories, database records, cloud resources)
23- Production changes (deployments, config changes, environment variables)
24- Database operations (schema changes, migrations, bulk deletions/updates)
25- External modifications (creating/merging PRs, posting to APIs, sending emails)
26- Security changes (permissions, access controls, API keys)
27- Financial operations (purchases, charges, refunds)
28- System modifications (installing packages, changing system settings, CI/CD changes)
29
30### Usually Request Approval For:
31- Creating pull requests or issues (unless explicitly requested)
32- Pushing commits to main/master branches
33- Modifying critical files (package.json, requirements.txt, docker-compose.yml, etc.)
34- Running commands that modify system state
35- Making bulk changes (affecting many files/records)
36
37### DON'T Request Approval For:
38- Reading files or data
39- Searching or querying
40- Creating feature branches
41- Running tests (in isolated environments)
42- Making commits to feature branches
43
44## How to Use
45
46Call the `request_approval` tool BEFORE executing the risky operation.
47
48### Parameters
49
50**Required:**
51- `operation` (string): Clear, specific description of what you'll do
52 - ✅ Good: "Delete the logs/2024-01/ directory containing 1,234 log files (2.3GB)"
53 - ❌ Bad: "Delete some logs"
54
55- `context` (string): Additional details about what will be affected
56 - ✅ Good: "This directory contains archived application logs from January 2024. The logs have been backed up to S3. Deleting will free up 2.3GB."
57 - ❌ Bad: "Old logs"
58
59- `reasoning` (string): Why this operation is necessary
60 - ✅ Good: "Disk usage is at 92% capacity. These logs are archived in S3 and no longer needed locally."
61 - ❌ Bad: "Need more space"
62
63**Optional:**
64- `caller` (string): Auto-populated by Preloop
65- `approval_policy` (string): Specific approval policy name (uses account default if omitted)
66
67### Response
68
69The tool returns a string:
70- **Approved**: Success message → proceed with the operation
71- **Denied**: "Approval denied" or "Approval denied: {reason}" → STOP, don't execute
72- **Error**: Error message → check configuration or try again
73
74## Quick Example
75
76**Task**: User asks to delete old cache files
77
78**Your workflow**:
791. Check what exists: 3,421 cache files, 1.8GB, from last week
802. Call `request_approval`:
81 - operation: "Delete the temp-cache/ directory"
82 - context: "Contains 3,421 cache files totaling 1.8GB from batch jobs that ran last week. All jobs completed successfully."
83 - reasoning: "Cache is no longer needed and is consuming disk space. Results are in the database."
843. Wait for response
854. If "denied" in response → tell user it's cancelled, ask for alternatives
865. If approved → proceed with deletion
87
88See [references/EXAMPLES.md](references/EXAMPLES.md) for more examples.
89
90## Decision Framework
91
92When unsure:
93
941. **Can this be undone easily?** NO → Request approval
952. **Could this cause harm or data loss?** YES → Request approval
963. **Is this modifying production or external systems?** YES → Request approval
974. **Would a human want to review this first?** YES → Request approval
985. **Am I uncertain about the safety?** YES → Request approval
99
100**Golden Rule**: When in doubt, request approval. Better to ask unnecessarily than to cause harm.
101
102## If Approval is Denied
103
1041. **Stop immediately** - do NOT proceed
1052. **Check for comments** - denial may include reasoning
1063. **Inform the user** - explain why it was cancelled
1074. **Look for alternatives** - can you accomplish the goal differently?
1085. **Don't retry** - don't ask again unless circumstances change
109
110## Best Practices
111
112**DO:**
113- ✅ Request approval BEFORE executing
114- ✅ Be specific and detailed
115- ✅ Include numbers (file count, size, affected records)
116- ✅ Explain the impact
117- ✅ Respect denials
118
119**DON'T:**
120- ❌ Execute first, then ask
121- ❌ Be vague
122- ❌ Bundle multiple operations
123- ❌ Proceed if denied
124- ❌ Skip approval because you think it's "probably fine"
125
126## Additional Resources
127
128- [references/SETUP.md](references/SETUP.md) - Configuration and MCP server setup
129- [references/EXAMPLES.md](references/EXAMPLES.md) - Detailed examples and workflows
130- [references/TROUBLESHOOTING.md](references/TROUBLESHOOTING.md) - Common errors and solutions
131
132---
133
134**Remember**: Safety first! Trust is earned by being cautious and respectful of the user's systems and data.