Loyal Spark is an MCP server published by io.github.aspekt19, hosted at api.loyalspark.online. When last checked on 2026-11-22 it was working: it answers and lists its tools. It declares 43 tools, including get_platform_info, get_my_profile, get_payment_info, generate_program_defaults, get_program_workflow_status.
43 MCP tools for onchain loyalty on Base: programs, minting, rewards, vouchers. x402 or lsk_ key.
3 connections through 4 shared values. Tap any node.
Squares are this server's values; dots are other servers sharing them. A shared address or publisher is a lead, not proof of a common operator.
Inferred from the host name and headers: what a server runs on, not who runs it.
Get info about Loyal Spark protocol on Base L2
No parameters.
{
"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
}
}Get authenticated agent's profile, plan limits, and current-period usage
No parameters.
{
"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
}
}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.
| Parameter | Type | Description |
|---|---|---|
| product | string | "agent" (default) or "merchant" |
{
"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
}
}Workflow planner: field catalog, required parameters, next_actions, and non-binding examples. External agents must choose their own name, symbol, and economics.
| Parameter | Type | Description |
|---|---|---|
| locale | string | Optional locale/language hint for example names (e.g. en, ru) |
| category | string | Optional business category (e.g. cafe, retail) |
| description | string | Optional short business description for examples |
| business_name | string | Optional merchant / brand name for example suggestions |
| preferred_style | string | Optional naming style hint for examples (e.g. playful, premium) |
| target_audience | string | Optional audience hint for examples (e.g. locals, tourists) |
{
"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
}
}Explain the next merchant action: current_step, required fields, and ordered next_actions (you provide all parameter values)
| Parameter | Type | Description |
|---|---|---|
| token_address | string | Optional token to inspect |
{
"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
}
}List loyalty programs owned by the agent's merchant
| Parameter | Type | Description |
|---|---|---|
| include_expired | boolean | Include expired programs |
{
"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
}
}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.
| Parameter | Type | Description |
|---|---|---|
| name * | string | Program name (required for external agents) |
| locale | string | Optional locale/language hint for auto_generate examples |
| symbol * | string | Token symbol, 2-5 chars (required for external agents) |
| auto_generate | boolean | Internal automation only — fills missing name/symbol from examples. External agents should pass explicit name and symbol. |
| extra_minters | array | (B20 only) Extra addresses to grant MINT_ROLE atomically in the same deploy tx. |
| token_standard | string | 'b20' (default, single-tx deploy on Base precompile factory) or 'erc20' (legacy factory, requires activate_loyalty_program follow-up) |
| expiration_days | number | Program duration in days (default: 365) |
| preferred_style | string | Optional naming style hint when auto_generate fills examples |
Register a deployed token as a loyalty program in the database. B20 tokens are registered as active; legacy ERC-20 as inactive (activate next).
| Parameter | Type | Description |
|---|---|---|
| name * | string | Program name |
| symbol * | string | Token symbol |
| cashback_rate | number | Default cashback percent for earn (1–100). Omit for DB default (5). |
| token_address * | string | Deployed token contract address (0x...) |
| token_standard | string | 'b20' (default) or 'erc20' (legacy) |
| expiration_days | number | Duration in days (default: 365) |
| points_per_dollar | number | Loyalty points per $1 spent (1–1000). Omit for DB default (1). |
{
"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
}
}For legacy ERC-20 programs: returns unpauseUtility + enableMinting calldata. For B20 programs: no-op (already active).
| Parameter | Type | Description |
|---|---|---|
| token_address * | string | Token contract address (0x...) |
{
"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
}
}Update program status in database after onchain activation/pause
| Parameter | Type | Description |
|---|---|---|
| status * | string | New status: active, paused, or inactive |
| token_address * | string | Token contract address |
{
"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
}
}Update default cashback_rate and/or points_per_dollar for a program (same as merchant dashboard sliders)
| Parameter | Type | Description |
|---|---|---|
| cashback_rate | number | New default cashback % for earn (1–100). Omit to leave unchanged. |
| token_address * | string | Token contract address (0x...) |
| points_per_dollar | number | New points per $1 (0–1000, exclusive 0). Omit to leave unchanged. |
{
"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
}
}List rewards for a loyalty program by token_address. Includes redemption metrics (total vouchers issued, redeemed, and last-30-day counts) for each reward.
| Parameter | Type | Description |
|---|---|---|
| token_address * | string | Token contract address (0x...) |
{
"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
}
}Create a new reward redeemable with loyalty tokens
| Parameter | Type | Description |
|---|---|---|
| cost * | number | Token cost to redeem |
| name * | string | Reward name |
| description | string | Reward description |
| token_address * | string | Token contract address |
{
"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
}
}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.
| Parameter | Type | Description |
|---|---|---|
| amount * | number | Tokens to mint |
| recipient | string | Legacy alias for recipient_address (0x address or email) |
| token_address * | string | Token contract address |
| recipient_email | string | Customer email address to resolve to their Base wallet |
| recipient_address | string | Customer 0x Base wallet address or customer email receiving minted tokens. Preferred — matches REST. |
{
"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
}
}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).
| Parameter | Type | Description |
|---|---|---|
| to | string | Recipient wallet (0x...) |
| amount * | number | Tokens to transfer |
| to_address | string | Alias for to (same as REST POST /transfer to_address) |
| token_address * | string | Token contract address (0x...) |
{
"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
}
}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.
| Parameter | Type | Description |
|---|---|---|
| redeem_all | boolean | If true, redeems all available customer loyalty points (up to purchase_amount when positive). |
| cashback_rate | number | Override cashback rate (%). If omitted, uses the program's default rate. |
| token_address * | string | Token contract address (0x...) |
| customer_email | string | Customer email address |
| purchase_amount * | number | Purchase amount in currency units (e.g. dollars) |
| customer_address * | string | Customer wallet (0x...) or email address |
| points_to_redeem | number | Optional integer loyalty points to redeem at the counter to reduce purchase_amount. |
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.
| Parameter | Type | Description |
|---|---|---|
| fee_tx_hash * | string | Transaction hash of the protocol fee mint |
| obligation_id * | string | fee_obligation_id returned by mint_loyalty_tokens or earn_points |
| mint_intent_id | string | Optional mint_intent_id from the mint response; links this exact intent when several pending mints share token, recipient and amount. |
| recipient_tx_hash | string | 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. |
{
"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
}
}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.
| Parameter | Type | Description |
|---|---|---|
| status | string | pending or completed |
| token_address | string | Optional loyalty token |
{
"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
}
}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.
| Parameter | Type | Description |
|---|---|---|
| status | string | unpaid, pending, settled, or failed |
{
"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
}
}Get loyalty token balance and tier info for a customer (accepts 0x Base wallet address or customer email in customer_address / customer_email)
| Parameter | Type | Description |
|---|---|---|
| token_address * | string | Token contract address |
| customer_address * | string | Customer 0x Base wallet address or customer email |
{
"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
}
}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.
| Parameter | Type | Description |
|---|---|---|
| token_address * | string | Token contract address (0x...) |
{
"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
}
}List active token trading offers on the marketplace
| Parameter | Type | Description |
|---|---|---|
| limit | number | Max results (1-100) |
| status | string | Filter: active/completed/cancelled |
| token_address | string | Optional. When set, only offers that give or ask for this token. |
{
"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
}
}Redeem a reward by providing a verified token transfer transaction hash. Creates a voucher for the customer.
| Parameter | Type | Description |
|---|---|---|
| reward_id * | string | UUID of the reward to redeem |
| customer_address * | string | Wallet address of the customer who transferred tokens |
| transaction_hash * | string | Onchain tx hash of the token transfer from customer to merchant |
{
"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
}
}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).
| Parameter | Type | Description |
|---|---|---|
| code | string | Alias of voucher_code. |
| voucher_id | string | Voucher UUID. Use this OR voucher_code. |
| voucher_code | string | Voucher code (LOYAL-XXXX-XXXX-XXXX-XXXX). Use this OR voucher_id. |
{
"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
}
}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.
| Parameter | Type | Description |
|---|---|---|
| code | string | Voucher code (LOYAL-XXXX-XXXX-XXXX-XXXX). One of code, voucher_code, or voucher_id is required. |
| voucher_id | string | Voucher UUID. One of code, voucher_code, or voucher_id is required. |
| voucher_code | string | Alias of code. One of code, voucher_code, or voucher_id is required. |
{
"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
}
}Create a personalized offer for a specific customer. Use when analytics reveal engagement patterns (e.g., inactive customers, high-value segments).
| Parameter | Type | Description |
|---|---|---|
| title * | string | Offer title (e.g., 'Welcome back! 20% bonus tokens') |
| valid_days | number | How many days the offer is valid (default: 7) |
| description | string | Offer description |
| bonus_tokens | number | Bonus tokens to award |
| token_address * | string | Token contract address |
| customer_address * | string | Customer wallet address |
| discount_percentage | number | Discount percentage (0-100) |
{
"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
}
}Activate or deactivate a reward in the catalog. Use to manage reward availability based on analytics.
| Parameter | Type | Description |
|---|---|---|
| is_active * | boolean | true to activate, false to deactivate |
| reward_id * | string | UUID of the reward |
{
"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
}
}Internal. Send a report to the merchant's Agent Reports dashboard (SEO audits, growth ideas, anomalies, weekly summaries). Not a loyalty action.
| Parameter | Type | Description |
|---|---|---|
| title * | string | Report title (max 500 chars) |
| content * | string | Report body text (max 10000 chars) |
| priority | string | Priority: low, medium, high, or critical |
| agent_role * | string | Your role: ceo, seo, growth, or analyst |
| report_type * | string | 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 | array | List of suggested action items |
{
"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
}
}Internal. List reports this agent submitted (status new, reviewed, or done).
| Parameter | Type | Description |
|---|---|---|
| limit | number | Max results 1-50 (default: 20) |
| status | string | Filter by status: new, reviewed, done (optional) |
{
"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
}
}Internal. Set a report you submitted to reviewed or done.
| Parameter | Type | Description |
|---|---|---|
| status * | string | New status: reviewed or done |
| report_id * | string | UUID of the report |
{
"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
}
}Internal. Delete a report you submitted.
| Parameter | Type | Description |
|---|---|---|
| report_id * | string | UUID of the report to delete |
{
"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
}
}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.
| Parameter | Type | Description |
|---|---|---|
| token_address * | string | Token address of the loyalty program |
{
"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
}
}List discount codes for this merchant's Shopify store, plus how customers spend points (online code, register voucher, or both).
| Parameter | Type | Description |
|---|---|---|
| token_address | string | Program address. Omit to list every linked store. |
{
"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
}
}Mark a Shopify discount code used, or cancel it and return the loyalty points. Same actions as the merchant discount-code journal.
| Parameter | Type | Description |
|---|---|---|
| action * | string | use or cancel |
| redemption_id * | string | Id from list_store_discount_codes. |
{
"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
}
}Set how this store's customers spend loyalty points: online (checkout code), offline (voucher at the register), or both (the shopper chooses).
| Parameter | Type | Description |
|---|---|---|
| channel * | string | online, offline, or both |
{
"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
}
}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.
| Parameter | Type | Description |
|---|---|---|
| title | string | Display title (default: 'Gift Certificate') |
| quantity | number | Number of certificates to create as a batch (1–100, default 1) |
| image_url | string | Optional public image URL for the cert design |
| usd_amount * | number | Certificate face value in USD (positive) |
| description | string | Optional descriptive text shown to the customer |
| token_address * | string | ERC-20 loyalty token address (must belong to the agent's merchant) |
| expires_in_days | number | Validity period in days (omit for no expiry) |
| points_per_dollar | number | Optional override of program rate (e.g. 10 = 10 tokens per $1). Defaults to program's points_per_dollar. |
| max_redemption_percent | number | Max % of any future purchase the customer can pay with these tokens (5–100). Default 50. |
List gift certificates issued by the agent's merchant (with status and redemption info).
| Parameter | Type | Description |
|---|---|---|
| limit | number | Max rows (default 50, max 200) |
| status | string | Filter by status: active, pending_mint, redeemed, expired, revoked |
| token_address | string | Filter by program token address (optional) |
{
"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
}
}Revoke an active gift certificate (status active -> revoked). Only the issuing merchant can revoke. Already-redeemed/minted certificates cannot be revoked.
| Parameter | Type | Description |
|---|---|---|
| certificate_id * | string | UUID of the certificate from create_gift_certificate / list_gift_certificates |
{
"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
}
}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.
| Parameter | Type | Description |
|---|---|---|
| certificate_id * | string | UUID of the certificate |
| transaction_hash * | string | Base L2 mint transaction hash (0x...) |
{
"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
}
}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').
| Parameter | Type | Description |
|---|---|---|
| q | string | Free-text filter matched against the resource JSON (name/description/url) |
| limit | number | Max rows returned (default 25, max 100) |
| cursor | string | Pagination cursor from a previous call |
| network | string | Filter by network, e.g. 'base' or 'base-sepolia' |
{
"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
}
}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.
| Parameter | Type | Description |
|---|---|---|
| q | string | Search text, e.g. 'weather' or 'loyalty' |
| limit | number | Max rows (default 20, max 20) |
| cursor | string | Ignored: CDP search has no cursor. Narrow with q/network. |
| network | string | Network: 'base', 'base-sepolia', or CAIP-2 like 'eip155:8453' |
{
"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
}
}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.
| Parameter | Type | Description |
|---|---|---|
| url * | string | Full https:// URL of the x402-paid endpoint |
{
"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
}
}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.
| Parameter | Type | Description |
|---|---|---|
| url * | string | Full https:// URL of the x402 resource |
| body | any | Optional JSON request body for non-GET methods |
| method | string | HTTP method (default GET) |
| headers | object | Extra request headers (Accept/Content-Type auto-set) |
| max_usdc | number | Spend cap for THIS call in USDC (default 0.25, must be ≤ 10) |
| allowed_schemes | array | x402 schemes to accept (default ['exact']) |
| allowed_networks | array | Networks to accept (default ['base', 'eip155:8453']) |
{
"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
}
}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
Names, descriptions and schemas were written by the server and are shown as data.
Pattern matches on what the server declares. They show what it says it can do, not what it does.
None yet. Changes appear after a server's second daily check.
| target_audience | string | Optional audience hint for auto_generate examples |
| business_context | object | Optional context for examples only |
| agent_wallet_address | string | (B20 only) Additional wallet to grant MINT_ROLE atomically. Defaults to the agent's active CDP MPC wallet if not provided. |
{
"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": "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": "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
}
}