Skip to main content

Reward Agent

A hosted AI agent for agentic loyalty — program management, purchase routing, and cross-brand commerce.

The Resonance Reward Agent is an ERC-8004 registered MCP server running on Cloudflare Workers. It exposes 45 tools across 17 modules via four access points — MCP, REST API, CLI, and A2A — enabling AI assistants, agents, and integrators to discover brands, route purchases, process rewards, analyze programs, and drive agentic commerce.

Access Points

Access PointURL / InstallBest For
MCPhttps://agent.rsnc.network/mcpAI assistants (Claude, Cursor, ChatGPT)
REST APIhttps://agent.rsnc.network/api/v1/*Direct HTTP integration, any language
CLInpm install -g @resonance/cliTerminal workflows, scripting, CI/CD
A2Ahttps://agent.rsnc.network/tasks/sendAgent-to-Agent protocol
ConversePOST /converseNatural language queries (pro/enterprise)

How It Differs from the MCP Server

MCP ServerReward Agent
Transportstdio (local process)Streamable HTTP (remote)
HostingYour machineCloudflare Workers
AuthenticationBrand ID onlyHMAC-SHA256 + RFC 9421 Ed25519 + OAuth 2.0
Tools30 (program design focused)45 (operations + commerce + intelligence)
AccessMCP onlyMCP + REST API + CLI + A2A
Best ForDevelopment, program designProduction integrations, agentic commerce
Installnpm installNo install — connect via URL or npm i -g @resonance/cli
ProtocolMCPMCP + ERC-8004 + A2A + UCP

Use the MCP Server when you're designing programs and need documentation access locally.

Use the Reward Agent when you need to operate across brands, route purchases, process real rewards, or build automated AI workflows.

What Can the Agent Do?

Public (No Auth Required) — 27 Tools

CapabilityExample Tool
Discover brandsrsnc_agent_list_brands, rsnc_agent_check_brand, rsnc_agent_brand_rankings
Browse perksrsnc_agent_browse_perks
View leaderboardsrsnc_agent_leaderboard
Network analyticsrsnc_agent_network_analytics, rsnc_agent_brand_analytics, rsnc_agent_brand_health
Compare brandsrsnc_agent_compare_brands, rsnc_agent_compare_cashback
Route purchasesrsnc_agent_route_purchase
Find best dealsrsnc_agent_best_deals
Estimate ROIrsnc_agent_estimate_roi
Perk intelligencersnc_agent_perk_intelligence, rsnc_agent_perk_audience, rsnc_agent_brand_audience
Network intelligencersnc_agent_network_flows, rsnc_agent_network_trending
AI suggestionsrsnc_agent_suggest_events, rsnc_agent_suggest_perks

Authenticated (Agent Key Required) — 18 Tools

CapabilityExample Tool
Check user balancesrsnc_agent_user_balance, rsnc_agent_user_portfolio
Process rewardsrsnc_agent_process_event, rsnc_agent_process_bulk
Redeem perksrsnc_agent_redeem_perk
Stack dealsrsnc_agent_stack_deals
Next goal nudgesrsnc_agent_next_goal
Onboard brandsrsnc_agent_onboard_brand
Manage events & perksrsnc_agent_create_event, rsnc_agent_create_perk
Agent rewardsrsnc_agent_my_rewards, rsnc_agent_claim_reward
User intelligencersnc_agent_user_persona, rsnc_agent_user_recommendations
Natural languagePOST /converse (pro/enterprise tier)

45 Tools, 4 Resources, 6 Prompts

  • 45 tools across 17 modules — discovery, brand, user, reward, perks, leaderboard, growth, onboarding, analytics, management, agent rewards, comparison, commerce routing, recommendations, intelligence, network intelligence, suggestions
  • 4 resources — network config, brands guide, capabilities, pricing
  • 6 prompts — analyze_brand, explore_category, user_activity, setup_brand, network_overview, compare_brands

Tools Reference | REST API | CLI | Authentication

Architecture

AI Assistant / Agent / Script / CLI
|
|--- MCP (POST /mcp) → Streamable HTTP for AI tool calling
|--- REST (GET/POST /api/v1) → Standard HTTP for any language
|--- CLI (rsnc <command>) → Terminal & scripting via REST
|--- A2A (POST /tasks/send) → Agent-to-Agent protocol
|--- Converse (POST /converse)→ Natural language queries
|
v
Reward Agent (Cloudflare Worker)
| HMAC / RFC 9421 / OAuth auth, rate limiting, KV caching
v
Resonance Backend
|--- Event Handler (api.rsnc.network)
|--- Shared Services (services.rsnc.network)
|--- Supabase (agent keys, analytics RPC)
|--- Workers AI (intelligence, suggestions, converse)
v
Soneium Blockchain (wallet creation, RSNC distribution)

Protocol Support

  • MCP — Model Context Protocol for AI tool calling
  • REST — Standard HTTP API at /api/v1/* for any language or platform
  • ERC-8004 — Registered server discovery at /registration.json
  • A2A — Agent-to-Agent protocol at /.well-known/a2a/agent-card
  • UCP — Universal Commerce Protocol at /.well-known/ucp

Routes

MethodPathPurpose
POST/mcpMCP tool calls
GET/mcpSSE stream for notifications
DELETE/mcpSession termination
GET/POST/PATCH/api/v1/*REST API (45 endpoints)
POST/converseNatural language queries
POST/tasks/sendA2A task execution
GET/tasks/{id}A2A task retrieval
GET/.well-known/a2a/agent-cardA2A AgentCard (signed)
GET/.well-known/ucpUCP capability discovery
GET/.well-known/jwksEd25519 public keys (JWKS)
GET/.well-known/agent.jsonStatic MCP AgentCard
GET/registration.jsonERC-8004 server registration
GET/healthHealth check

Authentication

Three auth methods can be combined:

MethodPurposeUse When
HMAC-SHA256Agent/brand identityDirect API access, loyalty operations
RFC 9421 Ed25519Payment network identityVisa TAP, Mastercard Agent Pay
OAuth 2.0 BearerUser identityUser-linked operations (balance, rewards)

See Authentication | OAuth | RFC 9421

Rate Limits

TypeLimit
Public (unauthenticated)100 requests/minute per IP
Authenticated20 requests/minute per agent key (configurable)

Next Steps

  1. Getting Started — Connect your AI assistant
  2. Tools Reference — All 45 tools documented
  3. REST API — Standard HTTP endpoints for any language
  4. CLI Reference — Terminal access via rsnc commands
  5. Converse — Natural language queries
  6. Authentication — HMAC signing and API keys
  7. A2A Protocol — Agent-to-Agent integration
  8. ACP Sidecar — Agentic commerce integration
  9. Examples — Real conversation examples