dex_create_tag
Create a new tag with a name and optional color to categorize and organize contacts in your CRM system.
Instructions
Create a new tag with a name and optional color for categorizing contacts.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| color | No |
Implementation Reference
- src/tools/tags.ts:20-37 (handler)Handler implementation and registration of the dex_create_tag tool.
server.tool( "dex_create_tag", "Create a new tag with a name and optional color for categorizing contacts.", { name: z.string(), color: z.string().optional(), }, async (args) => { try { const result = await dex.post("/v1/tags/", { tag: { name: args.name, color: args.color }, }); return toResult(result); } catch (error) { return toError(error); } } );