Skip to main content
Glama

pylon_create_tag

Create custom tags to categorize and organize accounts, contacts, or issues within the Pylon customer support platform.

Instructions

Create a new tag

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
valueYesThe tag name/value
object_typeYesType of object this tag applies to
hex_colorNoHex color code for the tag (e.g., #FF5733)

Implementation Reference

  • src/index.ts:530-549 (registration)
    Registration of the MCP tool 'pylon_create_tag' including input schema and handler function that delegates to PylonClient.
    server.tool(
    	'pylon_create_tag',
    	'Create a new tag',
    	{
    		value: z.string().describe('The tag name/value'),
    		object_type: z
    			.enum(['account', 'issue', 'contact'])
    			.describe('Type of object this tag applies to'),
    		hex_color: z
    			.string()
    			.optional()
    			.describe('Hex color code for the tag (e.g., #FF5733)'),
    	},
    	async (params) => {
    		const result = await client.createTag(params);
    		return {
    			content: [{ type: 'text', text: JSON.stringify(result.data, null, 2) }],
    		};
    	},
    );
  • MCP tool handler for pylon_create_tag: calls PylonClient.createTag and formats response.
    async (params) => {
    	const result = await client.createTag(params);
    	return {
    		content: [{ type: 'text', text: JSON.stringify(result.data, null, 2) }],
    	};
    },
  • Zod input schema for pylon_create_tag tool.
    {
    	value: z.string().describe('The tag name/value'),
    	object_type: z
    		.enum(['account', 'issue', 'contact'])
    		.describe('Type of object this tag applies to'),
    	hex_color: z
    		.string()
    		.optional()
    		.describe('Hex color code for the tag (e.g., #FF5733)'),
    },
  • PylonClient.createTag method: performs POST request to /tags API endpoint.
    async createTag(data: {
    	value: string;
    	object_type: 'account' | 'issue' | 'contact';
    	hex_color?: string;
    }): Promise<SingleResponse<Tag>> {
    	return this.request<SingleResponse<Tag>>('POST', '/tags', data);
    }
  • TypeScript interface for Tag object used in createTag response.
    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