Skip to main content
Glama

stepout

Exit current function during debugging to return to the calling function, allowing you to analyze program flow and identify issues in Go code execution.

Instructions

Step out of current function

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sessionIdYesID of the debug session

Implementation Reference

  • The core handler logic for the 'stepout' tool. It sends a Delve 'stepout' command to the debug session and returns a textual confirmation message.
    case "stepout": {
      await sendDelveCommand(session, "Command", { name: "stepout" });
      return {
        content: [{
          type: "text",
          text: "Stepped out of function"
        }]
      };
    }
  • src/server.ts:223-235 (registration)
    Registration of the 'stepout' tool in the MCP server's listTools response, defining its name, description, and input schema (requires sessionId).
    {
      name: "stepout",
      description: "Step out of current function",
      inputSchema: {
        type: "object",
        properties: {
          sessionId: {
            type: "string",
            description: "ID of the debug session"
          }
        },
        required: ["sessionId"]
      }
  • src/server.ts:410-413 (registration)
    Dispatch logic in the callTool handler that routes 'stepout' (and other control commands) to the handleControlCommands function.
    // Control commands
    if (["setBreakpoint", "removeBreakpoint", "continue", "next", "step", "stepout", "variables", "evaluate"].includes(name)) {
      return handleControlCommands(name, args);
    }
  • Input schema for the 'stepout' tool, specifying that a sessionId is required.
    inputSchema: {
      type: "object",
      properties: {
        sessionId: {
          type: "string",
          description: "ID of the debug session"
        }
      },
      required: ["sessionId"]
    }
Behavior2/5

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

With no annotations provided, the description carries full burden but only states the action without behavioral context. It doesn't disclose what 'step out' means operationally (e.g., exits current function scope, resumes execution until return), whether it requires specific debug states, or what happens after execution. This is inadequate for a debug control tool.

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 a single, efficient sentence with zero wasted words. It's appropriately sized for a simple debug command and front-loads the core action, making it easy to parse quickly.

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?

For a debug control tool with no annotations and no output schema, the description is incomplete. It lacks context on behavior, side effects, expected outcomes, or how it fits into the debug workflow with siblings. The agent would struggle to use this effectively without additional inference.

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?

The schema description coverage is 100%, with the single parameter 'sessionId' documented in the schema. The description adds no parameter-specific information beyond what the schema provides, so it meets the baseline of 3 where the schema handles parameter documentation.

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 'Step out of current function' clearly indicates the action (step out) and target (current function) with a specific verb. However, it doesn't differentiate from sibling tools like 'step' or 'next' which also control debug execution flow, so it's not fully distinguished from alternatives.

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 'step', 'next', or 'continue'. It doesn't mention prerequisites (e.g., must be in a debug session) or exclusions, leaving the agent to infer usage from the tool name alone.

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/dwisiswant0/delve-mcp'

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