Skip to main content
Glama

build_server_memory

Generate a fresh server memory snapshot by probing all enabled modules over SSH and caching results. Use when cached memory is missing or a full re-scan is needed.

Instructions

Build memory from scratch for a managed instance — probes all enabled modules (OS, runtimes, services, web stack, logs, etc.) over SSH and writes the results to the local cache. Call this when get_server_memory returns code='missing', or when you want a fresh full scan. Returns JSON with: instance_id, count (successful modules), successes (list of module names), failures (list of {module, reason, message}), and — when count=0 — an overall 'reason' code (opt_out | disabled | no_modules_matched | all_probers_failed). If reason='all_probers_failed' the failures list explains per-module (usually an SSH reachability / auth problem — fix that before retrying).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modulesNoModule names to probe (e.g. ['os', 'runtimes']). Omit to probe all enabled modules.
instance_idYesInstance ID or name. '<account>/<name>' picks the server of one provider account; custom servers are 'custom/<name>'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.28.0
    • changedInput schema / properties / instance_id / description
      Previous value: -"Instance ID, name, or custom-server name."New value: +"Instance ID or name. '<account>/<name>' picks the server of one provider account; custom servers are 'custom/<name>'."
  2. Addedv2.24.0
  3. Removedv2.23.8
  4. First observedv1.0.0

TDQS

A4.6/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the SSH-based probing side effect, the local-cache write, and the full set of count=0 reason codes (opt_out | disabled | no_modules_matched | all_probers_failed) plus remediation for the SSH auth case. It stops short of stating idempotency/overwrite behavior, cost, or expected duration, which keeps it from a 5.

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 purpose and trigger, then return shape and failure semantics in descending order of importance. Dense and mostly waste-free, though the long parenthetical reason-code list and the final remediation sentence make it longer than strictly necessary.

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, and the description compensates fully by enumerating the returned fields (instance_id, count, successes, failures) and the conditional 'reason' code. For a two-parameter build tool this covers everything an agent needs to invoke it and interpret the result.

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, but the description adds meaning beyond the schema by enumerating what the probed modules actually are ('OS, runtimes, services, web stack, logs, etc.') and confirming the omit-to-probe-all default. It adds real value to the 'modules' parameter rather than restating it.

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 ('Build memory from scratch for a managed instance') and immediately distinguishes scope: it probes all enabled modules over SSH and writes to the local cache. An agent can separate this from get_server_memory and refresh_server_memory without opening any schema.

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?

Explicitly names the trigger condition ('Call this when get_server_memory returns code="missing"') and the alternative motivation ('when you want a fresh full scan'), which routes the agent between the sibling memory tools. Nothing is left to inference.

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