Skip to main content
Glama
mac-doctor-mcp
by bmdy6

inspect_memory

Read-only

Inspect macOS memory pressure, swap usage, and top processes grouped by AI tool to find dev processes left running in deleted git worktrees. Read-only; kills nothing.

Instructions

Read-only. Memory pressure, swap, processes grouped by AI tool, and dev processes left running in deleted git worktrees. Does not kill anything.

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": "inspect_memory"
  }
}

Input Schema

NameRequiredDescriptionDefault
topNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, and the description largely restates that ('Read-only', 'Does not kill anything'). It does add value by disclosing the specific data surfaced, notably dev processes left in deleted worktrees, which tells an agent what evidence it will get. It says nothing about cost, permissions, or result shape.

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?

Two short sentences with the safety constraint front-loaded and no filler. The clipped noun-list style is efficient, though slightly telegraphic.

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

Completeness3/5

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

With no output schema, the description does the work of telling an agent what categories of data come back, which is adequate. However, the unexplained 'top' parameter and absent guidance on ordering or grouping leave gaps for a tool whose whole value is its output.

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

Parameters2/5

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

There is a single parameter, 'top', with 0% schema description coverage, and the description never mentions it. An agent must guess whether it caps process count per group, total rows, or something else, and the default of 10 is left unexplained.

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 names the specific resource set it inspects: memory pressure, swap, AI-tool-grouped processes, and dev processes in deleted git worktrees. That inventory clearly separates it from inspect_hardware and inspect_storage. It lacks an explicit verb phrasing but the scope is unambiguous.

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

Usage Guidelines3/5

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

Usage is only implied: 'Read-only' and 'Does not kill anything' signal this is the diagnostic step before acting tools like plan_cleanup or apply_plan, but no alternative is named and no when-to-use condition is stated.

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