Skip to main content
Glama
Tokeii0

capstone-mcp-server

by Tokeii0

analyze_code_flow

Extract control flow graph from machine code: identify basic blocks, jumps, calls, and returns for reverse engineering and security analysis.

Instructions

Perform control flow analysis on machine code, identifying basic blocks, jumps, calls and returns.

Args: hex_code: Hex-encoded machine code bytes. arch: CPU architecture. Default: x86_64. base_address: Base address. Default: "0".

Returns: JSON-formatted control flow analysis with basic blocks, edges, calls and return info.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
hex_codeYes
archNox86_64
base_addressNo0

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 is the sole source for behavioral traits. It describes the output format (JSON with basic blocks, edges, calls, returns) but fails to disclose limitations, performance characteristics, or any side effects. It does not mention if the tool works for all architectures or the required format of hex_code.

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 concise with a short paragraph followed by an args/returns block. It front-loads the key purpose and uses clear structure. No superfluous text, though the 'Args:' section is slightly redundant with the 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?

Given the presence of an output schema (described but not shown), the description adequately covers parameters and return concept. However, it lacks usage context, such as typical use cases or architecture support, which would be helpful among sibling tools.

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

Parameters4/5

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

The input schema has 0% description coverage, so the description fully compensates by providing meanings and defaults: 'hex_code: Hex-encoded machine code bytes', 'arch: CPU architecture. Default: x86_64', 'base_address: Base address. Default: 0'. It adds value beyond the schema's minimal titles, though it could clarify valid arch values.

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 tool performs control flow analysis on machine code, identifying basic blocks, jumps, calls, and returns. It uses a specific verb-resource pair and distinguishes itself from siblings like 'disassemble_hex' (pure disassembly) and 'find_xrefs' (cross-references).

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 implies use for control flow analysis but does not explicitly state when to use this tool versus alternatives (e.g., disassemble_hex or find_xrefs). There is no guidance on when not to use it or prerequisites, leaving the agent to infer context.

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