Skip to main content
Glama
Tokeii0

capstone-mcp-server

by Tokeii0

find_rop_gadgets_in_file

Search for ROP gadgets in a binary file's section to identify exploitable code sequences for security analysis.

Instructions

Search for ROP gadgets in a binary file's section.

Args: file_path: Absolute path to the binary file. section_name: Section name. Default: ".text". arch: CPU architecture. Auto-detected if omitted. max_gadget_len: Maximum instructions per gadget. Default: 5. max_results: Maximum results to return. Default: 100.

Returns: List of ROP gadgets found.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathYes
section_nameNo.text
archNo
max_gadget_lenNo
max_resultsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

No annotations are provided, so the description must disclose behavioral traits. It only lists parameters and return type but does not mention side effects, performance implications, or prerequisites like file existence. The read-only nature is implied but not confirmed.

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 structured with a clear purpose sentence followed by an Args and Returns section. It is concise but could be slightly more efficient by removing redundant listing of defaults already in schema.

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?

Given the tool's complexity (5 parameters, output schema present), the description adequately explains parameter meaning but lacks behavioral context (e.g., that it is resource-intensive) and does not detail the return format beyond 'List of ROP gadgets found'. The output schema may compensate, but its details are not visible here.

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 description coverage is 0%, so the description carries full burden. The docstring adds meaning for all five parameters (e.g., file_path is absolute, arch is auto-detected, defaults). This goes beyond the schema titles, providing necessary context.

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 the tool searches for ROP gadgets in a binary file's section. The verb 'Search' and resource 'ROP gadgets' are specific. However, it does not differentiate from the sibling 'find_rop_gadgets_hex', which likely operates on hex input instead of files.

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 explicit guidance on when to use this tool versus alternatives like 'find_rop_gadgets_hex' or other analysis tools. The usage context is implied by the parameters (file_path) but not stated.

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