Skip to main content
Glama

remove_logpoint

Remove a debugging logpoint from PHP applications to clean up debugging sessions and stop specific logging operations.

Instructions

Remove a logpoint

Input Schema

NameRequiredDescriptionDefault
logpoint_idYesLogpoint ID

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "logpoint_id": { "description": "Logpoint ID", "type": "string" } }, "required": [ "logpoint_id" ], "type": "object" }

Implementation Reference

  • Registration of the 'remove_logpoint' MCP tool, including description, input schema, and inline handler function.
    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 }) }], }; } );
  • Input schema validation using Zod for the logpoint_id parameter.
    { logpoint_id: z.string().describe('Logpoint ID'), },
  • The MCP tool handler function that invokes the logpointManager to remove the specified logpoint and returns a JSON response indicating success.
    async ({ logpoint_id }) => { const success = ctx.logpointManager.removeLogpoint(logpoint_id); return { content: [{ type: 'text', text: JSON.stringify({ success, logpoint_id }) }], }; }
  • Core helper method in LogpointManager that deletes the 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