Skip to main content
Glama

diff

Show changes in a specified memory range since now, or watch it for a timeout to capture updates.

Instructions

Show what changed in a range since now (or watch it for timeout seconds).

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": {
      "va": "<va>",
      "size": "<size>"
    },
    "name": "diff"
  }
}

Input Schema

NameRequiredDescriptionDefault
vaYes
pidNo
sizeYes
sessionNodefault
timeoutNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.4/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 burden. It mentions the timeout/watch behavior, but says nothing about whether the operation is read-only, what state the range refers to, whether 'since now' is a snapshot baseline, or what happens when timeout is 0 versus positive.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single short sentence with no filler, but it is under-specified rather than truly concise. The parenthetical watch-mode clause is buried at the end rather than front-loaded.

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?

An output schema exists, so return values need not be explained. However, for a 5-parameter tool with 0% schema coverage and no annotations, the description leaves the range-defining parameters and the session/pid scoping unexplained — not enough for correct invocation.

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 5 parameters, so the description must compensate and largely does not. Only 'timeout' is explained; the required 'va' and 'size' (which define the range) plus 'pid' and 'session' get no meaning from the description.

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

Purpose3/5

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

The description gives a verb ('Show what changed') but the resource is only implied as 'a range' — it never says what is being diffed (bytes, module, memory region). Against siblings like diff_images and diff_module, the agent cannot tell which entity this operates on without opening the schema.

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?

The parenthetical hints at a watch mode ('or watch it for ``timeout`` seconds'), which is the only when-to-use signal. There is no guidance on when to use this versus diff_images or diff_module, no prerequisites, and no exclusions.

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