Skip to main content
Glama
drvcvt
by drvcvt

search_rop_gadgets

Search a binary for ROP gadgets, filtering by instruction constraints (e.g., 'pop rdi') and max gadget length to build ROP chains.

Instructions

Search for ROP gadgets in the binary matching optional instruction constraints.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMax results to return
queryNoInstruction filter (e.g. "pop rdi") to match specific gadgets
offsetNoPagination offset (0-based)
max_lengthNoMaximum number of instructions per gadget
binary_pathYesAbsolute path to the binary file

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/5.0
Behavior3/5

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

No annotations are provided, so the description carries the transparency burden. 'Search' signals a read-only intent, and 'optional instruction constraints' hints at filtering behavior, but it does not disclose return format, default query behavior, ordering, or pagination semantics. This is a moderate gap.

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?

A single sentence with no filler; the core action, resource, and qualifier are front-loaded and every word earns its place.

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

Completeness4/5

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

For a straightforward search tool with fully described parameters and clear scope, the description is largely complete. It would be more complete with an explicit note about the returned gadget format, but the absence of an output schema is partially mitigated by the self-describing nature of a search result list.

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 100%, so the schema already documents all five parameters, including defaults and bounds. The description's mention of 'optional instruction constraints' adds slight semantic context for query/max_length but does no more than echo the schema.

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 names a precise verb ('Search'), a specific resource ('ROP gadgets'), and the scope ('in the binary'), plus the filtering dimension ('optional instruction constraints'). This clearly distinguishes it from sibling search tools like search_bytes or search_string.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

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

It provides clear context for when the tool applies: when the goal is ROP gadget discovery with optional instruction filtering. It does not explicitly name alternatives or state when not to use it, so it stops short of a 5, but the usage context is unambiguous.

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