Skip to main content
Glama

PublishPersistedQueries

Destructive

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.

Input Schema

NameRequiredDescriptionDefault
listIdYes
removeNo
graphIdYes
operationsNo
allowOverwrittenOperationsNo

Output Schema

NameRequiredDescriptionDefault
dataNo
errorsNo
extensionsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare destructiveHint=true and openWorldHint=true; the description adds genuinely new behavior: operations not mentioned remain in the list unchanged, `remove` drops entries, and the result is a new revision plus total count or a no-change report. That is valuable partial-update semantics beyond the annotations. It omits any mention of `allowOverwrittenOperations` and of concurrency/revision-conflict behavior, which matter for a destructive write.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Six short sentences, front-loaded with the action and its analogy, then semantics, then return values, then prerequisites. Nothing is padded, though the closing 'Provide the graph ID and the persisted query list ID' restates what the required-params list already implies.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive write with an output schema present, the description covers purpose, partial-update semantics, and prerequisites well enough to call it correctly. The gap is `allowOverwrittenOperations` and any conflict/overwrite note — the one place an agent could get a destructive call wrong.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Top-level schema description coverage is 0%, so the description must compensate, and it partly does: it explains `graphId`/`listId` references and the add-or-replace vs drop semantics of `operations` and `remove`. However, `allowOverwrittenOperations` is never explained, and the distinction between add and replace (same ID, different body) is left implicit.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Publish operations to a persisted query list') and anchors it with a concrete equivalent ('the same write that `rover persisted-queries publish` performs'). It also defines what a persisted query list is, and explicitly routes status/lookup work to GetPersistedQueryListStatus, so it is unmistakable against its siblings.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives clear when-to-use context and a prerequisite chain ('Use GetPersistedQueryListStatus to find the list ID and its current revision'; 'Provide the graph ID and the persisted query list ID'). It also states the additive/removal model, which tells the agent how to shape a call. It stops short of stating when *not* to use it (e.g., ValidateOperations for pre-flight checks), so it is not a full 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources