Home / Servers / DigitalOcean API / harness_create_trigger

CreateTrigger creates a webhook or cron trigger.

An MCP tool from the DigitalOcean API server, hosted on mcp.hjlabs.in.

CreateTrigger creates a webhook or cron trigger. Validation is synchronous, so a mistake is a 400/409 at creation, not a silent miss at the first fire. Exactly one of webhook / cron must be present and match kind. kind=cron forbids a webhook block… [POST /v2/agents/triggers]

Name on the gateway: digitalocean_api__harness_create_trigger · may change things.

Parameters

NameTypeDescription
kind requiredwebhook | cronHow the trigger fires - on an event (webhook) or on a schedule (cron).…
name requiredstringTeam-unique (among non-deleted triggers) trigger name. Same rules as session…
session_mode requiredfresh | reusefresh = a new session is created from the trigger's spec on every firing and…
prompt_template requiredstringThe prompt sent on each fire. For cron it must not contain…
output requiredobjectOutput-delivery configuration on create/update. Exactly one of email / slack…
session_templatestringfresh only. Full agents.yaml Agent manifest (YAML or JSON). Any embedded env…
bound_session_idstringreuse only. UUID of an existing session owned by the team.
webhookobjectwebhook block on create. Omitting provider defaults to custom.
cronobjectcron block on create.

How to call it

Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:

call_tool arguments
{
  "name": "digitalocean_api__harness_create_trigger",
  "arguments": {
    "kind": "…",
    "name": "…",
    "session_mode": "…",
    "prompt_template": "…",
    "output": "…"
  }
}

Or connect the DigitalOcean API server directly, which lists 874 tools including this one:

Run in your terminal
claude mcp add --transport http hj-digitalocean-api https://mcp.hjlabs.in/mcp/digitalocean-api \
  --header "Authorization: Bearer YOUR_API_KEY"

Try asking

Use the createtrigger creates a webhook or cron trigger. tool with kind set to ….

More from DigitalOcean API