MCP & AI Agent Integration

Piggy
automation.

13 AI agent actions for Piggy — callable from any MCP-compatible runtime, Claude, Cursor, or Cerebral OS workflow. Use Piggy to manage subscribers, trigger campaigns, and personalize outreach at scale. Full governance, audit trail, and dry-run safety on every execution.

No credit card required
Live in production environments
<200ms median execution
Dry-run before production
Execution trace
live
13
actions
100%
governed
<200ms
latency
13
AI agent actions
7
Read operations
6
Write operations
0
High-risk actions (approval gated)
Marketing Piggy is a Marketing integration — use it to automate email campaigns, audience management, and automation from any AI agent or MCP-compatible runtime.
Actions

What you can do
with Piggy.

Every action below is available as an MCP tool and a verb in Cerebral OS — callable from any AI agent, Claude, Cursor, Windsurf, or your own runtime via the BYOA API. All executions are governed, audited, and dry-run safe.

Get Analytics
piggy:get_analytics
Get loyalty program analytics and key performance indicators.
Read Low risk
Get Member
piggy:get_member
Fetch a single loyalty member by ID or email with points balance and tier info.
Read Low risk
Get Points History
piggy:get_points_history
Get a member's points transaction history with filtering options.
Read Low risk
Get Tiers
piggy:get_tiers
Get all loyalty program tiers with their requirements and benefits.
Read Low risk
List Campaigns
piggy:list_campaigns
List loyalty campaigns with filtering and pagination options.
Read Low risk
List Members
piggy:list_members
List loyalty members with filtering and pagination options.
Read Low risk
List Rewards
piggy:list_rewards
List available loyalty rewards with filtering options.
Read Low risk
Award Points
piggy:award_points
Award loyalty points to a member with tracking information.
Write Medium risk
Create Campaign
piggy:create_campaign
Create a new loyalty campaign with targeting and scheduling options.
Write Medium risk
Create Member
piggy:create_member
Create a new loyalty program member with optional initial points.
Write Medium risk
Redeem Points
piggy:redeem_points
Redeem loyalty points from a member's account with tracking.
Write Medium risk
Redeem Reward
piggy:redeem_reward
Redeem a loyalty reward for a member, deducting required points.
Write Medium risk
Update Member
piggy:update_member
Update an existing loyalty member's profile information.
Write Medium risk
MCP & Runtime API

Call Piggy
from any AI agent.

Any AI agent — Claude, Cursor, LangChain, AutoGen, or your own — can call Piggy actions through the Cerebral OS Runtime API. Governance, credentials, and audit trail fire automatically.

piggy:get_analytics READ
# Call via Runtime API
curl
-X POST \
  "https://api.cerebralos.com/v1/runtime/actions/run"
  -H "X-API-Key: YOUR_KEY" \
  -d '{
    "verb": "piggy:get_analytics",
    "args": {},
    "execution_id": "agent-001"
  }'
piggy:award_points WRITE
# Dry-run first — no production risk
curl
-X POST \
  "https://api.cerebralos.com/v1/runtime/actions/run"
  -H "X-API-Key: YOUR_KEY" \
  -d '{
    "verb": "piggy:award_points",
    "args": {},
    "execution_id": "agent-001",
    "metadata": {"dryRun": true}
  }'
Get your Runtime API key at app.cerebralos.com/signup — 1,000 free executions, no credit card required.
AI agent examples

What your AI agent
can do with Piggy.

Real patterns your AI agent can execute via MCP or the Runtime API. Every action governed, dry-run safe, and fully audited.

Trigger
AI agent needs Piggy data
Call piggy:get_analytics via MCP or Runtime API
AI processes result and takes next action
Full execution logged to audit trail automatically
Trigger
Workflow needs to write to Piggy
Dry-run validates piggy:award_points before execution
Approval gate fires if risk level is high
Action executes with full governance — logged, audited, reversible
Trigger
Campaign or subscriber event
Segment audience
Trigger follow-up
Log metrics to dashboard
How it works

Every Piggy action
governed end-to-end.

Cerebral OS isn't a connector. It's the execution layer that sits in front of Piggy — adding governance, dry-run safety, and a full audit trail to every operation.

Governance first
Every verb carries a risk classification. High-risk writes require explicit approval gates before they execute in production.
Dry-run safe
Simulate any Piggy action before it touches production. See exactly what would happen before a single real call is made.
Immutable audit trail
Every Piggy action is logged — what ran, what changed, who approved it, when it happened. Full history on every verb, forever.
Connect with

Piggy works best
alongside these.

Build multi-step workflows that connect Piggy to the rest of your stack. All governed. All audited.

Piggy integration

Start free.
No credit card required.

Start free with 1,000 runs — no credit card required. Connect Piggy in minutes, dry-run every action before it touches production, full audit trail on everything.

Start free — 1,000 runs Browse all integrations →