Skip to main content
Glama

ida_comment

Set a comment at an address or named target; enable repeatable to attach a note that follows cross-references.

Instructions

Set a comment at an address. repeatable=true writes a repeatable comment that follows xrefs.

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": {
      "target": "<target>",
      "text": "<text>"
    },
    "name": "ida_comment"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYes
targetYesAddress or name: '0x401000', 'sub_401000', a defined name, 'libUE4.so+0x1234', or a unique part of a function name.
repeatableNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.1/5.0
Behavior2/5

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

With no annotations, the description carries the full burden. It implies a write, but does not state whether existing comments are overwritten, whether the change is persisted (or requires ida_save), whether the address must be valid/within a defined function, or that changes are stored in the IDA database.

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 short sentences with zero filler; the core action is front-loaded and the non-obvious parameter semantics follow immediately. Nothing is redundant with the name or 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?

For a three-parameter mutation tool with no annotations and no output schema, the definition covers the repeatable flag but omits overwrite behavior, persistence/save requirements, and error conditions. It is adequate to invoke correctly but leaves real gaps about side effects.

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 coverage is only 33%, with 'text' undocumented and 'target' already well described in the schema. The description does add genuine meaning for 'repeatable' — that it produces a comment following cross-references — which is a non-obvious IDA concept, but it leaves 'text' (formatting, length, multi-line support) unexplained.

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?

States a specific verb and resource — 'Set a comment at an address' — which unambiguously identifies the operation. No sibling tool in the list covers comments, so differentiation is not a concern, but the description does not explicitly distinguish the repeatable vs non-repeatable mode as a purpose-level distinction.

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 explicit when-to-use guidance, no prerequisites (e.g. database must be open), and no mention of alternatives or follow-up actions. The only usage-like hint is the 'repeatable=true' note, which is about parameter behavior rather than when to choose this tool.

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