Skip to main content
Glama

get_server_memory

Check cached server memory including OS, runtimes, services, web stack, and logs to answer common questions without SSH. If missing, build it first.

Instructions

Return cached memory (OS, runtimes, services, web stack, logs) for a managed instance. Call FIRST before issuing SSH commands — the cached summary frequently answers OS/runtime/service/web-stack questions without an SSH round-trip. If this returns an error with code='missing', the server has no memory yet — call build_server_memory(instance_id) to probe and populate it, then retry this tool. format='summary' (default) gives a token-efficient Markdown digest; format='markdown' gives the full untruncated version; format='full' returns the raw JSON for all modules; format='context_block' returns a envelope identical to what the first-party Servonaut chat client injects — use this when you want a single drop-in block to prepend to your own model context. Note: format='full' returns structured per-module data (observed, declared, probed_at, ttl_seconds, sudo_used, truncated, partial, raw_output). raw_output is scrubbed of secrets by the redaction library when config.memory.redaction_enabled is true (default).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
instance_idYesInstance ID, name, or custom-server name.
formatNoOutput format (default: summary).summary
Behavior5/5

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

With no annotations provided, the description fully discloses behavior: it returns cached data, may return error with code 'missing', details each format option, explains that format='full' returns structured per-module data with fields like observed, declared, probed_at, ttl_seconds, sudo_used, truncated, partial, raw_output, and notes that raw_output is scrubbed of secrets. No annotation contradiction.

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 long but well-structured: core purpose first, then usage guidance, then format details. Every sentence adds value, though a few could be slightly condensed. Overall, it is front-loaded and efficient.

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?

Despite no output schema, the description comprehensively explains return values for each format, error handling, and sequencing with build_server_memory. It covers all needed context for an agent to use the tool correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, but the description adds significant meaning beyond schema: for 'format', it explains each enum value in detail ('summary gives a token-efficient Markdown digest', 'full returns the raw JSON for all modules', 'context_block returns a <CONTEXT name=...> envelope'), and for 'instance_id' it confirms 'Instance ID, name, or custom-server name'. This goes well beyond the schema's minimal descriptions.

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 explicitly states 'Return cached memory (OS, runtimes, services, web stack, logs) for a managed instance,' using a specific verb ('return') and resource ('cached memory'). It distinguishes from sibling tools like build_server_memory by advising to call this first and only call build_server_memory if an error occurs.

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 clear when-to-use guidance: 'Call FIRST before issuing SSH commands' and 'the cached summary frequently answers ... questions without an SSH round-trip.' It also explains what to do on error ('if this returns an error with code='missing', call build_server_memory(instance_id)'), offering explicit alternatives and error recovery.

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