Skip to main content
Glama
retrace-mcp

retrace-mcp

by anthoo582

memory_check_alignment

Validates a pointer's 4-byte or 8-byte alignment, nullness, and architectural address range for N64 or PS2 memory analysis to catch invalid references before disassembly or crash investigation.

Instructions

Check a pointer for 4-byte or 8-byte alignment, nullness, and architectural valid range.

Input Schema

NameRequiredDescriptionDefault
archYesConsole architecture
addressYesPointer value to check

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. It does disclose the checks performed (alignment, nullness, arch range), which usefully implies a non-mutating validation, but it never says what the tool returns (boolean, structured report, error text) despite there being no output schema.

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, and the core action leads. The phrase 'architectural valid range' is slightly opaque and could have named the arch dependency instead of alluding to it.

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?

For a two-parameter validation tool with no annotations and no output schema, the definition is minimally sufficient on inputs but silent on the result shape and on failure semantics (e.g., unaligned vs. null vs. out-of-range reporting). The complexity is low, so the gap is moderate rather than severe.

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

Parameters3/5

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

Schema coverage is 100%, so both parameters are already documented, and the description's mention of '4-byte or 8-byte' and 'architectural valid range' adds useful framing for how the n64/ps2 enum drives the check. It stops short of explaining the relationship explicitly, so it sits at the baseline rather than above it.

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 ('Check a pointer') and enumerates the three checks performed: 4/8-byte alignment, nullness, and architectural valid range. It is clear what the tool does, but it never contrasts itself with adjacent siblings such as memory_inspect_region or memory_analyze_overlap, so an agent must infer the boundary.

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?

There is no statement of when to call this versus the sibling memory_* tools, no prerequisites, and no mention of what happens for an invalid address. The only guidance is implicit in the word 'Check', which an agent must interpret on its own.

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