GetSubgraphSchema
Read one subgraph's published schema (SDL) from a variant, with its routing URL, revision, and last update time.
This is the same read that rover subgraph fetch performs.
Read one subgraph at a time: a whole supergraph document is much larger and can pass the token limit of the model.
Provide the graph ID, the variant name, and the subgraph name.
Use GetVariantDetails first if you do not know the subgraph names.
The revision is free text, such as a commit hash or "proposal-creation", and it can differ between two variants whose SDL is identical, so compare the SDL to tell whether a subgraph changed.
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>",
"subgraphName": "<subgraphName>"
},
"name": "GetSubgraphSchema"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| graphId | Yes | ||
| variant | Yes | ||
| subgraphName | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| errors | No | ||
| extensions | No |