Skip to main content
Glama

pylon_get_tag

Retrieve a specific tag by its ID from the Pylon customer support platform for management and organization purposes.

Instructions

Get a specific tag by ID

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesThe tag ID

Implementation Reference

  • src/index.ts:516-528 (registration)
    Registration of the MCP tool 'pylon_get_tag' including name, description, input schema, and thin handler that delegates to PylonClient.getTag.
    server.tool( 'pylon_get_tag', 'Get a specific tag by ID', { id: z.string().describe('The tag ID'), }, async ({ id }) => { const result = await client.getTag(id); return { content: [{ type: 'text', text: JSON.stringify(result.data, null, 2) }], }; }, );
  • The handler function for the pylon_get_tag tool, which fetches the tag using PylonClient and returns a formatted text response.
    async ({ id }) => { const result = await client.getTag(id); return { content: [{ type: 'text', text: JSON.stringify(result.data, null, 2) }], }; },
  • Zod input schema for the pylon_get_tag tool requiring a string 'id' parameter.
    { id: z.string().describe('The tag ID'), },
  • Core helper method in PylonClient that implements the API call to retrieve a specific tag by ID.
    async getTag(id: string): Promise<SingleResponse<Tag>> { return this.request<SingleResponse<Tag>>('GET', `/tags/${id}`); }
  • TypeScript interface defining the structure of a Tag object.
    export interface Tag { id: string; value: string; object_type: 'account' | 'issue' | 'contact'; hex_color?: string; }

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