Skip to main content
Glama

Get a service's autoscaling (HPA) settings

komuta_get_service_hpa
Read-only

Get the current horizontal autoscaling settings for one service — the same data the web console's Autoscaling page shows: enabled/disabled, min/max replicas, target CPU %, target memory %, and the scale-up/scale-down stabilization windows. Resolve the id from the NAME the user gave (via komuta_list_services) — never ask the user for an id. Returns: { serviceName, configured: boolean, settings: { mode: 'Disabled' | 'Pinned' | 'Autoscaling', isActive, minReplicas, maxReplicas, targetCPUUtilizationPercentage, targetMemoryUtilizationPercentage, scaleUpStabilizationWindowSeconds, scaleDownStabilizationWindowSeconds } | null } — settings is null when configured is false (no autoscaler exists yet). Show user: service name and every settings field in plain language (min/max replicas, target CPU %, target memory %, scale-up/scale-down windows in seconds). Describe the state from mode, never from isActive alone: Autoscaling = it scales between min and max; Pinned = it runs a fixed number of replicas (min = max) and does NOT scale, even though isActive is true; Disabled = autoscaling is off. If configured is false, say autoscaling has never been set up for this service. Never show user: serviceId and any other internal ids from the underlying payloads.

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

Input Schema

NameRequiredDescriptionDefault
serviceIdYesInternal service id, resolved from the service NAME the user gave or from local context. Never ask the user for it.
organizationNoName of the organization to act in. Omit to use the one the connection is already signed in to. Use komuta_list_organizations to see the names; pass the name text exactly as listed (the data of a { untrusted, data } name), never an id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations only declare readOnlyHint and openWorldHint; the description goes well beyond them by disclosing the null-settings edge case when configured is false, and by warning that mode (not isActive) determines state — including the non-obvious case where Pinned reports isActive true yet does not scale. It also states what must not be surfaced (serviceId and internal ids), which is behavioral guidance annotations cannot carry.

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?

Front-loaded with the purpose, then return shape, then presentation rules — a sensible ordering. The inline return-shape block and the 'Show user / Never show user' lists are long but each carries actionable instruction rather than filler.

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?

There is no output schema, so the description's job includes describing the return payload, and it does so completely, including the nullable settings branch. Combined with the state-interpretation rules, an agent has everything needed to call the tool and render an accurate answer.

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 the baseline is 3. The description repeats the schema's own 'resolve the id from the NAME, never ask the user' instruction and adds no new detail on the organization parameter, so it does not meaningfully extend parameter semantics beyond the structured fields.

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 and resource ('Get the current horizontal autoscaling settings for one service') and immediately anchors it to something concrete — the web console's Autoscaling page — while enumerating the exact fields returned (enabled/disabled, min/max replicas, target CPU/memory %, stabilization windows). This clearly separates it from the sibling writer tool komuta_set_service_hpa without needing to open either 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?

Gives explicit procedural guidance: resolve the service id from the user-supplied NAME via komuta_list_services, never ask the user for an id. It also tells the agent how to interpret and present results and what to say when configured is false. It lacks an explicit 'do not use this when you want to change settings — use komuta_set_service_hpa' statement, so it stops just short of full when/when-not coverage.

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