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
| Name | Type | Description |
|---|---|---|
namespace_id required | string | The ID of the namespace to be managed. |
name required | string | The trigger's unique name within the namespace. |
function required | string | Name of function(action) that exists in the given namespace. |
type required | string | One of different type of triggers. Currently only SCHEDULED is supported. |
is_enabled required | boolean | Indicates weather the trigger is paused or unpaused. |
scheduled_details required | object | Trigger 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:
{
"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:
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 ….