Skip to main content
Glama

Disassemble a function

disasm
Read-only

Disassemble a function by address or name, with offset and max-instruction pagination plus an optional total instruction count.

Instructions

Disassemble function with offset/max_instructions pagination and optional total count.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
addrYesFunction address or name to disassemble
offsetNoSkip first N instructions (default: 0)
instance_idNoOptional database instance id. If omitted, use the current target.
include_totalNoCompute total instruction count (default: false)
max_instructionsNoMax instructions per function (default: 5000, max: 50000)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
asmNo
addrNo
errorNo
cursorNo
instruction_countNo
total_instructionsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv20261008.0.1

TDQS

B3.3/5.0
Behavior3/5

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

The readOnlyHint annotation already establishes that this is a safe read operation. The description adds that results support offset/max_instructions pagination and optional total counting, but does not explain output shape, limits behavior, or permissions beyond what the schema provides.

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 front-loaded sentence with no wasted words. It names the action and the notable behavioral controls immediately.

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 explained, and all parameters are fully described in the schema. However, given the large set of disassembly-adjacent siblings, the description should do more to explain when this tool is preferable to decompile or instruction-query tools.

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 thoroughly. The description mentions offset, max_instructions, and total count, but adds no syntax or semantic detail beyond the schema.

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: disassemble a function, with pagination and total-count features. It is clear what the tool does, but it does not distinguish itself from nearby siblings such as decompile, insn_query, or basic_blocks.

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?

The description gives no explicit guidance on when to use this tool instead of decompile, insn_query, basic_blocks, or get_bytes. Usage is only implied by the word 'Disassemble', with no alternatives or exclusions named.

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