Skip to main content
Glama

diff_module

Compare a module's memory regions against a saved snapshot baseline to detect changed, added, or removed regions during live reverse engineering.

Instructions

Compare a module's regions against a snapshot_module baseline.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "module": "<module>"
    },
    "name": "diff_module"
  }
}

Input Schema

NameRequiredDescriptionDefault
pidNo
limitNo
moduleYes
sessionNodefault
snapshot_idNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full disclosure burden, and it says nothing about whether the operation is read-only, what happens when the referenced snapshot is missing, or how session/pid scoping affects the comparison. The existence of an output schema relieves it of explaining return values, but the operational behavior remains undisclosed.

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?

A single front-loaded sentence with no filler, though the double-backtick markup around ``snapshot_module`` is odd and the terseness comes at the cost of the missing detail noted elsewhere.

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

Completeness2/5

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

For a 5-parameter tool with zero schema coverage, no annotations, and a nested workflow dependency on snapshot creation, one sentence is far too thin. It never explains scoping parameters or failure modes, leaving the definition inadequate against the tool's actual complexity.

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?

Schema description coverage is 0% across five parameters; the description only illuminates `module` and indirectly `snapshot_id`. It adds no meaning for `pid`, `session`, or `limit` (default 200), so an agent must guess what a session is or why a limit applies to a diff.

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?

Specific verb ("Compare") plus a scoped resource ("a module's regions") plus the comparison baseline, which effectively distinguishes it from diff_images and the generic diff. It stops short of 5 only because it doesn't state what kind of comparison result is produced or how it differs from plain `diff`.

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 implied rather than stated: the mention of a ``snapshot_module`` baseline signals you must first have a snapshot, but there is no explicit when-to-use/when-not guidance, no statement about the default snapshot_id=0 case (no snapshot? latest?), and no routing between this and the sibling `diff` tool.

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