{
  "notice": "bxzxxr MCP archive: a record of what public MCP servers declared when we listed them (we never call their tools). It is data, not a rating: nothing here says a server is safe, secure, verified or trustworthy, and a server can change after we looked. Secrets we detected are redacted; redacted tool lists are withheld and only their hash is shown.",
  "infrastructure": {
    "host": "api.loyalspark.online",
    "site": "loyalspark.online",
    "addresses": [
      {
        "address": "172.67.161.109",
        "endpoints": 2,
        "shared_infrastructure": false,
        "network": null
      },
      {
        "address": "104.21.90.215",
        "endpoints": 2,
        "shared_infrastructure": false,
        "network": null
      },
      {
        "address": "2606:4700:3033::6815:5ad7",
        "endpoints": 2,
        "shared_infrastructure": false,
        "network": null
      },
      {
        "address": "2606:4700:3032::ac43:a16d",
        "endpoints": 2,
        "shared_infrastructure": false,
        "network": null
      }
    ],
    "addresses_recorded": true,
    "address_history": [
      {
        "addresses": [
          "172.67.161.109",
          "104.21.90.215",
          "2606:4700:3033::6815:5ad7",
          "2606:4700:3032::ac43:a16d"
        ],
        "first_seen": "2026-11-22T19:20:04.241Z",
        "last_seen": "2026-11-22T19:20:04.241Z",
        "checks": 1
      },
      {
        "addresses": [
          "104.21.90.215",
          "172.67.161.109",
          "2606:4700:3032::ac43:a16d",
          "2606:4700:3033::6815:5ad7"
        ],
        "first_seen": "2026-11-21T14:54:01.219Z",
        "last_seen": "2026-11-21T14:54:01.219Z",
        "checks": 1
      }
    ],
    "hosting": [
      {
        "value": "Cloudflare",
        "evidence": "Server header \"cloudflare\""
      }
    ],
    "software": [],
    "server_info": {
      "name": "loyal-spark-mcp",
      "version": "1.0.5",
      "protocol_version": "2025-06-18"
    },
    "headers": {
      "server": "cloudflare",
      "strict-transport-security": "max-age=31536000; includeSubDomains; preload",
      "access-control-allow-origin": "*"
    },
    "auth": null
  },
  "related": {
    "same_address": {
      "total": 1,
      "sample": [
        {
          "id": "27634",
          "url": "https://api.loyalspark.online/recipient-loyalty-mcp",
          "server_name": "io.github.aspekt19/loyal-spark-recipient",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T19:21:01.911Z"
        }
      ]
    },
    "same_site": {
      "total": 1,
      "sample": [
        {
          "id": "27634",
          "url": "https://api.loyalspark.online/recipient-loyalty-mcp",
          "server_name": "io.github.aspekt19/loyal-spark-recipient",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T19:21:01.911Z"
        }
      ]
    },
    "same_tool_list": {
      "total": 0,
      "sample": []
    },
    "same_publisher": {
      "publisher": "io.github.aspekt19",
      "total": 1,
      "sample": [
        {
          "name": "io.github.aspekt19/loyal-spark-recipient",
          "title": "Loyal Spark Holder"
        }
      ]
    },
    "same_repository": null,
    "note": "Shared addresses on big platforms (Cloudflare, Vercel and the like) put unrelated servers together; those are marked shared_infrastructure. A match is a pivot, not a link between operators."
  },
  "endpoint": {
    "id": "27633",
    "server_name": "io.github.aspekt19/loyal-spark",
    "url": "https://api.loyalspark.online/loyalty-mcp",
    "host": "api.loyalspark.online",
    "transport": "streamable-http",
    "last_checked_at": "2026-11-22T19:20:04.241Z",
    "last_state": "listed",
    "last_detail": null,
    "consecutive_failures": 0,
    "current_sha": "7c626106ca55f4b6155492e8ead3f9a0b8178f1a2d6b12de8844421a05090fe1",
    "first_listed_at": "2026-11-21T14:54:01.219Z",
    "created_at": "2026-11-21T09:15:05.700Z",
    "resolved_addresses": [
      "172.67.161.109",
      "104.21.90.215",
      "2606:4700:3033::6815:5ad7",
      "2606:4700:3032::ac43:a16d"
    ]
  },
  "server": {
    "name": "io.github.aspekt19/loyal-spark",
    "title": "Loyal Spark",
    "description": "43 MCP tools for onchain loyalty on Base: programs, minting, rewards, vouchers. x402 or lsk_ key.",
    "version": "1.0.5",
    "registry_status": "active",
    "repository_url": null,
    "website_url": "https://loyalspark.online/for-agents",
    "published_at": "2026-11-18T16:55:08.000Z",
    "updated_at": "2026-11-18T16:55:08.000Z",
    "first_seen": "2026-11-21T09:15:05.417Z"
  },
  "other_endpoints": [],
  "intel": {
    "capabilities": [
      "reads-chain",
      "x402"
    ],
    "evm_addresses": [],
    "chains": [
      "base"
    ],
    "tokens": [
      "USDC"
    ],
    "computed_at": "2026-11-22T15:42:11.369Z"
  },
  "operator": {
    "key": "loyalspark.online",
    "name": "loyalspark.online",
    "platform": false,
    "marketplace": false
  },
  "needs_sign_in": false,
  "reachability": {
    "window_days": 30,
    "checks": 2,
    "answered": 2,
    "answered_percent": 100,
    "avg_listing_latency_ms": 1504,
    "first_check_in_window": "2026-11-21T14:54:01.219Z",
    "consecutive_failures_now": 0,
    "days": [
      {
        "day": "2026-11-21",
        "checks": 1,
        "answered": 1,
        "last_state": "listed"
      },
      {
        "day": "2026-11-22",
        "checks": 1,
        "answered": 1,
        "last_state": "listed"
      }
    ]
  },
  "tool_list": {
    "sha256": "7c626106ca55f4b6155492e8ead3f9a0b8178f1a2d6b12de8844421a05090fe1",
    "tools": 43,
    "resources": 0,
    "prompts": 0,
    "first_seen": "2026-11-21T14:54:02.471Z",
    "tool_names": [
      "get_platform_info",
      "get_my_profile",
      "get_payment_info",
      "generate_program_defaults",
      "get_program_workflow_status",
      "list_loyalty_programs",
      "create_loyalty_program",
      "register_loyalty_program",
      "activate_loyalty_program",
      "update_program_status",
      "update_program_config",
      "list_rewards",
      "create_reward",
      "mint_loyalty_tokens",
      "transfer_loyalty_tokens",
      "earn_points",
      "confirm_mint_fee",
      "list_mints",
      "list_fee_obligations",
      "get_token_balance",
      "get_program_analytics",
      "list_marketplace_offers",
      "redeem_reward",
      "use_voucher",
      "check_voucher_status",
      "create_personalized_offer",
      "update_reward_status",
      "send_report",
      "list_my_reports",
      "update_report_status",
      "delete_report",
      "export_customers",
      "list_store_discount_codes",
      "update_store_discount_code",
      "set_store_sales_channel",
      "create_gift_certificate",
      "list_gift_certificates",
      "revoke_gift_certificate",
      "mark_gift_certificate_minted",
      "bazaar_discover_resources",
      "bazaar_discover_mcp_servers",
      "bazaar_probe_x402",
      "bazaar_pay_and_call"
    ],
    "declared": {
      "tools": [
        {
          "name": "get_platform_info",
          "title": "Get Platform Info",
          "description": "Get info about Loyal Spark protocol on Base L2",
          "inputSchema": {
            "type": "object",
            "properties": {}
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_my_profile",
          "title": "Get My Profile",
          "description": "Get authenticated agent's profile, plan limits, and current-period usage",
          "inputSchema": {
            "type": "object",
            "properties": {}
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_payment_info",
          "title": "Get Payment Info",
          "description": "Free: agent Pro/Enterprise (or merchant) plan options, USDC subscription wallet, per-plan limits, annual prices, and the required-sender rule. Optional product=agent|merchant. Prefer this before paying; verify with POST /verify-agent-plan-payment action verify_payment.",
          "inputSchema": {
            "type": "object",
            "properties": {
              "product": {
                "type": "string",
                "description": "\"agent\" (default) or \"merchant\""
              }
            }
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "generate_program_defaults",
          "title": "Generate Program Defaults",
          "description": "Workflow planner: field catalog, required parameters, next_actions, and non-binding examples. External agents must choose their own name, symbol, and economics.",
          "inputSchema": {
            "type": "object",
            "properties": {
              "locale": {
                "type": "string",
                "description": "Optional locale/language hint for example names (e.g. en, ru)"
              },
              "category": {
                "type": "string",
                "description": "Optional business category (e.g. cafe, retail)"
              },
              "description": {
                "type": "string",
                "description": "Optional short business description for examples"
              },
              "business_name": {
                "type": "string",
                "description": "Optional merchant / brand name for example suggestions"
              },
              "preferred_style": {
                "type": "string",
                "description": "Optional naming style hint for examples (e.g. playful, premium)"
              },
              "target_audience": {
                "type": "string",
                "description": "Optional audience hint for examples (e.g. locals, tourists)"
              }
            }
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_program_workflow_status",
          "title": "Get Program Workflow Status",
          "description": "Explain the next merchant action: current_step, required fields, and ordered next_actions (you provide all parameter values)",
          "inputSchema": {
            "type": "object",
            "properties": {
              "token_address": {
                "type": "string",
                "description": "Optional token to inspect"
              }
            }
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "list_loyalty_programs",
          "title": "List Loyalty Programs",
          "description": "List loyalty programs owned by the agent's merchant",
          "inputSchema": {
            "type": "object",
            "properties": {
              "include_expired": {
                "type": "boolean",
                "description": "Include expired programs"
              }
            }
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "create_loyalty_program",
          "title": "Create Loyalty Program",
          "description": "Get factory calldata to deploy a new loyalty token on Base. Defaults to B20 (Base-native B20 asset standard, ERC-20 compatible, single tx, active immediately). Pass token_standard='erc20' for the legacy factory. For B20, MINT_ROLE is granted atomically to the merchant admin AND to the agent's CDP wallet (or explicit extra_minters) so autonomous agents can mint with no follow-up transaction.",
          "inputSchema": {
            "type": "object",
            "required": [
              "name",
              "symbol"
            ],
            "properties": {
              "name": {
                "type": "string",
                "description": "Program name (required for external agents)"
              },
              "locale": {
                "type": "string",
                "description": "Optional locale/language hint for auto_generate examples"
              },
              "symbol": {
                "type": "string",
                "description": "Token symbol, 2-5 chars (required for external agents)"
              },
              "auto_generate": {
                "type": "boolean",
                "description": "Internal automation only — fills missing name/symbol from examples. External agents should pass explicit name and symbol."
              },
              "extra_minters": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "(B20 only) Extra addresses to grant MINT_ROLE atomically in the same deploy tx."
              },
              "token_standard": {
                "type": "string",
                "description": "'b20' (default, single-tx deploy on Base precompile factory) or 'erc20' (legacy factory, requires activate_loyalty_program follow-up)"
              },
              "expiration_days": {
                "type": "number",
                "description": "Program duration in days (default: 365)"
              },
              "preferred_style": {
                "type": "string",
                "description": "Optional naming style hint when auto_generate fills examples"
              },
              "target_audience": {
                "type": "string",
                "description": "Optional audience hint for auto_generate examples"
              },
              "business_context": {
                "type": "object",
                "description": "Optional context for examples only"
              },
              "agent_wallet_address": {
                "type": "string",
                "description": "(B20 only) Additional wallet to grant MINT_ROLE atomically. Defaults to the agent's active CDP MPC wallet if not provided."
              }
            }
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "register_loyalty_program",
          "title": "Register Loyalty Program",
          "description": "Register a deployed token as a loyalty program in the database. B20 tokens are registered as active; legacy ERC-20 as inactive (activate next).",
          "inputSchema": {
            "type": "object",
            "required": [
              "name",
              "symbol",
              "token_address"
            ],
            "properties": {
              "name": {
                "type": "string",
                "description": "Program name"
              },
              "symbol": {
                "type": "string",
                "description": "Token symbol"
              },
              "cashback_rate": {
                "type": "number",
                "description": "Default cashback percent for earn (1–100). Omit for DB default (5)."
              },
              "token_address": {
                "type": "string",
                "description": "Deployed token contract address (0x...)"
              },
              "token_standard": {
                "type": "string",
                "description": "'b20' (default) or 'erc20' (legacy)"
              },
              "expiration_days": {
                "type": "number",
                "description": "Duration in days (default: 365)"
              },
              "points_per_dollar": {
                "type": "number",
                "description": "Loyalty points per $1 spent (1–1000). Omit for DB default (1)."
              }
            }
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "activate_loyalty_program",
          "title": "Activate Loyalty Program",
          "description": "For legacy ERC-20 programs: returns unpauseUtility + enableMinting calldata. For B20 programs: no-op (already active).",
          "inputSchema": {
            "type": "object",
            "required": [
              "token_address"
            ],
            "properties": {
              "token_address": {
                "type": "string",
                "description": "Token contract address (0x...)"
              }
            }
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "update_program_status",
          "title": "Update Program Status",
          "description": "Update program status in database after onchain activation/pause",
          "inputSchema": {
            "type": "object",
            "required": [
              "token_address",
              "status"
            ],
            "properties": {
              "status": {
                "type": "string",
                "description": "New status: active, paused, or inactive"
              },
              "token_address": {
                "type": "string",
                "description": "Token contract address"
              }
            }
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "update_program_config",
          "title": "Update Program Config",
          "description": "Update default cashback_rate and/or points_per_dollar for a program (same as merchant dashboard sliders)",
          "inputSchema": {
            "type": "object",
            "anyOf": [
              {
                "required": [
                  "cashback_rate"
                ]
              },
              {
                "required": [
                  "points_per_dollar"
                ]
              }
            ],
            "required": [
              "token_address"
            ],
            "properties": {
              "cashback_rate": {
                "type": "number",
                "description": "New default cashback % for earn (1–100). Omit to leave unchanged."
              },
              "token_address": {
                "type": "string",
                "description": "Token contract address (0x...)"
              },
              "points_per_dollar": {
                "type": "number",
                "description": "New points per $1 (0–1000, exclusive 0). Omit to leave unchanged."
              }
            }
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "list_rewards",
          "title": "List Rewards",
          "description": "List rewards for a loyalty program by token_address. Includes redemption metrics (total vouchers issued, redeemed, and last-30-day counts) for each reward.",
          "inputSchema": {
            "type": "object",
            "required": [
              "token_address"
            ],
            "properties": {
              "token_address": {
                "type": "string",
                "description": "Token contract address (0x...)"
              }
            }
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "create_reward",
          "title": "Create Reward",
          "description": "Create a new reward redeemable with loyalty tokens",
          "inputSchema": {
            "type": "object",
            "required": [
              "token_address",
              "name",
              "cost"
            ],
            "properties": {
              "cost": {
                "type": "number",
                "description": "Token cost to redeem"
              },
              "name": {
                "type": "string",
                "description": "Reward name"
              },
              "description": {
                "type": "string",
                "description": "Reward description"
              },
              "token_address": {
                "type": "string",
                "description": "Token contract address"
              }
            }
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "mint_loyalty_tokens",
          "title": "Mint Loyalty Tokens",
          "description": "Record a mint intent and get a fee-first calls[] bundle: protocol fee mint first (in the merchant's own loyalty tokens, not USDC), then the recipient mint. Submit both in order (atomically via EIP-5792 if supported), then call confirm_mint_fee with obligation_id, fee_tx_hash, recipient_tx_hash. Unconfirmed fees block future mints. recipient_address takes a 0x Base wallet or a customer email (or use recipient_email); the wallet is resolved server-side.",
          "inputSchema": {
            "type": "object",
            "anyOf": [
              {
                "required": [
                  "recipient_address"
                ]
              },
              {
                "required": [
                  "recipient"
                ]
              },
              {
                "required": [
                  "recipient_email"
                ]
              }
            ],
            "required": [
              "token_address",
              "amount"
            ],
            "properties": {
              "amount": {
                "type": "number",
                "description": "Tokens to mint"
              },
              "recipient": {
                "type": "string",
                "description": "Legacy alias for recipient_address (0x address or email)"
              },
              "token_address": {
                "type": "string",
                "description": "Token contract address"
              },
              "recipient_email": {
                "type": "string",
                "description": "Customer email address to resolve to their Base wallet"
              },
              "recipient_address": {
                "type": "string",
                "description": "Customer 0x Base wallet address or customer email receiving minted tokens. Preferred — matches REST."
              }
            }
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "transfer_loyalty_tokens",
          "title": "Transfer Loyalty Tokens",
          "description": "Build B20 token transfer calldata (ERC-20 compatible) to send loyalty tokens from your merchant wallet to any 0x address. Recipient: to (alias to_address).",
          "inputSchema": {
            "type": "object",
            "anyOf": [
              {
                "required": [
                  "to"
                ]
              },
              {
                "required": [
                  "to_address"
                ]
              }
            ],
            "required": [
              "token_address",
              "amount"
            ],
            "properties": {
              "to": {
                "type": "string",
                "description": "Recipient wallet (0x...)"
              },
              "amount": {
                "type": "number",
                "description": "Tokens to transfer"
              },
              "to_address": {
                "type": "string",
                "description": "Alias for to (same as REST POST /transfer to_address)"
              },
              "token_address": {
                "type": "string",
                "description": "Token contract address (0x...)"
              }
            }
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "earn_points",
          "title": "Earn Points",
          "description": "Mint cashback tokens for a purchase at the program's cashback rate, optionally redeeming points first (points_to_redeem or redeem_all) to lower the payable amount. Returns a fee-first calls[] bundle (protocol fee mint, then the customer mint): submit in order (atomically via EIP-5792 if supported), then call confirm_mint_fee with obligation_id, fee_tx_hash, recipient_tx_hash. Unconfirmed fees block future mints.",
          "inputSchema": {
            "type": "object",
            "required": [
              "token_address",
              "customer_address",
              "purchase_amount"
            ],
            "properties": {
              "redeem_all": {
                "type": "boolean",
                "description": "If true, redeems all available customer loyalty points (up to purchase_amount when positive)."
              },
              "cashback_rate": {
                "type": "number",
                "description": "Override cashback rate (%). If omitted, uses the program's default rate."
              },
              "token_address": {
                "type": "string",
                "description": "Token contract address (0x...)"
              },
              "customer_email": {
                "type": "string",
                "description": "Customer email address"
              },
              "purchase_amount": {
                "type": "number",
                "description": "Purchase amount in currency units (e.g. dollars)"
              },
              "customer_address": {
                "type": "string",
                "description": "Customer wallet (0x...) or email address"
              },
              "points_to_redeem": {
                "type": "number",
                "description": "Optional integer loyalty points to redeem at the counter to reduce purchase_amount."
              }
            }
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "confirm_mint_fee",
          "title": "Confirm Mint Fee",
          "description": "Confirm a prepared mint on Base. Verifies the protocol-fee mint and, when recipient_tx_hash is set (or the fee receipt already contains the recipient mint), writes customer_tier_status so get_token_balance leaves 0. Same hash for both fields when EIP-5792 batched the calls. A second call with recipient_tx_hash still credits the customer after the fee is already settled.",
          "inputSchema": {
            "type": "object",
            "required": [
              "obligation_id",
              "fee_tx_hash"
            ],
            "properties": {
              "fee_tx_hash": {
                "type": "string",
                "description": "Transaction hash of the protocol fee mint"
              },
              "obligation_id": {
                "type": "string",
                "description": "fee_obligation_id returned by mint_loyalty_tokens or earn_points"
              },
              "mint_intent_id": {
                "type": "string",
                "description": "Optional mint_intent_id from the mint response; links this exact intent when several pending mints share token, recipient and amount."
              },
              "recipient_tx_hash": {
                "type": "string",
                "description": "Transaction hash of the mint to the recipient. Same as fee_tx_hash when both mints are in one transaction. Required to update GET /balance."
              }
            }
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "list_mints",
          "title": "List Mints",
          "description": "List mint intents for this merchant. status=pending means transaction_hash is still null (confirm has not credited the recipient). status=completed means the recipient mint was recorded. GET /balance offchain_ledger_balance stays 0 until confirm.",
          "inputSchema": {
            "type": "object",
            "properties": {
              "status": {
                "type": "string",
                "description": "pending or completed"
              },
              "token_address": {
                "type": "string",
                "description": "Optional loyalty token"
              }
            }
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "list_fee_obligations",
          "title": "List Fee Obligations",
          "description": "List protocol-fee obligations for this API key. status=unpaid is an alias for pending. Each unpaid row includes next_action describing POST /mint/confirm.",
          "inputSchema": {
            "type": "object",
            "properties": {
              "status": {
                "type": "string",
                "description": "unpaid, pending, settled, or failed"
              }
            }
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_token_balance",
          "title": "Get Token Balance",
          "description": "Get loyalty token balance and tier info for a customer (accepts 0x Base wallet address or customer email in customer_address / customer_email)",
          "inputSchema": {
            "type": "object",
            "required": [
              "token_address",
              "customer_address"
            ],
            "properties": {
              "token_address": {
                "type": "string",
                "description": "Token contract address"
              },
              "customer_address": {
                "type": "string",
                "description": "Customer 0x Base wallet address or customer email"
              }
            }
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_program_analytics",
          "title": "Get Program Analytics",
          "description": "Get analytics for one of your loyalty programs. total_customers is the same count export_customers and GET /customers report; a program you do not own returns program_not_found.",
          "inputSchema": {
            "type": "object",
            "required": [
              "token_address"
            ],
            "properties": {
              "token_address": {
                "type": "string",
                "description": "Token contract address (0x...)"
              }
            }
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "list_marketplace_offers",
          "title": "List Marketplace Offers",
          "description": "List active token trading offers on the marketplace",
          "inputSchema": {
            "type": "object",
            "properties": {
              "limit": {
                "type": "number",
                "description": "Max results (1-100)"
              },
              "status": {
                "type": "string",
                "description": "Filter: active/completed/cancelled"
              },
              "token_address": {
                "type": "string",
                "description": "Optional. When set, only offers that give or ask for this token."
              }
            }
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "redeem_reward",
          "title": "Redeem Reward",
          "description": "Redeem a reward by providing a verified token transfer transaction hash. Creates a voucher for the customer.",
          "inputSchema": {
            "type": "object",
            "required": [
              "reward_id",
              "customer_address",
              "transaction_hash"
            ],
            "properties": {
              "reward_id": {
                "type": "string",
                "description": "UUID of the reward to redeem"
              },
              "customer_address": {
                "type": "string",
                "description": "Wallet address of the customer who transferred tokens"
              },
              "transaction_hash": {
                "type": "string",
                "description": "Onchain tx hash of the token transfer from customer to merchant"
              }
            }
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "use_voucher",
          "title": "Use Voucher",
          "description": "Mark a voucher as used at the merchant. Send one of voucher_code (alias code) or voucher_id (anyOf). If neither is sent the tool returns error_code missing_identifier and an example. A voucher used before returns error_code voucher_already_used (do not retry).",
          "inputSchema": {
            "type": "object",
            "anyOf": [
              {
                "required": [
                  "voucher_code"
                ]
              },
              {
                "required": [
                  "code"
                ]
              },
              {
                "required": [
                  "voucher_id"
                ]
              }
            ],
            "properties": {
              "code": {
                "type": "string",
                "description": "Alias of voucher_code."
              },
              "voucher_id": {
                "type": "string",
                "description": "Voucher UUID. Use this OR voucher_code."
              },
              "voucher_code": {
                "type": "string",
                "description": "Voucher code (LOYAL-XXXX-XXXX-XXXX-XXXX). Use this OR voucher_id."
              }
            }
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": true
          }
        },
        {
          "name": "check_voucher_status",
          "title": "Check Voucher Status",
          "description": "Check voucher status for this merchant. Send one of code, voucher_code, or voucher_id (anyOf). If none is sent the tool returns error_code missing_identifier, an example, and next_action. Anonymous public lookup is GET /agent-api/vouchers/status.",
          "inputSchema": {
            "type": "object",
            "anyOf": [
              {
                "required": [
                  "code"
                ]
              },
              {
                "required": [
                  "voucher_id"
                ]
              },
              {
                "required": [
                  "voucher_code"
                ]
              }
            ],
            "properties": {
              "code": {
                "type": "string",
                "description": "Voucher code (LOYAL-XXXX-XXXX-XXXX-XXXX). One of code, voucher_code, or voucher_id is required."
              },
              "voucher_id": {
                "type": "string",
                "description": "Voucher UUID. One of code, voucher_code, or voucher_id is required."
              },
              "voucher_code": {
                "type": "string",
                "description": "Alias of code. One of code, voucher_code, or voucher_id is required."
              }
            }
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "create_personalized_offer",
          "title": "Create Personalized Offer",
          "description": "Create a personalized offer for a specific customer. Use when analytics reveal engagement patterns (e.g., inactive customers, high-value segments).",
          "inputSchema": {
            "type": "object",
            "required": [
              "token_address",
              "customer_address",
              "title"
            ],
            "properties": {
              "title": {
                "type": "string",
                "description": "Offer title (e.g., 'Welcome back! 20% bonus tokens')"
              },
              "valid_days": {
                "type": "number",
                "description": "How many days the offer is valid (default: 7)"
              },
              "description": {
                "type": "string",
                "description": "Offer description"
              },
              "bonus_tokens": {
                "type": "number",
                "description": "Bonus tokens to award"
              },
              "token_address": {
                "type": "string",
                "description": "Token contract address"
              },
              "customer_address": {
                "type": "string",
                "description": "Customer wallet address"
              },
              "discount_percentage": {
                "type": "number",
                "description": "Discount percentage (0-100)"
              }
            }
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "update_reward_status",
          "title": "Update Reward Status",
          "description": "Activate or deactivate a reward in the catalog. Use to manage reward availability based on analytics.",
          "inputSchema": {
            "type": "object",
            "required": [
              "reward_id",
              "is_active"
            ],
            "properties": {
              "is_active": {
                "type": "boolean",
                "description": "true to activate, false to deactivate"
              },
              "reward_id": {
                "type": "string",
                "description": "UUID of the reward"
              }
            }
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "send_report",
          "title": "Send Report",
          "description": "Internal. Send a report to the merchant's Agent Reports dashboard (SEO audits, growth ideas, anomalies, weekly summaries). Not a loyalty action.",
          "inputSchema": {
            "type": "object",
            "required": [
              "agent_role",
              "report_type",
              "title",
              "content"
            ],
            "properties": {
              "title": {
                "type": "string",
                "description": "Report title (max 500 chars)"
              },
              "content": {
                "type": "string",
                "description": "Report body text (max 10000 chars)"
              },
              "priority": {
                "type": "string",
                "description": "Priority: low, medium, high, or critical"
              },
              "agent_role": {
                "type": "string",
                "description": "Your role: ceo, seo, growth, or analyst"
              },
              "report_type": {
                "enum": [
                  "seo_audit",
                  "audit",
                  "growth_idea",
                  "data_report",
                  "anomaly",
                  "task",
                  "recommendation",
                  "weekly_report"
                ],
                "type": "string",
                "description": "One of: seo_audit, audit, growth_idea, data_report, anomaly, task, recommendation, weekly_report. Anything else is rejected (400 invalid_input), not renamed."
              },
              "action_items": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "List of suggested action items"
              }
            }
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "list_my_reports",
          "title": "List My Reports",
          "description": "Internal. List reports this agent submitted (status new, reviewed, or done).",
          "inputSchema": {
            "type": "object",
            "properties": {
              "limit": {
                "type": "number",
                "description": "Max results 1-50 (default: 20)"
              },
              "status": {
                "type": "string",
                "description": "Filter by status: new, reviewed, done (optional)"
              }
            }
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "update_report_status",
          "title": "Update Report Status",
          "description": "Internal. Set a report you submitted to reviewed or done.",
          "inputSchema": {
            "type": "object",
            "required": [
              "report_id",
              "status"
            ],
            "properties": {
              "status": {
                "type": "string",
                "description": "New status: reviewed or done"
              },
              "report_id": {
                "type": "string",
                "description": "UUID of the report"
              }
            }
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "delete_report",
          "title": "Delete Report",
          "description": "Internal. Delete a report you submitted.",
          "inputSchema": {
            "type": "object",
            "required": [
              "report_id"
            ],
            "properties": {
              "report_id": {
                "type": "string",
                "description": "UUID of the report to delete"
              }
            }
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": true
          }
        },
        {
          "name": "export_customers",
          "title": "Export Customers",
          "description": "Export customers of one of your loyalty programs: the same wallet set and total_customers as GET /customers and get_program_analytics (voucher holders, ledger rows, completed mints), each with voucher stats, on-chain current_balance plus offchain_ledger_balance, and tier. Email-only store customers are listed in store_customers.",
          "inputSchema": {
            "type": "object",
            "required": [
              "token_address"
            ],
            "properties": {
              "token_address": {
                "type": "string",
                "description": "Token address of the loyalty program"
              }
            }
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "list_store_discount_codes",
          "title": "List Store Discount Codes",
          "description": "List discount codes for this merchant's Shopify store, plus how customers spend points (online code, register voucher, or both).",
          "inputSchema": {
            "type": "object",
            "properties": {
              "token_address": {
                "type": "string",
                "description": "Program address. Omit to list every linked store."
              }
            }
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "update_store_discount_code",
          "title": "Update Store Discount Code",
          "description": "Mark a Shopify discount code used, or cancel it and return the loyalty points. Same actions as the merchant discount-code journal.",
          "inputSchema": {
            "type": "object",
            "required": [
              "redemption_id",
              "action"
            ],
            "properties": {
              "action": {
                "type": "string",
                "description": "use or cancel"
              },
              "redemption_id": {
                "type": "string",
                "description": "Id from list_store_discount_codes."
              }
            }
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "set_store_sales_channel",
          "title": "Set Store Sales Channel",
          "description": "Set how this store's customers spend loyalty points: online (checkout code), offline (voucher at the register), or both (the shopper chooses).",
          "inputSchema": {
            "type": "object",
            "required": [
              "channel"
            ],
            "properties": {
              "channel": {
                "type": "string",
                "description": "online, offline, or both"
              }
            }
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "create_gift_certificate",
          "title": "Create Gift Certificate",
          "description": "Create a gift / welcome certificate (UDS-style) with a unique random redemption code (LOYAL-XXXX-XXXX-XXXX). Customer redeems via QR or by entering the code; merchant then mints tokens on-chain. Use for welcome bonuses, promo campaigns, partnership gifts.",
          "inputSchema": {
            "type": "object",
            "required": [
              "token_address",
              "usd_amount"
            ],
            "properties": {
              "title": {
                "type": "string",
                "description": "Display title (default: 'Gift Certificate')"
              },
              "quantity": {
                "type": "number",
                "description": "Number of certificates to create as a batch (1–100, default 1)"
              },
              "image_url": {
                "type": "string",
                "description": "Optional public image URL for the cert design"
              },
              "usd_amount": {
                "type": "number",
                "description": "Certificate face value in USD (positive)"
              },
              "description": {
                "type": "string",
                "description": "Optional descriptive text shown to the customer"
              },
              "token_address": {
                "type": "string",
                "description": "ERC-20 loyalty token address (must belong to the agent's merchant)"
              },
              "expires_in_days": {
                "type": "number",
                "description": "Validity period in days (omit for no expiry)"
              },
              "points_per_dollar": {
                "type": "number",
                "description": "Optional override of program rate (e.g. 10 = 10 tokens per $1). Defaults to program's points_per_dollar."
              },
              "max_redemption_percent": {
                "type": "number",
                "description": "Max % of any future purchase the customer can pay with these tokens (5–100). Default 50."
              }
            }
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "list_gift_certificates",
          "title": "List Gift Certificates",
          "description": "List gift certificates issued by the agent's merchant (with status and redemption info).",
          "inputSchema": {
            "type": "object",
            "properties": {
              "limit": {
                "type": "number",
                "description": "Max rows (default 50, max 200)"
              },
              "status": {
                "type": "string",
                "description": "Filter by status: active, pending_mint, redeemed, expired, revoked"
              },
              "token_address": {
                "type": "string",
                "description": "Filter by program token address (optional)"
              }
            }
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "revoke_gift_certificate",
          "title": "Revoke Gift Certificate",
          "description": "Revoke an active gift certificate (status active -> revoked). Only the issuing merchant can revoke. Already-redeemed/minted certificates cannot be revoked.",
          "inputSchema": {
            "type": "object",
            "required": [
              "certificate_id"
            ],
            "properties": {
              "certificate_id": {
                "type": "string",
                "description": "UUID of the certificate from create_gift_certificate / list_gift_certificates"
              }
            }
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": true
          }
        },
        {
          "name": "mark_gift_certificate_minted",
          "title": "Mark Gift Certificate Minted",
          "description": "After the merchant submits the on-chain mint transaction for a claimed gift certificate, call this to mark it as minted (status pending_mint -> redeemed) and store the mint tx hash.",
          "inputSchema": {
            "type": "object",
            "required": [
              "certificate_id",
              "transaction_hash"
            ],
            "properties": {
              "certificate_id": {
                "type": "string",
                "description": "UUID of the certificate"
              },
              "transaction_hash": {
                "type": "string",
                "description": "Base L2 mint transaction hash (0x...)"
              }
            }
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "bazaar_discover_resources",
          "title": "Bazaar Discover Resources",
          "description": "Discover third-party x402-paid resources published in Coinbase CDP's Bazaar (docs, data feeds, AI inference, etc). Read-only. Filter by free-text q and/or network (e.g. 'base').",
          "inputSchema": {
            "type": "object",
            "properties": {
              "q": {
                "type": "string",
                "description": "Free-text filter matched against the resource JSON (name/description/url)"
              },
              "limit": {
                "type": "number",
                "description": "Max rows returned (default 25, max 100)"
              },
              "cursor": {
                "type": "string",
                "description": "Pagination cursor from a previous call"
              },
              "network": {
                "type": "string",
                "description": "Filter by network, e.g. 'base' or 'base-sepolia'"
              }
            }
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "bazaar_discover_mcp_servers",
          "title": "Bazaar Discover MCP Servers",
          "description": "Search Coinbase CDP's Bazaar MCP catalog (search_resources) for third-party x402-payable tools. Read-only, free. Rows are run via the Bazaar MCP server's proxy_tool_call, not here.",
          "inputSchema": {
            "type": "object",
            "properties": {
              "q": {
                "type": "string",
                "description": "Search text, e.g. 'weather' or 'loyalty'"
              },
              "limit": {
                "type": "number",
                "description": "Max rows (default 20, max 20)"
              },
              "cursor": {
                "type": "string",
                "description": "Ignored: CDP search has no cursor. Narrow with q/network."
              },
              "network": {
                "type": "string",
                "description": "Network: 'base', 'base-sepolia', or CAIP-2 like 'eip155:8453'"
              }
            }
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "bazaar_probe_x402",
          "title": "Bazaar Probe x402",
          "description": "Probe one x402 resource URL without paying: a single GET (https only, 5 s, 64 KB, no redirects). If it answers HTTP 402, returns a parsed summary of the x402 payment requirements (PAYMENT-REQUIRED header or accepts[]). Any other status returns error not_x402_resource with the status only: the response body is never returned. No signing. No API key needed: keyless calls are limited to 20/minute per IP; with a key the key's own limits apply.",
          "inputSchema": {
            "type": "object",
            "required": [
              "url"
            ],
            "properties": {
              "url": {
                "type": "string",
                "description": "Full https:// URL of the x402-paid endpoint"
              }
            }
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "bazaar_pay_and_call",
          "title": "Bazaar Pay And Call",
          "description": "Pay a Loyal Spark x402 URL on api.loyalspark.online with the merchant agent's CDP MPC wallet (EIP-3009 exact scheme, Base USDC). Other hosts are refused before any signature. Requires scope 'mint' and an active CDP wallet. max_usdc default 0.25, hard limit 10.",
          "inputSchema": {
            "type": "object",
            "required": [
              "url"
            ],
            "properties": {
              "url": {
                "type": "string",
                "description": "Full https:// URL of the x402 resource"
              },
              "body": {
                "description": "Optional JSON request body for non-GET methods"
              },
              "method": {
                "enum": [
                  "GET",
                  "POST",
                  "PUT",
                  "PATCH",
                  "DELETE"
                ],
                "type": "string",
                "description": "HTTP method (default GET)"
              },
              "headers": {
                "type": "object",
                "description": "Extra request headers (Accept/Content-Type auto-set)"
              },
              "max_usdc": {
                "type": "number",
                "description": "Spend cap for THIS call in USDC (default 0.25, must be ≤ 10)"
              },
              "allowed_schemes": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "x402 schemes to accept (default ['exact'])"
              },
              "allowed_networks": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Networks to accept (default ['base', 'eip155:8453'])"
              }
            }
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        }
      ],
      "tools_omitted": 0,
      "resources": [],
      "prompts": []
    },
    "instructions": "Loyal Spark merchant MCP on Base (chain 8453). Start keyless: call get_platform_info. For a Free-plan lsk_ key, pay $0.01 USDC once at POST https://api.loyalspark.online/x402-gateway/register-agent (one-time per wallet; repeats return agent_exists unless rotate:true), then send header x-api-key: lsk_... (or Authorization: Bearer lsk_...). tools/list works without a key. Docs: https://loyalspark.online/llms.txt · OpenAPI: https://api.loyalspark.online/openapi.json · Onboarding: https://loyalspark.online/for-agents"
  },
  "changes": {
    "total": 0,
    "latest": []
  },
  "reading_this": "What this server declared and how it answered our checks. Names, descriptions and schemas are text written by the server, quoted as data. Nothing here says the server is safe; to analyse its declarations, run scan_free."
}