Skip to main content
Glama

set_register

Assign a value to a CPU register in a radare2 session to control execution state during debugging, patching, or reverse engineering.

Instructions

Set register value (dr reg=value).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
valueYes
registerYes
session_idNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.7/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden. It conveys that this is a write operation to a register but omits critical behavioral context: whether it affects program execution, requires a paused session, is reversible, or what errors occur for invalid registers.

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?

The description is extremely short and front-loads the action. While terse, every word carries some signal, though the cryptic '(dr reg=value)' abbreviation may be opaque to an unfamiliar agent.

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

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool that mutates debugger state with no annotations, a 3-parameter schema at 0% coverage, and no output schema details shown, the description is severely under-specified. It lacks any guidance on session context, validation, or side effects needed to invoke it safely.

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

Parameters2/5

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

Schema description coverage is 0% for all three parameters. The parenthetical '(dr reg=value)' loosely maps to the register and value parameters but adds no real semantic detail, and the session_id parameter is completely unexplained.

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?

States a specific verb and resource: 'Set register value.' An agent can tell it apart from sibling get_registers by opposition, but the description does not explicitly name alternatives or scope (e.g., during a debug session), so it falls short of full sibling differentiation.

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?

No when-to-use guidance, prerequisites, or alternatives are provided. The parenthetical '(dr reg=value)' hints at syntax but does not explain context, such as whether the debuggee must be paused or which registers are valid.

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