pylon_delete_tag
Delete a tag by its ID to remove it from the Pylon customer support platform.
Instructions
Delete a tag
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The tag ID to delete |
Implementation Reference
- src/index.ts:1117-1122 (handler)The handler function for pylon_delete_tag. Takes an id parameter, calls client.deleteTag(id), and returns the result as JSON text content.
async ({ id }) => { const result = await client.deleteTag(id); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }], }; }, - src/index.ts:1111-1123 (registration)Registration of the 'pylon_delete_tag' tool on the MCP server with its description ('Delete a tag'), schema (id: z.string()), and handler callback.
server.tool( 'pylon_delete_tag', 'Delete a tag', { id: z.string().describe('The tag ID to delete'), }, async ({ id }) => { const result = await client.deleteTag(id); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }], }; }, ); - src/index.ts:1114-1116 (schema)Zod schema for pylon_delete_tag: requires a single 'id' string parameter describing 'The tag ID to delete'.
{ id: z.string().describe('The tag ID to delete'), }, - src/pylon-client.ts:588-593 (helper)The PylonClient.deleteTag method sends a DELETE request to /tags/:id and returns a SingleResponse<{ success: boolean }>.
async deleteTag(id: string): Promise<SingleResponse<{ success: boolean }>> { return this.request<SingleResponse<{ success: boolean }>>( 'DELETE', `/tags/${id}`, ); }