Skip to main content
Glama

build_server_memory

Probe all enabled modules over SSH to build or refresh server memory when missing. Returns module successes and failures.

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
instance_idYesInstance ID, name, or custom-server name.
modulesNoModule names to probe (e.g. ['os', 'runtimes']). Omit to probe all enabled modules.
Behavior4/5

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

With no annotations, the description bears full burden. It discloses SSH probe behavior, cache writing, and detailed return structure including failure reasons. However, it does not explicitly state whether the operation is read-only or has side effects beyond cache writes, which is a minor gap.

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?

Description is front-loaded with purpose and context, followed by return structure and special case. It is slightly verbose but each sentence adds value. Could be trimmed slightly without loss, but structure is logical.

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?

Given no output schema, the description compensates by detailing the JSON return structure including all fields and special reason codes. It also references sibling tool get_server_memory. Parameters are well explained. The description is complete for an agent to understand and use the tool.

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 description coverage is 100%. Description adds value by clarifying that omitting 'modules' probes all enabled modules (schema only says 'Module names to probe'). Other parameter details match 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?

The description clearly states the verb 'Build memory from scratch' and the resource 'managed instance', listing probed modules (OS, runtimes, etc.) and output destination. It distinguishes from siblings by explicitly referencing get_server_memory's return code 'missing'.

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?

Provides explicit when-to-use scenarios: when get_server_memory returns 'missing' or for a fresh full scan. Implicitly advises against unnecessary use via 'fresh full scan' wording. Includes guidance on interpreting failure results (all_probers_failed → SSH/auth issue). Does not explicitly state when not to use, but sufficient.

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

Install Server

Other Tools

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/zb-ss/servonaut'

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