Skip to main content
Glama
Tokeii0

capstone-mcp-server

by Tokeii0

disassemble_hex

Disassemble hex-encoded byte strings into assembly instructions with address, bytes, mnemonic, and operands. Supports multiple CPU architectures.

Instructions

Disassemble a hex-encoded byte string into assembly code.

Args: hex_code: Hex-encoded machine code bytes, e.g. "554889e5" or "55 48 89 e5" (spaces are auto-stripped). arch: CPU architecture. Use list_supported_architectures to see available values. Default: x86_64. base_address: Base address as a hex string (e.g. "0x401000"). Default: "0". max_instructions: Maximum number of instructions to disassemble. 0 means unlimited.

Returns: Formatted disassembly output with address, bytes, mnemonic and operands.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
hex_codeYes
archNox86_64
base_addressNo0
max_instructionsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

With no annotations, the description must convey all behavioral traits. It states the tool disassembles hex into assembly and returns formatted output. It does not disclose side effects, if any, but for a disassembly tool this is acceptable. However, it could mention that the operation is non-destructive.

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 well-structured with Args and Returns sections, making it easy to parse. It is slightly verbose but every sentence adds value. The main purpose is front-loaded.

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?

Given that an output schema exists (as per context signals), the description adequately explains the return format. All aspects of the tool are covered, including input formats, default values, and usage hints. It is complete for a disassembly tool.

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

Parameters5/5

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

The description adds substantial meaning beyond the input schema: for hex_code it provides examples and notes spaces are auto-stripped; for arch it directs to list_supported_architectures; for base_address it gives a format example; for max_instructions it explains the 0 meaning. This compensates for the 0% schema description coverage.

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 clearly states the verb 'disassemble' and the resource 'hex-encoded byte string', with immediate clarification of input format. It distinguishes itself from sibling disassembly tools that operate on different inputs (e.g., at a memory address, entrypoint, or file section).

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

Usage Guidelines3/5

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

The description provides context on when to use this tool by specifying it handles hex-encoded byte strings and defaults to x86_64 architecture. However, it does not explicitly mention alternatives or when not to use it, leaving the agent to infer from the sibling tool list.

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