pylon_delete_issue
Delete an issue from the Pylon customer support platform by specifying its ID to remove resolved or outdated tickets from the system.
Instructions
Delete an issue
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The issue ID to delete |
Implementation Reference
- src/index.ts:387-392 (handler)Handler function for pylon_delete_issue MCP tool that invokes PylonClient.deleteIssue and formats the response as text.async ({ id }) => { const result = await client.deleteIssue(id); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }], }; },
- src/index.ts:384-386 (schema)Zod input schema defining the 'id' parameter for the tool.{ id: z.string().describe('The issue ID to delete'), },
- src/index.ts:381-393 (registration)Registration of the pylon_delete_issue tool on the MCP server.server.tool( 'pylon_delete_issue', 'Delete an issue', { id: z.string().describe('The issue ID to delete'), }, async ({ id }) => { const result = await client.deleteIssue(id); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }], }; }, );
- src/pylon-client.ts:323-328 (helper)PylonClient helper method implementing the API DELETE call to /issues/{id}.async deleteIssue(id: string): Promise<SingleResponse<{ success: boolean }>> { return this.request<SingleResponse<{ success: boolean }>>( 'DELETE', `/issues/${id}`, ); }