Skip to main content
Glama

pwndbg_r2

Execute radare2 commands on the loaded binary for advanced analysis and reverse engineering during debugging.

Instructions

Execute a radare2 command on the current binary.

pwndbg command: r2 Source: pwndbg/commands/radare2.py Category: Integrations

Requires radare2 (r2) to be installed. Passes the command to r2 for analysis of the loaded binary.

Args: session_id: The UUID of the session. args: radare2 command arguments.

See: https://pwndbg.re/2025.05.30/reference/pwndbg/commands/radare2/

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
session_idYes
argsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

With no annotations, the description bears full responsibility for behavioral disclosure. It states the tool executes a command and requires r2, but fails to mention potential side effects, error handling, or what happens if r2 is not installed. The source and category add context but do not enhance transparency about behavior beyond the basic action.

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 succinct, comprising a one-line summary, source, category, requirement, and a structured argument list. Every sentence serves a purpose without unnecessary detail.

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?

Despite having an output schema (indicated in context), the description does not explain the return value or behavior on errors. For a command execution tool, output description is crucial. The description omits this, making it incomplete for an agent to understand what to expect.

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 schema provides no descriptions (0% coverage), so the description compensates by explaining 'session_id: The UUID of the session' and 'args: radare2 command arguments.' This adds meaningful context beyond the schema's property names and types, though it could be more specific about argument format.

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 explicitly states 'Execute a radare2 command on the current binary,' which is a specific verb and resource. It clearly distinguishes from sibling tools like pwndbg_disassemble or pwndbg_search, indicating a unique integration with radare2.

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?

The description mentions the requirement 'Requires radare2 (r2) to be installed' and that it passes commands to r2 for analysis, implying use for radare2 commands. However, it does not provide explicit guidance on when to use this tool versus alternatives or list any 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/Micro-Evaluation-Group/pwndbg-lldb-mcp'

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