Skip to main content
Glama
JeanExtreme002

PyMemoryEditor

Official

resolve_pointer_chain

Read-onlyIdempotent

Walk a multi-level pointer chain to its final address to find where a value lives in a running process. Combine a base address with ordered offsets to follow Cheat Engine-style recipes.

Instructions

Walk a known multi-level pointer chain to its final address.

Replays the recipe a Cheat Engine table records — "game.exe"+0x10F4F4 -> [+0x0] -> [+0x158] — which is the form that survives a restart. Combine with process_info's module base_address to build base_address for the current run.

:param base_address: where the chain starts, hex. Usually module_base + static_offset. :param offsets: the chain's offsets in order, as hex strings (["0x0", "0x158"]). Negative offsets are allowed ("-0x8") — walking backwards through a struct is ordinary in a published recipe. The last one is added without a final dereference, so the result is the address the value lives at — read it with read_value. Pass an empty list to dereference base_address once.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
offsetsNo
session_idYes
base_addressYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), so the bar is lower. The description adds meaningful behavior beyond them: the last offset is added without a final dereference so the result is the address the value lives at, and negative offsets are permitted. That yields exactly the semantics an agent needs to interpret the output.

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?

Front-loads the one-line purpose before the recipe example and param details. Detailed but every sentence carries information (dereference semantics, negative offsets). The docstring-style layout is slightly verbose relative to what a tool description needs, but nothing is padding.

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

Completeness4/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 needn't be explained, and the description covers purpose, mechanics, and the relevant parameters. The only shortfall is the absent session_id context and no explicit statement of when to use this versus the path-finding sibling.

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?

Schema coverage is 0%, so the description carries the full burden, and it does well: base_address is defined as hex, usually module_base + static_offset; offsets are hex strings with negative values allowed, ordering explained, and the last-offset/empty-list edge cases called out. Only session_id goes undescribed, which is a minor gap for an otherwise thoroughly documented parameter set.

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 a precise verb+resource ("Walk a known multi-level pointer chain to its final address") and the word "known" distinguishes it from the sibling find_pointer_paths, which discovers paths. An agent can tell what this does and how it differs from neighbors without opening a schema.

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?

It implies the workflow (combine with process_info's module base_address to build the start address; read the result with read_value), which is useful context. But it never explicitly states when to choose this over find_pointer_paths, nor any exclusion or precondition beyond the build-up hint. Adequate but implied rather than stated.

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