Skip to main content
Glama

pylon_delete_tag

Remove tags from the Pylon customer support platform by specifying the tag ID to delete.

Instructions

Delete a tag

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesThe tag ID to delete

Implementation Reference

  • src/index.ts:567-579 (registration)
    Registration of the 'pylon_delete_tag' MCP tool, including Zod input schema validation and a thin handler function that delegates to PylonClient.deleteTag and formats the response.
    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) }], }; }, );
  • Core implementation of the deleteTag method in PylonClient class, which performs a DELETE HTTP request to the Pylon API endpoint `/tags/${id}` using the private request method.
    async deleteTag(id: string): Promise<SingleResponse<{ success: boolean }>> { return this.request<SingleResponse<{ success: boolean }>>( 'DELETE', `/tags/${id}`, ); }
  • TypeScript interface defining the structure of a Tag object used throughout the codebase.
    export interface Tag { id: string; value: string; object_type: 'account' | 'issue' | 'contact'; hex_color?: string; }
  • Zod schema for input validation of the tool, requiring a string 'id' parameter.
    { id: z.string().describe('The tag ID to delete'), },
  • MCP tool handler function that calls the client method and returns a formatted text response.
    async ({ id }) => { const result = await client.deleteTag(id); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }], }; },

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/JustinBeckwith/pylon-mcp'

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