update-glossary-term
Update a glossary term by applying JSON Patch operations to modify its fields.
Instructions
Update a glossary term using JSON Patch operations
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Glossary term UUID | |
| operations | Yes | JSON Patch operations |
Implementation Reference
- src/tools/glossary.ts:149-152 (handler)The actual handler function that executes the update-glossary-term tool logic. It asserts write permissions and makes a PATCH request to the glossary term API endpoint using JSON Patch operations.
export async function updateGlossaryTerm(params: z.infer<typeof updateGlossaryTermSchema>) { assertWriteAllowed(); return omClient.patch(`/glossaryTerms/${params.id}`, params.operations); } - src/tools/glossary.ts:144-147 (schema)The schema definition for the update-glossary-term tool, specifying the required 'id' (UUID) and 'operations' (JSON Patch operations) parameters.
export const updateGlossaryTermSchema = z.object({ id: z.string().describe("Glossary term UUID"), operations: z.array(z.record(z.string(), z.any())).describe("JSON Patch operations"), }); - src/index.ts:259-259 (registration)The tool registration line where 'update-glossary-term' is registered with its schema and handler via the tool() function.
tool("update-glossary-term", "Update a glossary term using JSON Patch operations", updateGlossaryTermSchema.shape, wrapToolHandler(updateGlossaryTerm)); - src/index.ts:54-54 (registration)The import statement that brings the updateGlossaryTermSchema and updateGlossaryTerm handler into the registration file.
updateGlossaryTermSchema, updateGlossaryTerm, deleteGlossaryTermSchema, deleteGlossaryTerm,