Skip to main content
Glama

resolve_rip_relative

Calculate the absolute memory address from a RIP-relative instruction in GTA V by providing the instruction address, displacement offset, and instruction size.

Instructions

Resolve a RIP-relative address from an instruction.

Many GTA patterns use RIP-relative addressing. This reads the displacement at offset_position and computes the absolute address.

Formula: absolute = instruction_address + instruction_size + displacement

Args: address: Address of the instruction (hex) offset_position: Byte offset where the 4-byte displacement starts instruction_size: Total instruction length

Returns: The resolved absolute address

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
addressYes
offset_positionYes
instruction_sizeYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

No annotations are provided, so the description carries full burden. It explains the computation (reads displacement, computes absolute address) and provides the formula. It does not disclose failure modes but the operation is simple and likely read-only.

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

Conciseness5/5

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

The description is concise, front-loaded with purpose, then context, formula, and parameter details. Every sentence adds value with no waste.

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?

Given the tool's simplicity, three parameters, and existing output schema, the description adequately explains the operation and return value. It lacks explicit error handling or constraints but is sufficient for typical use.

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

Parameters5/5

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

Schema coverage is 0%, so the description must compensate, and it does by explaining each parameter (address as hex, offset_position as byte offset, instruction_size as total length) with clear meaning beyond the schema's type/title.

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?

The description clearly states it resolves a RIP-relative address from an instruction, includes context about GTA patterns, and provides the formula. It is distinct from sibling tools that handle general memory operations.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies when to use this tool (for instructions with RIP-relative addressing) and provides context, but does not explicitly exclude alternatives or state when not to use it.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/TabbedScamper/GTAV-CLAUDE-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server