360 Secure SkillHub
360 安全技能中心

crontap-schedule-http-job

该 Skill 指导用户用自然语言或 cron 配置 Crontap 定时 HTTP 请求,设置时区、请求头、JSON 体和幂等键,并预览运行时间、更新计划、查看执行历史。支持 MCP 为主、Ultra 账户 REST 备用,强调凭据安全与端点结果核验。

Crontap
热度 0.00
最近更新 2026-10-19 02:14:08
分类:自动化依赖:MCP 服务 / 第三方 API应用场景:工作流 / 日程安排 / API 集成 / DevOps

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add crontap/skills/crontap-schedule-http-job
Metadata
name
crontap-schedule-http-job
description
Create, update, and verify recurring Crontap HTTP requests with cron or plain English, timezones, headers, and JSON bodies. Use when a user wants to schedule a webhook, API call, or cloud function through MCP or REST.
license
MIT
metadata
{"version":"1.0.0","group":"main","order":2,"title":"Schedule an HTTP job","summary":"Turn any API endpoint, webhook, or cloud function into a recurring request with timing verified before launch.","bestFor":"Webhooks, API calls, and cloud functions","guide":"https://crontap.com/cron-job-monitoring","guideTitle":"Cron job monitoring","tools":"create_schedule,update_schedule,preview_schedule,get_schedule_history"}

Schedule an HTTP job

Prerequisites

Before using the required tools, check whether they are available. If any are missing, stop and offer the user exactly two choices:

  1. Connect Crontap MCP at https://mcp.crontap.com/mcp. MCP access works on every Crontap tier.
  2. Configure $CRONTAP_CLIENT_ID and $CRONTAP_API_KEY for the raw API. Raw API access requires Ultra.

Do not silently choose a path or continue until the user selects one.

  • Confirm the absolute HTTP or HTTPS endpoint, method, cadence, and IANA timezone.
  • Ask whether the endpoint needs headers, a JSON body, or an idempotency key.
  • Keep credentials out of URLs and logs. Refer to values from a secure store.

Workflow

  1. Preview plain-English cadence and resolve every clarification.
  2. Show the resolved cron, timezone, and next runs to the user.
  3. Create the schedule with exactly one of text or cron.
  4. For changes, identify the existing schedule and send only changed fields.
  5. After execution, inspect retained history and verify the endpoint outcome.

MCP examples

Preview without saving:

{
  "tool": "preview_schedule",
  "arguments": {
    "text": "every weekday at 09:15",
    "timezone": "Europe/Copenhagen"
  }
}

Create a protected JSON request:

{
  "tool": "create_schedule",
  "arguments": {
    "url": "https://app.example.com/api/daily-report",
    "text": "every weekday at 09:15",
    "timezone": "Europe/Copenhagen",
    "method": "POST",
    "headers": {
      "Authorization": "Bearer <secret-from-secure-store>",
      "Content-Type": "application/json"
    },
    "body": {
      "source": "crontap"
    },
    "label": "Daily report"
  }
}

Partially update a schedule:

{
  "tool": "update_schedule",
  "arguments": {
    "scheduleId": "<schedule-id>",
    "cron": "30 9 * * 1-5",
    "timezone": "Europe/Copenhagen"
  }
}

Omitted update fields preserve the existing configuration, including hidden request secrets. An empty headers object replaces and clears headers.

Read recent runs:

{
  "tool": "get_schedule_history",
  "arguments": {
    "scheduleId": "<schedule-id>",
    "limit": 20
  }
}

Use a returned cursor unchanged to request the next page.

REST fallback

Use REST only when MCP is unavailable and the account has Ultra API access. REST uses interval, verb, and data instead of the MCP aliases.

curl --fail-with-body https://api.crontap.com/v1/schedule \
  -X POST \
  -H "ClientId: $CRONTAP_CLIENT_ID" \
  -H "ApiKey: $CRONTAP_API_KEY" \
  -H "Content-Type: application/json" \
  --data '{
    "url": "https://app.example.com/api/daily-report",
    "interval": "30 9 * * 1-5",
    "timezone": "Europe/Copenhagen",
    "verb": "POST",
    "headers": {
      "Authorization": "Bearer <secret-from-secure-store>",
      "Content-Type": "application/json"
    },
    "data": {"source": "crontap"},
    "label": "Daily report"
  }'

Verification

  • Confirm the saved URL, method, cron, timezone, and next runs.
  • Verify the endpoint handles the selected method and returns a success status.
  • Inspect history after the first run for status, duration, timeout, and retry evidence.

Safety and plan limits

  • Preview local-time schedules before creating them, especially around DST.
  • Do not overwrite headers or integrations during an unrelated partial update.
  • Make write endpoints idempotent when retries or overlapping calls are possible.
  • If a plan cap or cadence floor blocks creation, explain the structured four-option upgrade ladder and its smallest viable option.

Troubleshooting

  • A clarification response is not a failure. Ask the returned question, then preview again.
  • A 401 or 403 from the target usually means an expired or malformed endpoint credential.
  • A timeout means Crontap did not receive a response in time. Check endpoint runtime and downstream calls before increasing retries.
  • A 404 from MCP means the schedule ID is stale. List schedules before retrying.

References