puppygraph_add_node_attribute
Add a source column as an attribute to an existing node type in the installed PuppyGraph schema, with validation before any change.
Instructions
Add one attribute (a source column) to a node 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": {
"node_label": "<node_label>",
"name": "<name>",
"type": "<type>"
},
"name": "puppygraph_add_node_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) | |
| node_label | Yes | Existing node label | |
| source_field_name | No | Source column; defaults to the attribute name |