Skip to main content
Glama

Put a server to sleep

sleep_server

Stop an on-demand server immediately to avoid idle timeout costs, with automatic restart on next tool call.

Instructions

Stop an on-demand server immediately instead of waiting for its idle timeout. It restarts automatically on the next tool call.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
serverYesServer name from list_servers
Behavior4/5

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

With no annotations, the description carries the behavioral disclosure burden. It clearly states the immediate stop action and the important side effect that the server restarts automatically on the next tool call. It does not detail error conditions or permission requirements, but the key behavior is transparent.

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?

The description is two concise sentences with no unnecessary filler. It front-loads the primary action and then adds the crucial automatic-restart behavior, making it easy to scan.

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 simple tool with one parameter and no output schema, the description covers the essential behavior and restart semantics. It is complete enough to use effectively, though it could mention what happens if the server is already asleep or whether manual wake is needed.

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 coverage is 100% and the only parameter is already described as 'Server name from list_servers'. The description adds no extra meaning beyond the schema, so the baseline score of 3 is appropriate.

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 description states a specific action ('Stop an on-demand server immediately') with a clear resource and distinguishes itself from waiting for idle timeout. It also contrasts with the sibling wake_server by explaining the automatic restart behavior.

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?

The description gives clear context: use this when you want to stop an on-demand server immediately rather than waiting for its idle timeout. It does not explicitly list exclusions or name alternative tools, but the usage context is clear and the sibling list helps disambiguate.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ni-c/mcp-hub'

If you have feedback or need assistance with the MCP directory API, please join our Discord server