Skip to main content
Glama

ida_import_sdk

Import a C/C++ SDK or Dumper-7 header into the local type library so structs, field names, and offsets appear in IDA's decompiler. Returns added type count and error count.

Instructions

Parse a C/C++ header (Dumper-7 or any SDK dump) into the local type library so structs, field names and offsets appear in the decompiler. Returns the error count and how many types were added.

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": {
      "path": "<path>"
    },
    "name": "ida_import_sdk"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesPath to the .h/.hpp file.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it does disclose that this mutates the local type library and reports 'error count and how many types were added'. It omits key behavioral facts: whether existing types with the same name are overwritten, what partial imports/errors mean, and whether the change is persisted without ida_save.

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?

Two sentences with no filler; the action and destination come first and the return-value note follows naturally.

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?

For a one-parameter tool with no output schema, the description covers what it does, what it affects, and what it returns. It would be complete at 5 with a note on collision/overwrite behavior and whether results are persisted, which matter for a type-library mutation.

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?

The single parameter has 100% schema description coverage ('Path to the .h/.hpp file'), so the baseline is 3. The description adds modest meaning by naming which header formats are acceptable (Dumper-7 or generic SDK dumps) but gives no path/format edge-case details.

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?

Specific verb and resource: 'Parse a C/C++ header ... into the local type library', plus the downstream effect ('structs, field names and offsets appear in the decompiler'). It does not explicitly contrast itself with siblings like ida_struct or ida_set_type, 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 Guidelines3/5

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

The stated effect implies when this is useful (when you want structs/offsets visible in decompiler output) and parenthetically names the kind of input ('Dumper-7 or any SDK dump'). There is no explicit when-not guidance or routing to alternatives such as ida_struct or ida_set_type for per-type edits.

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