service_create
Adds a web, worker or cron service. Helm7 detects the framework from the repo and picks a build; you only need to override when detection is wrong. A service has no execution time limit, so long jobs do not need splitting.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"productId": "<productId>",
"name": "<name>",
"kind": "<kind>"
},
"name": "service_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | web receives HTTP traffic and can hold a domain. worker runs continuously with no ingress. cron runs on a schedule and exits. | |
| name | Yes | ||
| path | No | Cron only. A path on one of your web services, such as /api/cron/digest. The cron then calls it on the schedule instead of running a container: no repo or image, nothing to build. The call is made from inside that service, so it does not cross the public internet or time out at 100 seconds, and it carries Authorization: Bearer $CRON_SECRET (created for the environment if it has none). | |
| repo | No | Git URL. Required unless image is given. | |
| image | No | Container image reference, as an alternative to building from a repo. | |
| branch | No | main | |
| method | No | Cron with a path only. | GET |
| target | No | Cron with a path only. The name of the web service to call. Defaults to the only web service, or the one called web. | |
| confirm | No | Required for destructive operations. Without it a destructive call returns its plan and refuses, exactly as dry_run would. | |
| dry_run | No | Return the plan without applying it: the resources it would create, change or destroy, and an estimated monthly cost. Free, and has no side effects. Call this before any change you have not made before. | |
| instance | No | vCPU allocation. shared tiers sleep when idle and wake on request in a few seconds; standard tiers stay running. | shared-0.25 |
| schedule | No | Cron expression. Required when kind is cron, ignored otherwise. | |
| productId | Yes | Product identifier, e.g. prd_7k2m9x4qw1nv8bz3ct6d. | |
| environment | No | Environment within a Product. Every Product has production; preview and development are optional. pr-<number> is the preview of an open pull request, made and removed by the GitHub integration on Pro. | |
| public_ports | No | Web or worker. Raw TCP to publish, alongside any HTTP a web service serves, on the platform's public address, for protocols the HTTP ingress cannot carry, such as SMTP submission. Only ports 465 and 587 are offered. The process listens on container_port (1024 or above) and clients connect to port. A deploy of a service with public ports stops the old run first, because a host port has one owner, so expect a few seconds of refused connections. | |
| root_directory | No | Subdirectory to build from, for monorepos. | |
| idempotency_key | No | Replaying the same key returns the original result instead of acting twice. Strongly recommended for anything that creates a resource or spends money. | |
| build_only_on_changes | No | With root_directory: skip a push-triggered build when the push changed nothing under it. See service_update. |