Skip to main content
Glama

remove_logpoint

Remove a debugging logpoint from PHP applications to clean up debug output and maintain code clarity during development.

Instructions

Remove a logpoint

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
logpoint_idYesLogpoint ID

Implementation Reference

  • MCP tool handler function for 'remove_logpoint' that invokes the LogpointManager's removeLogpoint method and returns JSON success response.
    async ({ logpoint_id }) => { const success = ctx.logpointManager.removeLogpoint(logpoint_id); return { content: [{ type: 'text', text: JSON.stringify({ success, logpoint_id }) }], }; }
  • Zod input schema defining the required 'logpoint_id' parameter as a string.
    { logpoint_id: z.string().describe('Logpoint ID'), },
  • Registration of the 'remove_logpoint' MCP tool using server.tool(), including description, schema, and handler.
    server.tool( 'remove_logpoint', 'Remove a logpoint', { logpoint_id: z.string().describe('Logpoint ID'), }, async ({ logpoint_id }) => { const success = ctx.logpointManager.removeLogpoint(logpoint_id); return { content: [{ type: 'text', text: JSON.stringify({ success, logpoint_id }) }], }; } );
  • Helper method in LogpointManager class that removes a logpoint by ID from the internal Map and logs the action.
    removeLogpoint(id: string): boolean { const removed = this.logpoints.delete(id); if (removed) { logger.debug(`Logpoint removed: ${id}`); } return removed; }

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

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