Skip to main content
Glama

set_register

Set a CPU register to a specific value to bypass checks, redirect execution, or modify function arguments during debugging.

Instructions

Set a CPU register to a specific value. Useful for bypassing checks (set RAX=0 after IsDebuggerPresent), redirecting execution (change RIP), or modifying function arguments.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
valueYesValue to set. Use '0x' prefix for hex. Examples: '0x0', '0x401000', '0'.
registerYesRegister name (case-insensitive).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataNoStructured result data (varies by tool)
errorNo
detailsNoDetailed text breakdown
successYes
summaryYesOne-line human-readable result
suggested_next_toolsNoTools recommended to call next based on this result
Behavior2/5

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

Since no annotations are provided, the description carries the full burden. It states the action but does not disclose important behavioral details such as whether the change is persistent, whether it affects the current thread only, or whether the process must be paused. For a mutation tool, this is a meaningful gap.

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 two sentences and every word earns its place. It front-loads the core action and then gives concrete examples. No fluff or redundancy.

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 simple setter with a full schema and an output schema, the description covers the main purpose and usage examples. However, the lack of behavioral caveats (e.g., side effects, thread scope, pause requirements) and no differentiation from sibling windbg_set_register leave some completeness gaps, making it minimally adequate.

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 100% with descriptions for both parameters. The description adds value beyond the schema by providing example values (0x0, 0x401000) and contextual guidance like setting RAX=0 after IsDebuggerPresent. This enriches understanding without repeating schema content.

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 clearly states a specific action: 'Set a CPU register to a specific value.' It also gives concrete use cases (bypassing checks, redirecting execution, modifying arguments). However, it does not explicitly distinguish itself from sibling tool windbg_set_register, so it falls short of a 5.

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 provides clear context for when to use the tool via examples: bypassing IsDebuggerPresent, changing RIP, modifying function arguments. It does not mention exclusions or explicit alternatives, but the use cases are enough to guide an agent. This aligns with 'clear context, no exclusions'.

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/DdUdle/ctxdebug'

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