Skip to main content
Glama

Get memory information

get_memory_information
Read-only

Retrieve detailed physical and swap memory usage from local or remote Linux hosts via SSH.

Instructions

Get detailed memory including physical and swap.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
hostNoRemote host to connect to via SSH

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
ramYesParsed memory information from free command.
swapNo

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Changed8 schema fields changedv1.6.0
    • addedInput schema / additionalProperties
      Added value: +false
    • removedOutput schema / $defs
      Removed value: -{
      -  "MemoryInfo": {
      -    "description": "Parsed memory information from free command.",
      -    "properties": {
      -      "available": {
      -        "default": 0,
      -        "type": "integer"
      -      },
      -      "buffers": {
      -        "default": 0,
      -        "type": "integer"
      -      },
      -      "cached": {
      -        "default": 0,
      -        "type": "integer"
      -      },
      -      "free": {
      -        "type": "integer"
      -      },
      -      "shared": {
      -        "default": 0,
      -        "type": "integer"
      -      },
      -      "total": {
      -        "type": "integer"
      -      },
      -      "used": {
      -        "type": "integer"
      -      }
      -    },
      -    "required": [
      -      "total",
      -      "used",
      -      "free"
      -    ],
      -    "type": "object"
      -  },
      -  "SwapInfo": {
      -    "description": "Parsed swap information from free command.",
      -    "properties": {
      -      "free": {
      -        "type": "integer"
      -      },
      -      "total": {
      -        "type": "integer"
      -      },
      -      "used": {
      -        "type": "integer"
      -      }
      -    },
      -    "required": [
      -      "total",
      -      "used",
      -      "free"
      -    ],
      -    "type": "object"
      -  }
      -}
    • removedOutput schema / properties / ram / $ref
      Removed value: -"#/$defs/MemoryInfo"
    • addedOutput schema / properties / ram / description
      Added value: +"Parsed memory information from free command."
    • addedOutput schema / properties / ram / properties
      Added value: +{
      +  "available": {
      +    "default": 0,
      +    "type": "integer"
      +  },
      +  "buffers": {
      +    "default": 0,
      +    "type": "integer"
      +  },
      +  "cached": {
      +    "default": 0,
      +    "type": "integer"
      +  },
      +  "free": {
      +    "type": "integer"
      +  },
      +  "shared": {
      +    "default": 0,
      +    "type": "integer"
      +  },
      +  "total": {
      +    "type": "integer"
      +  },
      +  "used": {
      +    "type": "integer"
      +  }
      +}
    • addedOutput schema / properties / ram / required
      Added value: +[
      +  "total",
      +  "used",
      +  "free"
      +]
    • addedOutput schema / properties / ram / type
      Added value: +"object"
    • changedOutput schema / properties / swap / anyOf
      Previous value: -[
      -  {
      -    "$ref": "#/$defs/SwapInfo"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "description": "Parsed swap information from free command.",
      +    "properties": {
      +      "free": {
      +        "type": "integer"
      +      },
      +      "total": {
      +        "type": "integer"
      +      },
      +      "used": {
      +        "type": "integer"
      +      }
      +    },
      +    "required": [
      +      "total",
      +      "used",
      +      "free"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  2. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

The annotations already declare readOnlyHint=true, so the agent knows this is a safe read operation. The description adds mild context by noting that both physical and swap memory are covered, but it discloses no other behavioral details such as what 'detailed' includes, remote host behavior, or potential limitations.

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?

The description is a single, focused sentence that front-loads the action and scope with no filler or redundancy. The phrase 'including physical and swap' adds value beyond the title without extra words.

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?

For a simple read-only tool with one optional parameter, an output schema, and a readOnly annotation, the description is mostly sufficient. It is slightly thin on how it differs from sibling system/hardware information tools and what 'detailed' includes beyond physical and swap, but those gaps are partially mitigated by the output schema.

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?

The single optional parameter 'host' is fully described in the schema as 'Remote host to connect to via SSH', so schema description coverage is 100%. The description adds no additional parameter-level meaning, so the baseline of 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action 'Get' and the resource 'memory information', and adds useful scope by specifying 'including physical and swap.' It does not explicitly distinguish this from sibling tools like get_system_information or get_hardware_information, so it lacks full sibling differentiation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

There is no guidance on when to use this tool versus alternatives such as get_system_information or get_hardware_information, nor any mention of the optional remote host scenario. The only usage signal is the tool name itself, leaving selection logic entirely to inference.

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

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/rhel-lightspeed/linux-mcp-server'

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