PublishGraphSchema
Publish a schema to a graph variant, the same write that rover graph publish performs.
Use this for a monograph; use PublishSubgraph for one subgraph of a federated graph.
Returns a result code, whether the publish succeeded, a human-readable message, and the hash of the published schema.
This changes the schema registry and can change what clients see.
Run RunSchemaCheck first to see the effect on client operations.
Provide the graph ID, the variant name, and the schema as SDL.
Optionally provide the git branch and commit to label the publication.
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": {
"graphId": "<graphId>",
"variant": "<variant>",
"schemaDocument": "<schemaDocument>"
},
"name": "PublishGraphSchema"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| branch | No | ||
| commit | No | ||
| graphId | Yes | ||
| variant | Yes | ||
| schemaDocument | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| errors | No | ||
| extensions | No |