loading…
Search for a command to run...
loading…
Operationalizes Seth Godin's Permission Marketing framework to manage user trust and delegation in AI agent systems through a structured five-level permission l
Operationalizes Seth Godin's Permission Marketing framework to manage user trust and delegation in AI agent systems through a structured five-level permission ladder. It provides tools for requesting, auditing, and revoking permissions to enable autonomous agent actions within user-defined guardrails.
A comprehensive Model Context Protocol (MCP) implementation of Seth Godin's Permission Marketing framework, designed for the Agentic AI era.
This project demonstrates how to operationalize Permission Marketing principles in AI agent systems, enabling a shift from interruption (unwanted messages) to delegation (trusted autonomous action).
Comprehensive PlantUML Diagram (permission-marketing-mcp-system.puml)
Reference Implementation (Python MCP server structure)
Permission Marketing is the privilege (not the right) of delivering anticipated, personal, and relevant messages to people who actually want to receive them.
— Seth Godin, 1999
In the Agentic AI age, this expands beyond messages to actions:
Seth Godin's original ladder, mapped to technical implementation:
| Level | Label | Permission Type | Auto-Grant | Technical Scopes | Example |
|---|---|---|---|---|---|
| 1 | Situational | One-time interaction | ✅ Yes | catalog.browse, product.search |
Browse products |
| 2 | Brand Trust | Customer returns, engages | ❌ No | preferences.save, recommendations.receive |
Remember favorites |
| 3 | Personal Relationship | Cross-session personalization | ❌ No | history.read, profile.personalize |
Show past orders |
| 4 | Points Permission | Loyalty-based deeper access | ❌ No | loyalty.read, offers.personalized |
VIP pricing |
| 5 | Agentic (Intravenous) | Delegated decision-making | ❌ No | orders.auto_create, payment.authorize |
Auto-reorder |
Each level represents earned permission, not assumed rights. The agent climbs the ladder by:
The MCP server exposes six core tools:
@mcp.tool()
async def request_permission(
scope: str, # e.g., "orders.auto_create"
reason: str, # Why this permission is needed
duration: str, # "session", "1 year", "until_revoked"
constraints: Dict = None # Level 5 guardrails (required for agentic)
) -> PermissionGrant:
"""Request user permission for specific scope with clear value proposition"""
@mcp.tool()
async def check_permission(scope: str) -> bool:
"""Verify if agent currently has permission for scope"""
@mcp.tool()
async def revoke_permission(permission_id: str) -> bool:
"""Revoke previously granted permission (user-initiated or auto-expire)"""
@mcp.tool()
async def list_permissions(user_id: str) -> List[Permission]:
"""Retrieve all current permissions for user"""
@mcp.tool()
async def escalate_permission(
current_scope: str,
desired_scope: str,
reason: str
) -> EscalationRequest:
"""Request to climb permission ladder (Level N → Level N+1)"""
@mcp.tool()
async def explain_permission(scope: str) -> Explanation:
"""Return human-readable explanation of what scope enables"""
Three key resources expose permission state:
resource://permissions/{user_id}/current - Current granted permissionsresource://permissions/{user_id}/ladder - Available escalation pathsresource://permissions/{user_id}/audit - Permission history (GDPR compliance)Templates for consistent permission conversations:
permission_request_template - Formats requests with value propositionvalue_exchange_template - Explains benefit-for-data tradedenial_handler_template - Graceful handling of refusalsThe diagram illustrates a complete user journey from first visit to autonomous delegation:
User: "Show me coffee beans"
Agent: [Browses catalog - auto-granted, no permission request needed]
User: "I like this Ethiopian Yirgacheffe"
Agent: "May I remember your coffee preferences for next time?
I'll suggest similar options."
User: "Sure"
→ GRANT: preferences.save (expires: 1 year)
User: "What did I order before?"
Agent: "To show your past orders, I need access to your purchase history."
User: "Makes sense, go ahead"
→ GRANT: history.read (permanent)
Agent: "I notice you buy Ethiopian Yirgacheffe every month.
Want me to auto-reorder when you're running low?"
User: "How would that work?"
Agent: "I'll monitor usage and order 2 weeks before depletion.
Max $50/order, notification before each purchase.
Cancel anytime with 'stop auto-ordering'."
User: "Okay, but only that specific coffee"
→ GRANT: orders.auto_create with CONSTRAINTS:
• product_id: "ETH-YRG-001"
• max_price_usd: 50
• frequency_limit: monthly
• require_notification: true
Agent: [Detects low inventory]
Agent: [Validates constraints: price ✓, frequency ✓]
Agent: [Creates order]
Agent → User: "☕ I've ordered your Ethiopian Yirgacheffe ($42). Arrives Thursday."
Without constraints, delegation becomes unwanted automation (back to interruption marketing).
Required guardrails for agentic permissions:
require_confirmation_if: Conditions triggering manual approvalauto_revoke_if: Automatic permission expirationnotify_on: Events requiring notificationEach permission grant is stored as:
{
"permission_id": "P789",
"level": 5,
"scope": "orders.auto_create",
"granted_at": "2025-02-10T14:22:00Z",
"expires_at": null,
"source": "explicit_delegation",
"context": "User said: 'Okay, but only that specific coffee'",
"last_used": "2025-02-25T08:00:00Z",
"use_count": 2,
"constraints": {
"product_id": "ETH-YRG-001",
"max_price_usd": 50,
"frequency_limit": "monthly",
"require_notification": true
},
"guardrails": {
"require_confirmation_if": ["price_increase > 10%"],
"auto_revoke_if": ["inactivity > 6 months"],
"notify_on": ["order_created"]
}
}
Users must be able to withdraw permission easily:
User: "Stop auto-ordering coffee"
Agent: revoke_permission("P789")
→ Permission revoked, agent drops from Level 5 to Level 3
Agent: "Done! I've stopped auto-ordering. You can still browse
and order manually, and I'll remember your preferences."
Key Principle: No relationship rupture on revocation.
The agent gracefully degrades to the highest remaining permission level, preserving the relationship asset.
permission-marketing-mcp-system.pumlAlt+D (or Option+D on Mac) to preview.puml file contents# Install PlantUML
brew install plantuml # macOS
# or download from https://plantuml.com/download
# Generate PNG
plantuml permission-marketing-mcp-system.puml
# Generate SVG (better for zooming)
plantuml -tsvg permission-marketing-mcp-system.puml
# Install MCP SDK
pip install mcp
# Create server structure
mkdir permission_marketing_mcp
cd permission_marketing_mcp
touch __init__.py server.py models.py database.py
# models.py
from pydantic import BaseModel
from typing import Optional, Dict, List
from datetime import datetime
class PermissionGrant(BaseModel):
permission_id: str
level: int # 1-5 (Godin's ladder)
scope: str
granted_at: datetime
expires_at: Optional[datetime]
source: str # "verbal_consent", "explicit_delegation", etc.
context: str # User's words at grant time
last_used: Optional[datetime]
use_count: int
constraints: Optional[Dict] = None
guardrails: Optional[Dict] = None
class PermissionRequest(BaseModel):
scope: str
reason: str
duration: str
constraints: Optional[Dict] = None
# server.py
from mcp.server import Server
from mcp.types import Tool, Resource, Prompt
import mcp.server.stdio
from models import PermissionGrant, PermissionRequest
from database import PermissionDB
app = Server("permission-marketing-mcp")
db = PermissionDB()
@app.tool()
async def request_permission(
scope: str,
reason: str,
duration: str = "session",
constraints: dict | None = None
) -> dict:
"""Request user permission for specific scope"""
# Determine permission level from scope
level = determine_permission_level(scope)
# Level 5 requires constraints
if level == 5 and not constraints:
raise ValueError("Agentic permissions (Level 5) require explicit constraints")
# Format conversational request
request_text = format_permission_request(scope, reason, level, constraints)
# Present to user (in real implementation, this would be interactive)
# For now, we'll assume grant
# Create grant record
grant = PermissionGrant(
permission_id=generate_id(),
level=level,
scope=scope,
granted_at=datetime.now(),
expires_at=calculate_expiry(duration),
source="explicit_consent",
context=f"Requested for: {reason}",
use_count=0,
constraints=constraints
)
# Store in database
db.save_grant(grant)
# Log audit event
db.log_event("GRANT", grant)
return grant.dict()
@app.tool()
async def check_permission(scope: str) -> bool:
"""Check if current agent has permission for scope"""
return db.has_permission(scope)
@app.tool()
async def revoke_permission(permission_id: str) -> bool:
"""Revoke previously granted permission"""
success = db.revoke(permission_id)
if success:
db.log_event("REVOKE", permission_id, source="user_initiated")
return success
@app.resource("permissions/{user_id}/current")
async def get_current_permissions(user_id: str) -> dict:
"""Get current permission state for user"""
return db.get_user_permissions(user_id)
# Run server
if __name__ == "__main__":
mcp.server.stdio.run(app)
{
"mcpServers": {
"permission-marketing": {
"command": "python",
"args": ["/path/to/permission_marketing_mcp/server.py"],
"env": {
"PERMISSION_DB_PATH": "/path/to/permissions.db"
}
}
}
}
| Pre-AI Permission Marketing | Agentic AI Permission Marketing |
|---|---|
| Permission to send messages | Permission to take actions |
| Static email lists | Dynamic conversation context |
| Pre-defined automation flows | Adaptive agent decision-making |
| Binary opt-in/opt-out | Multi-level permission ladder |
| Revoke via unsubscribe link | Revoke via natural language |
| Compliance checkboxes | Conversational consent negotiation |
This is a conceptual framework and reference implementation. Adapt freely for your use case.
Built with ❤️ for the Agentic AI era
Permission is not a checkbox—it's an ongoing, renewable relationship asset that must be earned and can be lost.
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"permission-marketing-mcp": {
"command": "npx",
"args": []
}
}
}