Skip to main content
Glama

listing.code_units.list

List code units within a specified range with pagination and direction controls, enabling structured navigation of disassembly results.

Instructions

List code units in a range with pagination and direction controls.

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": {
      "session_id": "<session_id>"
    },
    "name": "listing.code_units.list"
  }
}

Input Schema

NameRequiredDescriptionDefault
endNo
limitNo
startNo
offsetNo
forwardNo
session_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.7/5.0
Behavior2/5

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

With no annotations present, the description carries the full behavioral burden, yet it only discloses that results are paginated and direction-controlled. It does not say whether the range bounds are inclusive or exclusive, what ordering is returned, whether start/end accept addresses versus indices, or whether the operation is read-only (implied but unstated).

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?

A single front-loaded sentence with no filler; every phrase maps to a capability of the tool. It is terse to the point of under-specification, but nothing is redundant.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a six-parameter tool with no annotations, no output schema, and zero schema documentation, one sentence is not enough to call it correctly. Key details such as bound inclusivity, address-versus-index typing for start/end, and default limit/offset behavior are absent.

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

Parameters2/5

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

Schema description coverage is 0% across six parameters, so the one-sentence description must compensate. It gestures at three parameter families (range for start/end, pagination for limit/offset, direction for forward) but gives no formats, defaults, or semantics, and never mentions the required session_id.

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 (list code units) and adds a scope qualifier ('in a range') that separates it from point-lookup siblings such as listing.code_unit.at or listing.code_unit.containing. It stops short of naming an alternative explicitly, but the operation is unambiguous.

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 choose this tool over listing.code_unit.after/before/at/containing or the disassemble listing tools, nor any stated preconditions such as needing an open program or session. Usage is only implied by the word 'List'.

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