Skip to main content
Glama
drvcvt
by drvcvt

shellcode_analyze

Analyze raw hex shellcode bytes by mapping them into memory, disassembling across architectures, and extracting syscalls and patterns to reveal behavior.

Instructions

Analyze raw shellcode bytes by loading them as a memory blob, disassembling, and identifying syscalls and patterns.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
hex_bytesYesHex-encoded shellcode bytes
architectureNoTarget architecture for disassemblyx86
base_addressNoBase address for the shellcode mapping0x10000

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.9/5.0
Behavior3/5

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

The description discloses the main behavior—loading bytes into a memory blob, disassembling, and scanning for syscalls/patterns—which implies static analysis. However, with no annotations available, it does not explicitly state that the shellcode is never executed or whether any in-memory modification occurs, leaving some safety-related ambiguity.

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 a single, dense sentence that front-loads the primary purpose and then briefly states the method. There is no redundant or filler language.

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?

The description covers what the tool does and the general approach, but there is no output schema and the description does not mention what kind of results are returned, e.g., disassembly listing, syscall list, or pattern matches. For a tool with no output schema, a bit more detail about the return value or expected result format would improve completeness.

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?

The input schema already provides 100% parameter coverage with descriptions for hex_bytes, architecture, and base_address. The tool description does not add further parameter-level detail, so it neither improves nor harms parameter understanding; it meets the baseline.

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 specific resource (raw shellcode bytes) and a concrete analysis pipeline: load as memory blob, disassemble, identify syscalls and patterns. This clearly separates it from file-oriented siblings like analyze_binary and from plain disassemblers like disassemble_bytes because it emphasizes shellcode-specific analysis.

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?

The phrase 'Analyze raw shellcode bytes' gives a clear context for when to use the tool: when the input is raw shellcode rather than a full binary. It does not explicitly name alternatives or state when not to use it, so it stops short of full exclusion guidance.

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