delete-lineage
Remove a lineage connection between two data entities by providing their entity types and UUIDs.
Instructions
Delete a lineage edge between two entities
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fromEntity | Yes | Source entity type (e.g. 'table') | |
| fromId | Yes | Source entity UUID | |
| toEntity | Yes | Target entity type | |
| toId | Yes | Target entity UUID |
Implementation Reference
- src/tools/lineage.ts:62-65 (handler)The actual handler function that executes the delete-lineage tool logic. It calls assertWriteAllowed() and then sends a DELETE request to /lineage/{fromEntity}/{fromId}/{toEntity}/{toId}.
export async function deleteLineage(params: z.infer<typeof deleteLineageSchema>) { assertWriteAllowed(); return omClient.delete(`/lineage/${params.fromEntity}/${params.fromId}/${params.toEntity}/${params.toId}`); } - src/tools/lineage.ts:55-60 (schema)Zod schema defining the input parameters for delete-lineage: fromEntity, fromId, toEntity, toId (all strings).
export const deleteLineageSchema = z.object({ fromEntity: z.string().describe("Source entity type (e.g. 'table')"), fromId: z.string().describe("Source entity UUID"), toEntity: z.string().describe("Target entity type"), toId: z.string().describe("Target entity UUID"), }); - src/index.ts:206-206 (registration)Registration of the 'delete-lineage' tool with the MCP server, linking its schema and handler via wrapToolHandler.
tool("delete-lineage", "Delete a lineage edge between two entities", deleteLineageSchema.shape, wrapToolHandler(deleteLineage));