GetGraphSchema
Read the schema (SDL) that is currently published to a graph variant, with its hash and publication time.
This is the same read that rover graph fetch performs.
The response holds the whole document and is not truncated.
A large federated graph measured over 800,000 characters, roughly 200,000 tokens, which exceeds the context window of most models.
Prefer GetSubgraphSchema, which reads one subgraph at a time, and use this tool only when you need the whole API schema.
Provide the graph ID and the variant name.
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>"
},
"name": "GetGraphSchema"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| graphId | Yes | ||
| variant | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| errors | No | ||
| extensions | No |