Home / Directory / Apollo GraphOS / PublishPersistedQueries

PublishPersistedQueries

An MCP tool from the Apollo GraphOS server, run by Apollo.

Publish operations to a persisted query list, the same write that `rover persisted-queries publish` performs. A persisted query list is the set of operations a router accepts when it is configured to reject anything else. Operations you do not mention stay in the list unchanged: pass operations to add or replace entries, and remove to drop them. Returns the new revision and the total operation count, or reports that nothing changed. Use GetPersistedQueryListStatus to find the list ID and its current revision. Provide the graph ID and the persisted query list ID.

Name on the gateway: apollo_graphos__PublishPersistedQueries.

Parameters

NameTypeDescription
graphId requiredstring
listId requiredstring
operationsmixed
removemixed
allowOverwrittenOperationsmixed

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:

call_tool arguments
{
  "name": "apollo_graphos__PublishPersistedQueries",
  "arguments": {
    "graphId": "…",
    "listId": "…"
  }
}

The first call connects Apollo GraphOS to your account automatically; nothing to set up. About this server.

Try asking

Use the publishpersistedqueries tool with graphId set to ….

More from Apollo GraphOS