delete-glossary
Remove a glossary using its unique identifier. Supports hard deletion and recursive removal of all related terms.
Instructions
Delete a glossary by UUID
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Glossary UUID | |
| hardDelete | No | ||
| recursive | No |
Implementation Reference
- src/tools/glossary.ts:70-74 (schema)Zod schema for the delete-glossary tool: accepts 'id' (UUID), optional 'hardDelete' (boolean, default false), and optional 'recursive' (boolean, default false).
export const deleteGlossarySchema = z.object({ id: z.string().describe("Glossary UUID"), hardDelete: z.boolean().optional().default(false), recursive: z.boolean().optional().default(false), }); - src/tools/glossary.ts:76-82 (handler)Handler function for delete-glossary: checks write permissions, then sends a DELETE request to /glossaries/{id} with query params hardDelete and recursive.
export async function deleteGlossary(params: z.infer<typeof deleteGlossarySchema>) { assertWriteAllowed(); return omClient.delete(`/glossaries/${params.id}`, { hardDelete: params.hardDelete, recursive: params.recursive, }); } - src/index.ts:48-55 (registration)Import of deleteGlossarySchema and deleteGlossary from ./tools/glossary.ts into the main index file.
import { listGlossariesSchema, listGlossaries, getGlossarySchema, getGlossary, getGlossaryByNameSchema, getGlossaryByName, createGlossarySchema, createGlossary, updateGlossarySchema, updateGlossary, deleteGlossarySchema, deleteGlossary, listGlossaryTermsSchema, listGlossaryTerms, getGlossaryTermSchema, getGlossaryTerm, getGlossaryTermByNameSchema, getGlossaryTermByName, createGlossaryTermSchema, createGlossaryTerm, updateGlossaryTermSchema, updateGlossaryTerm, deleteGlossaryTermSchema, deleteGlossaryTerm, } from "./tools/glossary.js"; - src/index.ts:251-251 (registration)Registration of the 'delete-glossary' tool with the MCP server using tool(), linking the schema shape and wrapped handler.
tool("delete-glossary", "Delete a glossary by UUID", deleteGlossarySchema.shape, wrapToolHandler(deleteGlossary));