# Loyal Spark – Generate Program Defaults

> Loyal Spark – Generate Program Defaults is a paid API for AI agents from api.loyalspark.online, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Generates sensible default configuration parameters for a new onchain loyalty rewards program on Base L2

## Facts

- Endpoint: POST https://api.loyalspark.online/x402-gateway/mcp-tools/generate_program_defaults
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/loyal-spark-generate-program-defaults-e4d1fa45
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_X5KJOz4-lu30reB-QURDl

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability loyal-spark-generate-program-defaults-e4d1fa45 -d '<json body>'
```

Example prompt: I want to launch an onchain loyalty program for my coffee shop called 'Morning Bloom' — can you generate smart default settings for me, including a token name, symbol, and reward rates, using Loyal Spark?

## When to prefer this

Use this endpoint when bootstrapping a new onchain loyalty program and you want AI-generated, contextually appropriate default parameters rather than configuring everything manually. It is ideal for agentic workflows that need to rapidly initialize program settings before deployment, or for business onboarding flows where the user wants sensible starting points without deep tokenomics expertise.

## Known failure modes

- Missing or invalid business context inputs may return generic or poorly tailored defaults
- Payment failure (insufficient USDC balance) results in 402 response before processing
- Malformed request body returns 400 validation error
- Downstream Base L2 connectivity issues may cause timeout or 503 error
- Rate limiting if too many requests are made in quick succession

## How this service works

Onchain loyalty protocol on Base L2. Launch B20 rewards, earn and redeem tokens, trade P2P, automate with AI agents via REST and MCP.

## Output

A JSON object containing recommended default parameters for a new loyalty program, such as token name, token symbol, reward earn rates, redemption thresholds, expiry rules, and other program configuration fields appropriate for the business context provided.

## Request schema (JSON Schema)

```json
{
 "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": {}
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/loyal-spark-generate-program-defaults-e4d1fa45/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.loyalspark.online](https://www.zero.xyz/host/api.loyalspark.online/llms.txt)
