{"uid":"cap_9608ByaNlOIO9CTpIxKKm","slug":"loyal-spark-create-reward-ad900e4e","name":"Loyal Spark Create Reward","description":"Onchain loyalty protocol on Base L2. Launch B20 rewards, earn and redeem tokens, trade P2P, automate with AI agents via REST and MCP.","url":"https://api.loyalspark.online/x402-gateway/mcp-tools/create_reward","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","toolName","inputSchema"],"properties":{"type":{"type":"string","const":"mcp"},"example":{"type":"object"},"toolName":{"type":"string"},"transport":{"enum":["streamable-http","sse"],"type":"string"},"description":{"type":"string"},"inputSchema":{"type":"object"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{}}}}},"responseSchema":{"type":"json"},"example":{"request":{"id":1,"method":"tools/call","params":{"name":"get_platform_info","arguments":{}},"jsonrpc":"2.0"},"response":{"id":1,"result":{"content":[{"text":"{\"name\":\"Loyal Spark\",\"chain\":\"Base L2\",\"chain_id\":8453,\"token_standard\":\"ERC-20\",\"features\":[\"loyalty_programs\",\"rewards\",\"marketplace\",\"tiers\",\"referrals\",\"vouchers\",\"analytics\"],\"api_docs\":\"https://loyalspark.online/api-docs\"}","type":"text"}]},"jsonrpc":"2.0"}},"exampleRequest":{"id":1,"method":"tools/call","params":{"name":"get_platform_info","arguments":{}},"jsonrpc":"2.0"},"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_LkJQi3NMyeycYaOkYJzWP","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Creates a new ERC-20 loyalty reward token on Base L2 for a loyalty program via the Loyal Spark onchain protocol","exampleAgentPrompt":"Launch a new loyalty rewards token on Loyal Spark for my coffee shop Morning Bloom — call the token 'Morning Bloom Rewards' with symbol 'MBR' and set it up so customers can earn and redeem it onchain.","exampleUseCases":null,"resultDescription":"Returns a JSON object containing the newly deployed ERC-20 reward token contract address on Base L2, the reward program ID, transaction hash, and configuration details confirming the loyalty program has been created onchain.","failureModes":["Insufficient USDC for the $0.01 per-call fee — payment fails via x402 protocol","Invalid token name or symbol format — returns validation error","Base L2 network congestion causing transaction timeout","Duplicate token symbol conflict — returns conflict error","Missing required reward configuration parameters — returns 400 bad request","Smart contract deployment failure on Base L2 — returns blockchain error"],"whenToPreferThis":"Use this endpoint when you need to programmatically deploy a new ERC-20 loyalty reward token on Base L2 as part of setting up a customer loyalty program. Prefer this over manual token deployment tools when building AI-automated loyalty systems or integrating onchain rewards into existing business workflows via REST or MCP.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T12:50:23.384Z","isFirstParty":false}