Skip to main content
Glama

pentest_ctf_ropgadget

Lists ROP gadgets from a binary offline using ROPgadget, capped at 500, with an optional regex filter to select gadgets for CTF exploit development.

Instructions

ROP gadget listing via ROPgadget, capped at 500. filter: regex to select gadgets (e.g. 'pop|ret'). Offline.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "path": "<path>"
    },
    "name": "pentest_ctf_ropgadget"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
filterNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.5.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral burden. It does add genuinely useful facts: output is capped at 500 gadgets and the tool runs offline. It does not disclose error behavior for invalid/non-binary paths or the shape of the returned listing.

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?

Very short and front-loaded, with the cap and the filter hint in the right order. The fragment 'Offline.' is terse but informative; nothing is wasted.

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 2-parameter, no-output-schema tool this is close to adequate: cap, filter syntax, and offline mode are covered. It still omits what `path` should point to and what the listing looks like, which matters since nothing else documents those.

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

Parameters3/5

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

Schema description coverage is 0%, so the description is the only source of parameter meaning. It explains `filter` well (regex, with a 'pop|ret' example) but leaves `path` unexplained beyond its name, so the binary-vs-directory question is left to inference.

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 ('ROP gadget listing via ROPgadget'), which is unambiguous and clearly distinct from binary-inspection siblings like checksec, strings, or binwalk. It stops short of naming which sibling to use instead when ROP analysis is not the goal, so it is not 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 Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use or when-not-to-use guidance, and no mention of prerequisites (e.g., that the target must be a binary/ELF). The only contextual hint is 'Offline', which describes execution mode rather than selection criteria.

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

Deploy Server

Other Tools