Skip to main content
Glama

Resize database memory

resize_database
DestructiveIdempotent

Change how much memory an app's managed database gets. Call this when the database is slow or out of memory. db_ram_mb must be one of the sizes get_resource_usage reports under db_ram.steps_mb and fit your database-RAM pool. WARNING: the database restarts briefly to apply the new size, so the app loses its database connection for a few seconds. Only works if the app has a managed database.

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>",
      "db_ram_mb": "<db_ram_mb>"
    },
    "name": "resize_database"
  }
}

Input Schema

NameRequiredDescriptionDefault
app_idYesThe app id returned by list_apps
db_ram_mbYesNew database memory in MB, one of the values get_resource_usage reports under db_ram.steps_mb

Schema Changelog

Changes observed during successful MCP inspections.

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

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and idempotentHint=true, so the safety profile is covered. The description goes beyond them with the key operational detail the annotations can't express: the database restarts and the app loses its connection for a few seconds. It also states the RAM-pool constraint on valid sizes.

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?

Three tight sentences: purpose, trigger and valid-value source, then the restart warning. The safety-critical WARNING is given its own sentence and is easily spotted.

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 two-parameter mutation with no output schema, the description covers purpose, trigger, preconditions, valid value source, and the side effect of the call. Nothing an agent needs to invoke 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 the baseline is 3, and the description earns extra credit by adding the 'fit your database-RAM pool' constraint, which the schema does not mention. The reference to get_resource_usage's db_ram.steps_mb partially duplicates the schema.

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 ('Change how much memory an app's managed database gets'), and the memory focus implicitly separates it from resize_database_storage. An agent can identify the operation without opening the 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 a clear trigger ('when the database is slow or out of memory') and a hard precondition ('Only works if the app has a managed database'), plus routes the agent to get_resource_usage for valid sizes. It stops short of explicitly contrasting with resize_database_storage, but the guidance is otherwise concrete.

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.