pylon_create_tag
Create a tag to categorize accounts, issues, or contacts by specifying a name, target object type, and optional hex color code.
Instructions
Create a new tag
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | The tag name/value | |
| object_type | Yes | Type of object this tag applies to | |
| hex_color | No | Hex color code for the tag (e.g., #FF5733) |
Implementation Reference
- src/index.ts:1074-1093 (handler)Handler (tool registration) for pylon_create_tag - defines the tool with Zod schema and invokes client.createTag()
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) }], }; }, );