Skip to main content
Glama

write_memory

Write typed values to game memory addresses for modding. Validates addresses and snapshots before writing to prevent crashes.

Instructions

Write a typed value to a memory address. Requires explicit consent.

CAUTION: Writing to wrong addresses can crash the game. The bridge validates addresses and snapshots before writing for revert.

Args: address: Hex address or expression value: Value to write (will be converted to specified type) type: Data type - "byte", "int16", "int32", "int64", "float", "double"

Returns: Success/failure, old value (for manual revert reference)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
addressYes
valueYes
typeNofloat

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations, the description provides important behavioral traits: requires consent, can crash the game, bridge validates and snapshots before writing, returns old value for revert. This adequately informs the agent of risks and safety mechanisms.

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?

Description is well-structured with a clear purpose sentence, followed by consent, caution, validation, args list, and returns. The information is front-loaded and no unnecessary sentences are present.

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 complexity (dangerous write operation) and low schema coverage, the description adequately explains parameters, behavior, and return value. It provides enough context for safe usage, though could mention persistence behavior.

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?

The description adds meaning beyond the schema by explaining that address can be a hex address or expression, value is converted to the specified type, and type options are listed ('byte', 'int16', etc.). This compensates for the 0% schema description coverage.

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?

Description clearly states 'Write a typed value to a memory address' with a specific verb and resource. This distinguishes it from sibling tools like read_memory or revert_last_write.

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?

Mentions 'Requires explicit consent' and provides caution about crashes, but does not specify when to use this tool versus alternatives (e.g., read_memory for reading). No explicit when-not-to-use guidance.

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