Skip to main content
Glama

Resize app memory

resize_app
DestructiveIdempotent

Change how much memory one app gets. Call this when an app is running out of memory (OOM) or the user asks to make an app bigger or smaller. memory_mb must be one of the sizes get_resource_usage reports under compute.steps_mb, and the new size has to fit your available compute pool (call get_resource_usage first). Applied with a zero-downtime rolling update. If this app has storage, it is stopped and started again instead, so it is unreachable for a few seconds.

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": {
      "app_id": "<app_id>",
      "memory_mb": "<memory_mb>"
    },
    "name": "resize_app"
  }
}

Input Schema

NameRequiredDescriptionDefault
app_idYesThe app id returned by list_apps
memory_mbYesNew memory size in MB, one of the values get_resource_usage reports under compute.steps_mb

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / memory_mb / description
      Previous value: -"New memory size in MB — one of the values get_resource_usage reports under compute.steps_mb"New value: +"New memory size in MB, one of the values get_resource_usage reports under compute.steps_mb"
  2. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true, and the description earns its keep by explaining exactly how: a zero-downtime rolling update normally, but apps with storage are stopped and restarted and become unreachable for a few seconds. That concrete outage warning is information the annotations cannot convey.

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?

Four short sentences, front-loaded with the action and trigger before the constraints and the outage caveat. Minor redundancy with the schema's memory_mb description is the only waste.

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?

No output schema exists, yet the description covers purpose, valid value source, capacity check, and the service-interruption consequence. For a two-parameter mutation tool, nothing an agent needs to call it safely is missing.

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 coverage is 100%, so baseline is 3; the description goes beyond it by adding that the new size must fit the available compute pool, a constraint absent from the schema. It does partly restate the schema's steps_mb wording, which keeps it from a 5.

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 with scope: "Change how much memory one app gets," which cleanly separates it from siblings like resize_database and resize_database_storage. The agent can tell immediately what this tool mutates and on what unit of resource.

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

Usage Guidelines5/5

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

Gives explicit trigger conditions (OOM, user asks for bigger/smaller) plus a hard prerequisite: "call get_resource_usage first" to pick a valid step size and confirm pool capacity. It also names the allowed value source, so the agent knows how to choose the parameter rather than guessing.

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.