Skip to main content
Glama

Restart an app or agent

restart_service

Restart an app's or agent's running processes, or only those of one process type. Each process stops and starts again, so requests in flight are dropped; a repeat restarts again. Restarting removes nothing. Use get_service to see when the processes are up. Websites run no process and are refused. Requires connecting a Valet account.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
kindNoThe kind you mean. Omit to restart whatever the name holds; give it to have a name holding another kind refused.
nameYesRequired. The app's or agent's name.
org_nameNoThe Valet organization it belongs to. Omit to use the organization the account joined first.
process_typeNoAn app's Procfile process type, such as web. Omit to restart every type. An agent has none.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Adds real value beyond annotations: it discloses that in-flight requests are dropped, that a repeat restarts again (reinforcing idempotentHint=false), and, critically, that restarting removes nothing (consistent with destructiveHint=false). It also states the auth prerequisite (connecting a Valet account), which no annotation conveys.

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

Conciseness5/5

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

Five tight sentences that are front-loaded with the core action and scope, followed by behavioral consequences, verification guidance, refusal cases, and auth requirement. Every sentence carries distinct information with no repetition.

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

Completeness5/5

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

For a mutation tool with no output schema, the description covers the safety profile (removes nothing, drops in-flight requests), non-idempotency, target restrictions (websites refused), auth prerequisite, and the sibling to use for verification. Nothing an agent needs to invoke it correctly is missing.

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

Parameters3/5

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

Schema description coverage is 100%, so all four parameters are already documented, including the kind enum and process_type semantics. The description only echoes the process_type scoping ('or only those of one process type') without adding syntax or format beyond the schema, so the baseline 3 applies.

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?

States a specific verb (restart) and resource (an app's/agent's running processes), plus the finer scope of a single process type. It implicitly distinguishes itself from siblings like get_service, destroy_service, and scale_service, and explicitly notes that websites are refused, so an agent knows which target classes are out of scope.

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?

Gives clear context: websites are refused, a Valet account connection is required, and get_service is named as the way to verify processes are up. It does not name a same-job alternative (there is effectively none for restart), so it stops just short of explicit when/when-not routing, but the preconditions and exclusions are well covered.

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