puppygraph_add_edge_attribute
Add a source column as an attribute to an existing edge type in the PuppyGraph schema, with validation that prevents changes if the column or type is invalid.
Instructions
Add one attribute (a source column) to an edge type of the installed schema. 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_label": "<edge_label>",
"name": "<name>",
"type": "<type>"
},
"name": "puppygraph_add_edge_attribute"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Attribute name (not already on the element) | |
| type | Yes | The column's schemaType from puppygraph_describe_table, as is (e.g. String, Long, DECIMAL(12,2), DateTime) | |
| edge_label | Yes | Existing edge label | |
| source_field_name | No | Source column; defaults to the attribute name |