Skip to main content
Glama

Set comments at addresses

set_comments

Add comments to specific addresses in disassembly and decompiler views, clarifying binary analysis directly in IDA.

Instructions

Set comments at addresses (both disassembly and decompiler views)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
itemsYes
instance_idNoOptional database instance id. If omitted, use the current target.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv20261008.0.1

TDQS

C2.7/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. It usefully notes that comments affect both disassembly and decompiler views, but it does not disclose whether existing comments are overwritten, whether the operation is persistent, what permissions are required, or any other side effects of this mutation.

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 with no filler. It is efficient, though its extreme brevity contributes to the gaps noted in other dimensions rather than being a structural flaw.

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?

An output schema exists, so return values need not be explained. However, for a mutation tool with no annotations, the description omits critical context: whether setting a comment replaces an existing one, how it relates to append_comments, and what happens if the address already has a comment. These omissions leave the tool's core semantics ambiguous.

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 50%: instance_id is described, but the items parameter has an empty description. The description's phrase 'at addresses' hints at multiple addresses but does not clarify that items accepts either a single object or an array, nor does it add meaning beyond the addr/comment subfield descriptions already in 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 clear verb and resource: setting comments at addresses, with the added scope that both disassembly and decompiler views are affected. It does not explicitly differentiate itself from the sibling tool append_comments, leaving the agent to infer the distinction between setting and appending comments.

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 use this tool versus alternatives such as append_comments, nor are any prerequisites stated (e.g., requiring an open database). The description only states what the tool does, not the context in which it should be chosen.

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