Home / Directory / Apollo GraphOS / GetContractConfig
GetContractConfig
An MCP tool from the Apollo GraphOS server, run by Apollo.
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.
Name on the gateway: apollo_graphos__GetContractConfig.
Parameters
| Name | Type | Description |
|---|---|---|
graphId required | string | |
variant required | string |
How to call it
Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:
{
"name": "apollo_graphos__GetContractConfig",
"arguments": {
"graphId": "…",
"variant": "…"
}
}The first call connects Apollo GraphOS to your account automatically; nothing to set up. About this server.
Try asking
Use the getcontractconfig tool with graphId set to ….