Skip to main content
Glama

build_server_memory

Scan a server over SSH to create a full memory snapshot: probe all enabled modules, cache results locally, and get detailed JSON output. Call when memory data is missing or you need a fresh scan.

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, name, or custom-server name.
Behavior4/5

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

No annotations are provided, so the description carries the full burden. It discloses that the tool probes over SSH, writes to local cache, and returns detailed success/failure JSON with reasons. It also explains common failure modes (SSH reachability/auth). However, it doesn't explicitly state that it overwrites the existing cache (implied by 'build from scratch'), nor does it mention required SSH permissions. Still, it is quite transparent.

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?

The description is moderately concise and well-structured: it starts with the primary action, then gives usage condition, then lists return fields, and finally explains failure handling. Each sentence serves a clear purpose. A slight reduction in length could improve conciseness, but it's effective.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (SSH probing, multiple modules, caching) and absence of an output schema, the description covers the return format, failure reasons, and troubleshooting. It lacks details about error handling when the instance is invalid or unreachable beyond SSH issues, and doesn't specify timeout behavior. Still, it provides sufficient context for most use cases.

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 schema already documents both parameters well. The tool description does not add additional meaning beyond saying 'all enabled modules' (which matches schema). No extra usage hints or format details are provided, so the description adds minimal value over the schema. Baseline 3 is appropriate.

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 tool builds memory from scratch by probing modules over SSH, which is a specific verb+resource combination. It explicitly distinguishes the tool from siblings like get_server_memory by specifying when to call it (when get_server_memory returns 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 Guidelines5/5

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

The description provides explicit usage guidance: 'Call this when get_server_memory returns code='missing', or when you want a fresh full scan.' This tells the agent exactly when to use this tool vs. alternatives, with a clear condition and purpose.

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