Skip to main content
Glama

auto_scale_service

Scale up a service automatically by doubling CPU and/or memory when resource usage exceeds specified thresholds, with adjustable caps to control maximum allocation.

Instructions

Auto-scale a service based on current system resource usage. Doubles CPU and/or memory (capped at max_cpu/max_memory) when usage exceeds the given thresholds; otherwise makes no change.

Args: service_id: Service ID cpu_threshold: CPU usage % above which to scale up memory_threshold: Memory usage % above which to scale up max_cpu: Maximum CPU cores to scale to max_memory: Maximum memory (MB) to scale to

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
max_cpuNo
max_memoryNo
service_idYes
cpu_thresholdNo
memory_thresholdNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv2.0.0

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the behavioral burden and does well: it discloses the doubling policy, the caps via max_cpu/max_memory, and the no-change condition. It does not mention potential side effects such as service restarts or permission requirements, but the core mutation semantics are clear.

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 compact and well-structured: a one-sentence summary of the core policy, a one-sentence behavioral detail, then a tight Args list. No redundant elaboration.

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 five-parameter tool with an output schema, the description covers the action, thresholds, caps, and all parameters, making correct invocation possible. The main gap is the lack of routing guidance against scale_service and side-effect caveats, but these are not required for a basic correct call.

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

Parameters5/5

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

The input schema has 0% description coverage, so the description must supply meaning. It defines all five parameters with units or roles: CPU usage %, memory %, max CPU cores, max memory in MB, and service identifier. This fully compensates for the schema gap.

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 names a specific action (auto-scale), a resource (service), and the exact behavior: it doubles CPU and/or memory up to caps when thresholds are exceeded, otherwise makes no change. This specificity distinguishes it from the generic sibling scale_service even though no sibling is named.

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?

It implies use for threshold-based, resource-driven scaling and states the trigger condition ('when usage exceeds the given thresholds'), but it never explicitly says when to prefer this over scale_service or when not to use it. No exclusions or alternative guidance is provided.

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

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/dannymaaz/easypanel-mcp'

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