Skip to main content
Glama

get_memory

Read-onlyIdempotent

Captures a live snapshot of system memory use—used, available, commit, cache, swap, and top processes—so you can identify current memory pressure at a glance.

Instructions

Memory right now: used, available, commit charge and limit, file cache, page files (swap on Linux), on Windows also the paged and non-paged pools and the standby, modified and free lists; and the 15 processes with the most private memory and the 10 with the largest working set. A live snapshot, cheap to call. For one process' memory in detail use get_process; for memory that keeps growing, get_leaks; for how it looked earlier, get_history.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_memory"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already declare read-only, idempotent, non-destructive behavior, and the description adds substantial context beyond them: it is a live snapshot, cheap to call, platform-dependent in its fields, and returns top-N process lists. It does not repeat the annotation flags but discloses the operational footprint an agent needs.

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?

Front-loads 'Memory right now' and then lists exactly the metrics returned; the alternatives are compressed into one routing sentence. The first sentence is dense but every clause maps to a returned field, so there is no filler.

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?

With no parameters and no output schema, the description carries the burden of explaining what comes back, and it does: it enumerates memory counters, platform-specific fields, and top-process lists. Annotations already cover safety, and the description adds freshness/cost and alternatives, leaving no material gap for invocation.

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?

The tool takes no parameters, so the schema is empty and the description correctly does not spend words on parameter meanings. Per the rubric, zero params sets a baseline of 4; no additional parameter semantics can be added.

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 the resource and temporal scope precisely ('Memory right now') and enumerates the counters and process lists returned. It explicitly distinguishes itself from get_process, get_leaks, and get_history, so an agent can select it without opening another 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?

Gives explicit routing: use get_process for one process's memory detail, get_leaks for growing memory, and get_history for earlier data. This covers when to use this tool versus its closest alternatives.

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