Skip to main content
Glama

delete_edge

Remove relationships between nodes in a knowledge graph to correct errors, update structures, or eliminate redundancy. Requires graph and edge identification with confirmation for safety.

Instructions

Delete edges from the knowledge graph. This tool must be used in conjunction with list_graphs and get_node_details tools, and the operation cannot be undone. Use cases:

  1. Delete incorrectly created relationships

  2. Update relationship structure between nodes

  3. Clean up redundant relationships when restructuring the graph

Usage recommendations:

  1. First call list_graphs to get target graph information

  2. Use get_node_details to get edge details

  3. Confirm deletion won't break important relationship structures

  4. Set confirmDelete to true to confirm deletion

Important notes:

  • Deleting edges won't affect related nodes

  • Need to call get_node_details again to view updated relationships

Return data:

  • data: Deletion result

    • id: Deleted edge ID

    • deletedAt: Deletion time

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
graphIdYesGraph ID, must be obtained from list_graphs return data
edgeIdYesEdge ID, must be obtained from relationships array in get_node_details
confirmDeleteYesConfirm deletion, must be set to true, this is a safety measure to prevent accidental deletion

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/aiuluna/knowledge-graph-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server