Skip to main content
Glama

update_edge

Modify edge properties in knowledge graphs to update labels, adjust weights, or change metadata for accurate relationship representation.

Instructions

Modify edges in the knowledge graph. This tool must be used in conjunction with list_graphs and get_node_details tools. Use cases:

  1. Update edge label information

  2. Adjust edge weight values

  3. Update edge metadata information

Usage recommendations:

  1. First call list_graphs to get target graph information

  2. Use get_node_details to view edge list of related nodes

  3. Only update fields that need to be modified, keep others unchanged

  4. After updating, call get_node_details again to confirm changes

Return data:

  • data: Updated edge information

    • id: Edge ID

    • type: Edge type

    • sourceId: Source node ID

    • targetId: Target node ID

    • label: Edge label

    • weight: Edge weight

    • metadata: Edge metadata

    • updatedAt: Update 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
labelNoNew edge label (optional)
weightNoNew edge weight (optional), used to represent relationship strength
metadataNoNew edge metadata (optional)

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