{
  "slug": "hello-paid-agent",
  "title": "Paid Hello Agent Tool",
  "description": "A tiny paid x402 endpoint that proves request, payment, handler execution, and receipt logging.",
  "priceUsd": 0.005,
  "pricingMode": "upto_success",
  "handlerType": "js_request_response",
  "capabilities": {
    "kv": true,
    "files": false,
    "httpGetJson": false
  },
  "handlerCode": "async function handler(req, ctx) {\n  const previous = Number(await ctx.kv.get('calls') || 0);\n  await ctx.kv.set('calls', String(previous + 1));\n  return {\n    ok: true,\n    message: `Hello from a paid x402 endpoint. This endpoint has run ${previous + 1} time(s).`,\n    input: req.body || req.query || {},\n    chargeUsd: 0.003\n  };\n}"
}
