cron402

v1.1.1
io.github.userdefault13/cron402-mcp Checked 1 day ago Published 2 months ago

Schedule webhook calls, pay per run in USDC on Base via x402.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

cron402_guide

READ THIS FIRST before using any other cron402 tool. Free, no payment. Returns the exact step-by-step procedure for scheduling a recurring webhook, what each tool costs, and the rules you must follow.

check_wallet

Free. Check the cron402 payment wallet before spending: returns the address, network, USDC balance, ETH balance for gas, and how many runs it can afford. Call this before create_cron or topup_cron.

preview_schedule

Free, no payment. Turn a schedule into a validated cron expression and show the next 5 run times in UTC. Accepts plain English like 'every 15 minutes' or 'every weekday at 9am', or a 5-field cron expression. ALWAYS call this before create_cron and show the user the result.

ParameterTypeDescription
schedule *stringPlain English ('every 15 minutes', 'every day at 09:00', 'every monday at 5pm', 'weekly') or a 5-field cron expression ('*/15 * * * *').
timezonestringIANA timezone of any time-of-day in the schedule, e.g. 'America/New_York'. Omit if the user gave the time in UTC.

create_cron

PAID: spends $0.008 USDC. Create a scheduled job that calls a webhook URL on a repeating schedule. Call this ONCE per request — calling it twice creates two jobs and charges twice. Run preview_schedule first. Returns a jobId you must report to the user. The job is created with 1 run credit, so it fires once and then stops unless you call topup_cron.

ParameterTypeDescription
schedule *stringPlain English ('every 15 minutes', 'every weekday at 9am') or a 5-field cron expression. Validated locally before any payment is made.
url *stringPublic HTTPS URL to call on every fire. localhost will never work.
bodystringRequest body sent on every fire (POST only).
headersobjectExtra request headers, e.g. an authorization token for the target.
methodstring
notifyUrlstringOptional. Receives a POST with the result after every fire.
timezonestringIANA timezone for a time-of-day in the schedule, e.g. 'Europe/Berlin'.

topup_cron

PAID: spends $0.008 per credit ($0.008 / $0.08 / $0.80). Add prepaid run credits to an existing job. Each credit pays for one fire. Also reactivates a job that ran out of credits. Call ONCE — repeating it charges again.

ParameterTypeDescription
jobId *stringThe job id returned by create_cron.
pack *numberHow many run credits to buy: 1, 10, or 100.

get_cron

Free. Get one job's current status, remaining credits, next run time, and its last 20 executions with HTTP status codes and errors. Use this to answer 'is my cron working?'.

ParameterTypeDescription
jobId *stringThe job id returned by create_cron.

list_crons

Free. List the cron jobs created from this machine with this wallet, with each one's live status and remaining credits. Use this when the user asks what is scheduled or you have lost a job id.

pause_cron

Free. Stop a job from firing without deleting it. Credits are kept. Signs an EIP-712 authorization with the configured wallet — only the wallet that paid for the job can do this.

ParameterTypeDescription
jobId *stringThe job id returned by create_cron.

resume_cron

Free. Start a paused job firing again. The job needs at least 1 credit — if it is 'exhausted', call topup_cron instead. Signs an EIP-712 authorization with the configured wallet.

ParameterTypeDescription
jobId *stringThe job id returned by create_cron.

delete_cron

Free but PERMANENT and irreversible: deletes a job forever and does not refund unused credits. Confirm with the user before calling. If they only want it to stop for now, use pause_cron instead.

ParameterTypeDescription
jobId *stringThe job id returned by create_cron.