create-tag
Create a new tag by specifying its parent classification, name, and description. Optionally set a display name and style like color.
Instructions
Create a new tag under a classification
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| classification | Yes | FQN of the parent classification | |
| name | Yes | Tag name | |
| description | Yes | Tag description in markdown | |
| displayName | No | Display name | |
| style | No | Tag style (e.g. color) |
Implementation Reference
- src/tools/tags.ts:116-119 (handler)The handler function for create-tag tool. Validates write permissions and POSTs to /tags endpoint.
export async function createTag(params: z.infer<typeof createTagSchema>) { assertWriteAllowed(); return omClient.post("/tags", params); } - src/tools/tags.ts:108-114 (schema)Zod schema defining the input parameters for create-tag: classification (FQN), name, description, optional displayName, and optional style.
export const createTagSchema = z.object({ classification: z.string().describe("FQN of the parent classification"), name: z.string().describe("Tag name"), description: z.string().describe("Tag description in markdown"), displayName: z.string().optional().describe("Display name"), style: z.record(z.string(), z.any()).optional().describe("Tag style (e.g. color)"), }); - src/index.ts:330-330 (registration)Registration of the create-tag tool with MCP server, binding the schema and handler.
tool("create-tag", "Create a new tag under a classification", createTagSchema.shape, wrapToolHandler(createTag));