Skip to main content
Glama
HexStrike AI MCP Agents

HexStrike AI MCP Agents

by liusc45

one_gadget_search

Searches a libc binary for one-shot RCE gadgets using configurable constraint levels and optional arguments.

Instructions

Execute one_gadget to find one-shot RCE gadgets in libc.

Args: libc_path: Path to libc binary level: Constraint level (0, 1, 2) additional_args: Additional one_gadget arguments

Returns: One-shot RCE gadget search results

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": {
      "libc_path": "<libc_path>"
    },
    "name": "one_gadget_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
levelNo
libc_pathYes
additional_argsNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv6.1.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full disclosure burden, yet it only says 'Execute' with no mention of external tool dependency, permissions, runtime cost, or whether the search is read-only and side-effect free. It adds essentially nothing behavioral beyond restating the tool's purpose.

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 Args/Returns structure is compact and front-loads the purpose sentence. Every line maps to a real element of the interface, though the 'Returns' line is redundant with the existing output 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?

An output schema exists, so return values need not be described, and the tool is a simple three-parameter wrapper. Still, for a tool that shells out to an external binary, the absence of any dependency or failure-mode context leaves an agent under-informed.

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 must compensate, and it does document all three parameters including the meaningful 0/1/2 range for 'level' that the schema lacks. However, 'Constraint level' is not explained (what higher levels mean, tradeoffs) and 'additional_args' is only described as pass-through with no examples or format.

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 states a specific verb and resource: execute the one_gadget tool to find one-shot RCE gadgets in a libc binary. That is far more precise than the name alone and distinguishes it in spirit from generic gadget tools like ropper_gadget_search or ropgadget_search, though it never explicitly says how it differs from those siblings.

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 guidance on when to pick this over ropper_gadget_search or ropgadget_search, no prerequisites (e.g. that libc must be a valid ELF, or that the one_gadget binary must be installed), and no note on when a constraint level should be raised. The agent must infer all routing decisions.

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