Skip to main content
Glama
wallter

smart-xdebug-mcp

by wallter

control_execution

Execute step into, step over, step out, continue, or stop actions to control Xdebug execution flow during PHP debugging.

Instructions

Controls the debugger's execution flow. Use to step through code or end sessions.

ACTIONS:

step_over: Execute current line, pause at next line in same scope. Use when: Line calls a function you don't need to debug. Example: Skip framework internals, focus on your logic.

step_into: Step INTO the function call on the current line. Use when: You need to debug inside a called function. Example: Debug why UserService::create() fails.

step_out: Run until current function returns to its caller. Use when: Done debugging a function, want to return to caller. Example: Finished debugging a helper, return to controller.

continue: Run until next breakpoint or exception. Use when: Skip to the next interesting point. Example: Jump from authentication to order processing.

stop: Terminate the debug session immediately. Use when: Done debugging, or session is stuck/errored. IMPORTANT: Always stop sessions when done to free the port.

REQUIRES:

  • Any action: Session must be active

  • step_over/step_into/step_out/continue: Session must be paused

AFTER STOP: You can start a new session with start_debug_session.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionYesThe action: 'step_over' (next line), 'step_into' (enter function), 'step_out' (exit function), 'continue' (run to breakpoint), 'stop' (end session)
Behavior5/5

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

With no annotations, the description fully bears the transparency burden. It explains the behavior of each action (e.g., step_over executes current line and pauses next, stop terminates session) and includes important notes like freeing ports after stop. This provides clear expectations of tool behavior.

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?

The description is well-structured with sections for ACTIONS (each with concise description, use case, example), REQUIRES, and AFTER STOP. Every sentence adds value, and the format is easy to scan. It is appropriately sized for the complexity.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given there is no output schema and only one parameter, the description is complete. It covers all actions, prerequisites, and post-stop behavior. It also addresses potential errors implicitly by requiring paused state for stepping actions. No gaps are apparent.

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

Parameters5/5

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

The description adds significant meaning beyond the input schema. While the schema describes each enum value, the description provides use cases and examples (e.g., 'Skip framework internals' for step_over, 'Debug why UserService::create() fails' for step_into), enriching parameter understanding.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states 'Controls the debugger's execution flow. Use to step through code or end sessions.' It lists specific actions that distinguish it from sibling tools like start_debug_session, set_breakpoint, etc., making the tool's purpose unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

The description provides explicit usage guidance for each action (e.g., 'Use when: Line calls a function you don't need to debug.' for step_over) and states prerequisites (session must be active, paused for stepping/continue). It also advises to always stop sessions to free ports, covering both when and how to use the tool effectively.

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/wallter/smart-xdebug-mcp'

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