Skip to main content
Glama

core

Analyze Go program core dumps to identify crashes and errors by examining executable and dump files.

Instructions

Examine a core dump

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
executableYesPath to the executable that produced the core dump
corePathYesPath to the core dump file

Implementation Reference

  • The core tool handler implementation within handleDebugCommands switch statement. It destructures args for executable and corePath, starts a debug session for core dump analysis, and returns a success message with session ID.
    case "core": { const { executable, corePath } = args; const session = await startDebugSession("core", executable, [corePath]); return { content: [{ type: "text", text: `Started core dump analysis session ${session.id} for ${executable} with core ${corePath}` }] }; }
  • src/server.ts:406-407 (registration)
    Registration dispatch in CallToolRequestSchema handler: checks if tool name is 'core' and delegates to handleDebugCommands.
    if (["debug", "attach", "exec", "test", "core", "dap", "replay", "trace"].includes(name)) { return handleDebugCommands(name, args);
  • src/server.ts:270-287 (registration)
    Tool registration in ListToolsRequestSchema response: defines 'core' tool name, description, and input schema requiring executable and corePath.
    { name: "core", description: "Examine a core dump", inputSchema: { type: "object", properties: { executable: { type: "string", description: "Path to the executable that produced the core dump" }, corePath: { type: "string", description: "Path to the core dump file" } }, required: ["executable", "corePath"] } },
  • Input schema definition for the 'core' tool, specifying properties and requirements.
    inputSchema: { type: "object", properties: { executable: { type: "string", description: "Path to the executable that produced the core dump" }, corePath: { type: "string", description: "Path to the core dump file" } }, required: ["executable", "corePath"] } },

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