Skip to main content
Glama

Manage services

service
Destructive

Change the project's services (services.json) and run them. action "set": add a service, or change one (the fields given are merged into its definition; a new one needs type web|api|worker|cron|static). Fields: dev = preview command, build, start = production command, port, healthcheck_path, env, schedule for cron, dir and spa for static. The file is validated and reloaded, and invalid definitions are refused with the reason. "remove": delete a service. "restart": restart one (or start one that was stopped). "stop": stop one preview service for a while, e.g. the dev server while a build needs its memory; it stays stopped until "restart", or until the workspace sleeps and wakes. "run": run a service's command once now and return its output (it isn't written to the service's log).

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": {
      "project": "<project>",
      "action": "<action>",
      "name": "<name>"
    },
    "name": "service"
  }
}

Input Schema

NameRequiredDescriptionDefault
devNo
dirNo
envNo
spaNo
nameYes
poolNo
portNo
testNo
typeNo
buildNo
startNo
actionYes
backupNoA command that writes a clean copy of a database LazyFrog doesn't manage (MariaDB, MySQL) to /data/.lazyfrog/clean/ before each snapshot
projectYesProject slug or id.
scheduleNo
environmentNorestart: which environment (default preview). "production" restarts a live service, e.g. a worker that crashed. stop is the preview's only.
idempotency_keyNoAny unique string; repeating a call with the same key does not repeat its effect.
healthcheck_pathNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Beyond the annotations (destructiveHint=true, readOnlyHint=false, idempotentHint=false), the description discloses that the file is validated and reloaded with invalid definitions refused plus a reason, and that run output is returned but not written to the service's log. It does not spell out the consequence of remove (whether data, logs or volumes are destroyed), which matters for a tool flagged destructive.

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?

The scope statement is front-loaded, then each action is introduced with its quoted name, which makes it easy to scan against the action enum. It is dense with parenthetical clauses, but given five actions and ten-plus fields, nearly every sentence carries information.

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 an 18-parameter destructive tool with no output schema, the description covers the mutation model (merge on set, validation with refusal reasons), the lifecycle semantics of stop/restart, and that run returns output directly. Gaps remain on remove's destructive scope, the idempotency_key behavior (which conflicts with idempotentHint=false), and environment handling for non-restart actions.

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 description coverage is only 22%, so the description must carry the load, and it does for most meaningful fields: dev, build, start, port, healthcheck_path, env, schedule (cron), dir/spa (static), and the required type enum values. It leaves pool, test, and the merge-versus-replace behavior for unchanged fields undocumented, so it does not fully compensate.

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

Purpose5/5

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

The opening states a specific verb and resource ('Change the project's services (services.json) and run them') and then enumerates five distinct actions (set/remove/restart/stop/run) with concrete semantics for each. An agent can distinguish this from sibling tools like service_status or exec without opening any schema.

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

Usage Guidelines4/5

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

Each action carries a when-to-use rationale: stop is for temporarily freeing memory (e.g. dev server during a build) and lasts until restart or workspace sleep/wake; restart also starts a stopped service; run is for one-off command execution. It stops short of naming sibling alternatives (service_status, exec, deploy) that an agent might otherwise pick.

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