Skip to main content
Glama

AHK_Debug_DBGp

Destructive

Debug AutoHotkey v2 scripts via DBGp protocol to capture errors, analyze issues, and apply automated fixes during development.

Instructions

AutoHotkey v2 debugger via DBGp protocol. Enables autonomous debugging: capture errors, analyze them, and auto-apply fixes.

Actions:

  • start: Start DBGp listener (waits for AHK /Debug connection)

  • stop: Stop DBGp listener

  • status: Get connection status

  • run: Continue execution

  • step_into/step_over/step_out: Step debugging

  • capture_error: Wait for next error with full context

  • analyze_error: Build analysis prompt from error

  • apply_fix: Auto-apply code fix to file

  • list_errors/clear_errors: Manage error queue

  • get_source: Get source lines around a line

  • breakpoint_set/remove/list: Manage breakpoints

  • variables_get: Get variables (context: 0=local, 1=global)

  • evaluate: Evaluate expression

  • stack_trace: Get call stack

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionYesDebug action to perform
portNoDBGp port (default: 9000)
timeoutNoTimeout for capture_error in ms
fileNoFile path for breakpoint/fix/source
lineNoLine number
conditionNoBreakpoint condition
breakpoint_idNoBreakpoint ID for removal
contextNoVariable context: 0=local, 1=global
expressionNoExpression to evaluate
radiusNoSource context radius
originalNoOriginal line for apply_fix
replacementNoReplacement line for apply_fix
errorNoError object for analyze_error
Behavior3/5

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

Annotations provide openWorldHint=true and destructiveHint=true, indicating open-ended and potentially destructive operations. The description adds context by listing specific actions like 'apply_fix' (which aligns with destructiveHint) and mentions 'autonomous debugging', but doesn't elaborate on risks, permissions, or rate limits beyond what annotations imply. No contradiction with annotations.

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 appropriately sized and front-loaded with a high-level purpose, followed by a bulleted list of actions. Each action is named concisely, though some explanations (e.g., 'capture_error: Wait for next error with full context') could be more streamlined. Overall, it avoids unnecessary verbosity.

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?

Given the tool's complexity (13 parameters, no output schema) and annotations (openWorldHint, destructiveHint), the description is moderately complete. It outlines actions but lacks details on error handling, response formats, or integration with sibling tools. With destructiveHint=true, more cautionary notes would improve completeness.

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 parameters are well-documented in the schema. The description lists actions that map to the 'action' enum, adding some context (e.g., 'capture_error: Wait for next error with full context'), but doesn't provide additional syntax, format, or interaction details beyond the schema's parameter descriptions.

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 clearly states the tool's purpose as an 'AutoHotkey v2 debugger via DBGp protocol' that 'enables autonomous debugging', specifying the verb (debugging) and resource (AutoHotkey v2). It distinguishes from siblings like AHK_Debug_Agent by mentioning the DBGp protocol, but doesn't explicitly contrast with all debugging-related tools in the list.

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 versus alternatives like AHK_Debug_Agent or AHK_Lint. It lists actions but doesn't explain prerequisites (e.g., when to start the listener), sequencing (e.g., start before capture_error), or when to choose specific actions over others.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/TrueCrimeDev/ahk-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server