Home / Servers / DigitalOcean API / functions_create_trigger

Create Trigger

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

Create Trigger Creates a new trigger for a given function in a namespace. To create a trigger, send a POST request to /v2/functions/namespaces/$NAMESPACE_ID/triggers with the name, function, type, is_enabled and… [POST /v2/functions/namespaces/{namespace_id}/triggers]

Name on the gateway: digitalocean_api__functions_create_trigger · may change things.

Parameters

NameTypeDescription
namespace_id requiredstringThe ID of the namespace to be managed.
name requiredstringThe trigger's unique name within the namespace.
function requiredstringName of function(action) that exists in the given namespace.
type requiredstringOne of different type of triggers. Currently only SCHEDULED is supported.
is_enabled requiredbooleanIndicates weather the trigger is paused or unpaused.
scheduled_details requiredobjectTrigger details for SCHEDULED type, where body is optional.

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__functions_create_trigger",
  "arguments": {
    "namespace_id": "…",
    "name": "…",
    "function": "…",
    "type": "…",
    "is_enabled": true,
    "scheduled_details": "…"
  }
}

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 create trigger tool with namespace_id set to ….

More from DigitalOcean API