Skip to main content
Glama

service_update

Changes the instance size, the repository, branch or directory it builds from, whether pushes that miss that directory skip the build, the image, the schedule of a cron service, or pauses it. Size and pause take effect at once on a running service; source changes take effect on the next deploy. Returns a costed plan, because a bigger instance costs more.

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>",
      "serviceId": "<serviceId>"
    },
    "name": "service_update"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNoFor a cron that calls a web service: the path to call.
repoNoGit URL to build from. Use it after a repository is renamed or moved: the clone token is only minted for repositories the Product's GitHub installation lists, so a service still on the old URL stops cloning. Takes effect on the next deploy.
imageNo
branchNo
methodNoFor a cron that calls a web service: the HTTP method.
pausedNotrue stops the service and keeps its configuration; false starts it again on its last deployment.
targetNoFor a cron that calls a web service: the name of the web service to call.
confirmNoRequired for destructive operations. Without it a destructive call returns its plan and refuses, exactly as dry_run would.
dry_runNoReturn 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.
instanceNo
scheduleNoCron expression, for cron services only.
productIdYesProduct identifier, e.g. prd_7k2m9x4qw1nv8bz3ct6d.
serviceIdYesService identifier, e.g. svc_...
public_portsNoWeb 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_directoryNo
idempotency_keyNoReplaying 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_changesNoSkip a push-triggered build when the push changed nothing under root_directory. Needs a root_directory. Builds anyway when the push cannot be read, or changes a root lockfile, package.json or Dockerfile. Off by default, because a build uses the whole clone and a service that imports from outside its folder would go stale. Skips are recorded in activity_list and returned by the webhook.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=false, idempotentHint=false and destructiveHint=false. The description adds real signal beyond that: size and pause apply immediately while source changes take effect on the next deploy, and the call returns a costed plan. However, it omits the dry_run/confirm safety protocol and the idempotency-key recommendation for money-spending changes, which are central to invoking this safely.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences, front-loaded with the full field list and followed by the timing consequence and the return shape. The enumeration is dense but every clause maps to a distinct parameter, so little is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 17-parameter mutation tool with no output schema, the definition supplies a scope overview, effect timing, and a note that the return value is a costed plan. The remaining gaps (confirm/dry_run workflow, idempotency) are covered by detailed schema descriptions rather than the prose.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 76%, so the schema carries most parameter documentation. The description still adds semantics the schema does not: it groups which parameters apply immediately versus on the next deploy, which maps behavior onto the enum and boolean fields rather than restating them.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The verb 'Changes' is paired with a concrete enumeration of the mutable dimensions (instance size, repo, branch, root directory, build-skip behavior, image, cron schedule, pause state), so an agent can tell this is a partial-update tool for an existing service. It never names a sibling, so differentiation from service_delete or service_list is left implicit.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied by the field list: call it when you want to alter an existing service rather than create or delete one. There is no explicit when-to-use/when-not statement, no mention of prerequisites, and no pointer to alternatives such as service_create or service_delete.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources