Skip to main content
Glama

Add Segment

add_segment

Add a memory segment to an IDA Pro database (IDB) by setting its start address, size, name, permissions, bitness, and class.

Instructions

Add a new memory segment to the IDB.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesSegment name (e.g. '.text', 'my_seg')
permNoPermission string: combination of r/w/x (e.g. 'rwx', 'r-x')rw-
sizeYesSegment size in bytes
bitnessNoAddress size: 16, 32, or 64
timeoutNoTimeout in seconds
start_eaYesSegment start address (hex string, e.g. '0x401000')
seg_classNoSegment class (e.g. 'CODE', 'DATA', 'BSS')DATA
instance_idNoInstance id override

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.9.7

TDQS

C2.6/5.0
Behavior1/5

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

With no annotations, the description carries the full burden of behavioral disclosure. It does not mention permissions required, whether the change is reversible, how overlaps are handled, or any side effects. It only implies a mutation, offering no behavioral context.

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 a single, front-loaded sentence that is concise and wastes no words. However, given the complexity of the tool (8 parameters), it is arguably too sparse, but it remains structurally sound.

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

Completeness1/5

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

For an 8-parameter mutation tool with no annotations and no output schema, the description is grossly incomplete. It does not mention required parameters, defaults, or any behavioral context needed to invoke the tool correctly.

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 input schema already documents all 8 parameters thoroughly. The description adds no parameter meaning beyond what the schema provides, which is the baseline expectation when coverage is high.

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 ('add') and resource ('memory segment') and specifies the target ('IDB'), making the purpose clear. However, it does not differentiate from sibling tools like delete_segment or list_segments, so it falls short of a 5.

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 provides no guidance on when to use this tool, when not to, or what alternatives exist. It simply states what it does, leaving usage context entirely to inference.

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