Skip to main content
Glama

trace_changes

Samples a memory range over time and reports every changed byte in hex and as typed values, helping identify flags, counters, or timers without stopping the target.

Instructions

Poll a range and report every byte that moved, as hex and as typed values.

This is the DMA answer to a memory breakpoint: nothing can be stopped, so the range is sampled and diffed. Runs name the changed field, how many samples caught a new value, and the same bytes read as int32/uint32/float/int64/uint64/ double, which is usually enough to tell a flag from a counter from a timer.

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

Input Schema

NameRequiredDescriptionDefault
vaYes
pidNo
sizeYes
limitNo
samplesNo
sessionNodefault
intervalNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior4/5

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

With no annotations present, the description carries the full burden and does disclose the operating model: repeated sampling over a range, diffing between samples, and grouping of results into per-change runs with sample hit counts. It omits operational cost details — total duration implied by samples × interval, blocking behavior, and any target-impact or rate concerns — which matters for a tool that polls a live process.

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?

The core mechanism is front-loaded in the first two sentences and each subsequent sentence adds interpretive value about the returned data. The closing 'flag from a counter from a timer' flourish is slightly editorial but earns its place by telling the agent what the typed views are for.

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?

Given seven undocumented parameters and no annotations, the description is not complete: an agent cannot construct a correct call (interval vs samples tradeoff, limit behavior, session scoping) without guessing. It is adequate on the return side, where an output schema already exists, and strong on the conceptual model, but the parameter gap is the dominant risk.

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 coverage is 0% across seven parameters, so the description must compensate and largely does not: va, size, limit, samples, session, interval and pid are never defined. It hints at the sampling concept ('how many samples caught a new value') but never ties it to a named parameter or explains units, defaults, or the address-space expectations of va.

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 states a specific verb and resource: poll a memory range and report changed bytes, sampled and diffed, with typed reinterpretations. The 'DMA answer to a memory breakpoint' framing makes the mechanism distinct from a plain read or diff. It stops short of naming a sibling (e.g. trace_value, read, diff), so an agent must infer the boundary itself.

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: 'nothing can be stopped' signals this is for DMA/live-target scenarios where breakpoints are unavailable. There is no explicit when-not guidance and no alternative tool named, so the agent has to derive selection criteria from the mechanism description.

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