Skip to main content
Glama
Tokeii0

capstone-mcp-server

by Tokeii0

find_rop_gadgets_hex

Search for ROP gadgets in hex-encoded machine code to construct ROP chains for CTF Pwn challenges.

Instructions

Search for ROP gadgets (instruction sequences ending with ret) in hex-encoded machine code.

Used for ROP chain construction in CTF Pwn challenges.

Args: hex_code: Hex-encoded machine code bytes. arch: CPU architecture. Default: x86_64. base_address: Base address. Default: "0". max_gadget_len: Maximum number of instructions per gadget. Default: 5. max_results: Maximum number of results to return. Default: 100.

Returns: List of ROP gadgets with addresses and instruction sequences.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
hex_codeYes
archNox86_64
base_addressNo0
max_gadget_lenNo
max_resultsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

No annotations are provided, so the description carries the burden. It states the tool returns a list of gadgets with addresses and instruction sequences, but does not disclose any behavioral traits like read-only nature, performance implications, or edge cases. It is adequate but not detailed.

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 and well-structured, starting with a clear purpose sentence, followed by usage context, a parameter list, and return description. Every element is necessary and efficiently communicated.

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

Completeness5/5

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

Given the presence of an output schema (not shown but indicated), the description provides sufficient context: it explains what the tool does, what parameters are needed, and what is returned. The tool is simple, and the description covers all essential aspects.

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 description coverage is 0%, so the description fully compensates by explaining each parameter in the Args section, including defaults and types. This adds significant value beyond the bare schema, making the tool easy to use.

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 the tool's purpose: searching for ROP gadgets (instruction sequences ending with ret) in hex-encoded machine code, specifically for CTF Pwn challenges. The name 'find_rop_gadgets_hex' distinguishes it from siblings like 'find_rop_gadgets_in_file', which operate on files.

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 usage context ('Used for ROP chain construction in CTF Pwn challenges'), but does not explicitly state when not to use this tool or compare to alternatives. It implies that this is for hex-encoded code, but does not mention the file-based sibling.

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/Tokeii0/capstone-mcp-server'

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