puppygraph_upload_schema
Installs and validates a graph schema in PuppyGraph so it can be queried; invalid schemas are refused, and an existing schema is replaced only when replace is true.
Instructions
Install a graph schema in PuppyGraph so it can be queried. Validates it first and refuses on problems; PuppyGraph also checks every mapped table and column before changing anything. If a schema is already installed, it is only replaced when replace is true. On failure the installed schema stays as it was.
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": {
"schema": "<schema>"
},
"name": "puppygraph_upload_schema"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| schema | Yes | The graph schema as a JSON object (or a JSON string): 1.x format with node and edge arrays | |
| replace | No | Set true to replace the schema that is currently installed. Without it, the upload is refused when a schema is already installed. |