puppygraph_add_edge
Adds one edge type to the installed PuppyGraph schema, requiring both endpoint nodes to exist. Validate the join before adding and re-check edges after, since the change affects all users.
Instructions
Add one edge type to the installed schema; both endpoint nodes must exist. Only add an edge whose join you checked: with puppygraph_check_join where the server supports it (hit_rate near 1.0; below about 0.95 it's a soft reference, so tell the user), otherwise say it is unverified, and run puppygraph_check_edges after adding it. Changes the installed schema for everyone who queries this PuppyGraph; other elements stay as they are. The element is checked first (columns, types, keys) and nothing changes on a problem.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"edge": "<edge>"
},
"name": "puppygraph_add_edge"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| edge | Yes | One edge as in the graph schema: label, fromNodeLabel, toNodeLabel, fromKey, toKey, attribute, dataSourceGroup.externalDataSource (see puppygraph_schema_template) |