GetContractConfig
Read the filter configuration of a contract variant: the tags it includes, the tags it excludes, the source variant it is built from, and a human-readable description of the configuration.
This is the same read that rover contract describe performs.
A contract variant is a filtered view of another variant's schema, built by including and excluding schema elements by tag.
The filter configuration does not include whether unreachable types are hidden.
The description states it, so read it there before you update a contract with PublishContract.
A variant that is not a contract returns null for the filter configuration.
Provide the graph ID and the contract 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": "GetContractConfig"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| graphId | Yes | ||
| variant | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| errors | No | ||
| extensions | No |