Skip to main content
Glama

ida_gui_state

Retrieve the live IDA Pro GUI state, including the cursor address, its function, active widget title, and current selection.

Instructions

Live GUI only: the address the analyst's cursor is on, the function it belongs to, the active widget title and any selection.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "ida_gui_state"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

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 must carry the full behavioral burden. It does disclose the critical environmental dependency (requires a live GUI) and enumerates the returned fields, which is valuable. It doesn't say whether the call errors or returns empty when no GUI is attached, nor does it state that it is a non-mutating read of analyst focus.

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?

One sentence, front-loaded with the gating constraint, then a compact enumeration of returned values. No filler, though a slightly clearer separation between the precondition and the return payload would improve scanability.

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 zero-parameter tool with no output schema, the description must supply the return semantics, and it does by listing four concrete fields. The only material omission is the failure mode when no GUI session exists, which matters because the tool's entire utility depends on that condition.

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

Parameters4/5

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

The tool takes zero parameters and the schema is trivially complete, so parameter semantics are not a gap. The description correctly implies the result is derived entirely from current UI state with no caller-supplied input.

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 names the exact resource and the specific values returned: cursor address, owning function, active widget title, and selection. The qualifier 'Live GUI only' differentiates it from headless-data siblings such as ida_functions or ida_disasm, though it doesn't name a direct alternative.

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?

'Live GUI only' functions as an implicit when-not-to-use constraint (no GUI session, batch/headless operation), which is the most important gating condition. It gives no explicit when-to-use guidance and doesn't reference any sibling tool, leaving the caller to infer that this is for reading current analyst focus rather than enumerating program state.

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