Skip to main content
Glama

pylon_create_tag

Create new tags to categorize and organize support tickets in Pylon's customer support platform, enabling effective filtering and management of issues and contacts.

Instructions

Create a new tag for categorizing issues and contacts. Use this to add new categories that help organize and filter your support tickets effectively.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesTag name that describes the category. Examples: "billing-question", "feature-request", "bug-report", "urgent", "enterprise-customer"
colorNoColor for the tag in hex format or color name. Examples: "#FF0000", "red", "#00AA00", "blue"

Implementation Reference

  • Handler for 'pylon_create_tag' tool that validates arguments are present and calls pylonClient.createTag(), returning the created tag as JSON text content
    case 'pylon_create_tag': {
      if (!args) throw new Error('Arguments required for creating tag');
      const tag = await pylonClient.createTag(args as any);
      return {
        content: [
          {
            type: 'text',
            text: JSON.stringify(tag, null, 2),
          },
        ],
      };
    }
  • Implementation of createTag method in PylonClient class that makes a POST request to /tags endpoint and returns the created tag
    async createTag(tag: Omit<PylonTag, 'id'>): Promise<PylonTag> {
      const response: AxiosResponse<PylonTag> = await this.client.post('/tags', tag);
      return response.data;
    }
  • Type definition for PylonTag interface with required id and name fields, and optional color field
    export interface PylonTag {
      id: string;
      name: string;
      color?: string;
    }
  • src/index.ts:291-300 (registration)
    Tool registration defining the tool name, description, and input schema with required 'name' property and optional 'color' property
    name: 'pylon_create_tag',
    description: 'Create a new tag for categorizing issues and contacts. Use this to add new categories that help organize and filter your support tickets effectively.',
    inputSchema: {
      type: 'object',
      properties: {
        name: { type: 'string', description: 'Tag name that describes the category. Examples: "billing-question", "feature-request", "bug-report", "urgent", "enterprise-customer"' },
        color: { type: 'string', description: 'Color for the tag in hex format or color name. Examples: "#FF0000", "red", "#00AA00", "blue"' },
      },
      required: ['name'],
    },

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

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