create-glossary
Create a new glossary to organize and define business terms with a name and description.
Instructions
Create a new glossary for business terms
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Glossary name | |
| displayName | No | ||
| description | Yes | Glossary description | |
| mutuallyExclusive | No | Terms mutually exclusive | |
| owners | No | ||
| reviewers | No | ||
| tags | No |
Implementation Reference
- src/tools/glossary.ts:55-58 (handler)The handler function that executes the create-glossary tool logic. It calls assertWriteAllowed() then POSTs to /glossaries endpoint.
export async function createGlossary(params: z.infer<typeof createGlossarySchema>) { assertWriteAllowed(); return omClient.post("/glossaries", params); } - src/tools/glossary.ts:45-53 (schema)Input schema for create-glossary: defines name (required), displayName (optional), description (required), mutuallyExclusive (optional, default false), owners/reviewers/tags (optional arrays of records).
export const createGlossarySchema = z.object({ name: z.string().describe("Glossary name"), displayName: z.string().optional(), description: z.string().describe("Glossary description"), mutuallyExclusive: z.boolean().optional().default(false).describe("Terms mutually exclusive"), owners: z.array(z.record(z.string(), z.any())).optional(), reviewers: z.array(z.record(z.string(), z.any())).optional(), tags: z.array(z.record(z.string(), z.any())).optional(), }); - src/index.ts:249-249 (registration)Registers the create-glossary tool with the MCP server, binding createGlossarySchema.shape and wrapToolHandler(createGlossary).
tool("create-glossary", "Create a new glossary for business terms", createGlossarySchema.shape, wrapToolHandler(createGlossary)); - src/index.ts:49-51 (helper)Import of createGlossarySchema and createGlossary from the glossary module.
listGlossariesSchema, listGlossaries, getGlossarySchema, getGlossary, getGlossaryByNameSchema, getGlossaryByName, createGlossarySchema, createGlossary, updateGlossarySchema, updateGlossary, deleteGlossarySchema, deleteGlossary,