OpenX MCP Server recipes
This page answers which tools to call, in which order, for the most common tasks.
Answer a question from a saved query
get_workspacewithkinds: ["WarmQueries"]to find the query that answers it.call_apiwith route""to find that query's route.call_apion the route, such as"GET /warm-queries/signups-per-hour".
Check how a part is doing
get_workspaceto find the part's kind and lookup.get_statswith that kind and lookup, andmetrics: truefor numbers over time.retrieve_inventoryfor the same lookup when the question is where it runs or whether it drifted.
Check how a workspace's licenses are selling
get_statsfor the Licenses line: each license's Stripe healthStatusand problem codes.call_apion"GET /licenses/health"when a status is notHealthy, for the checks behind it, and on"GET /licenses/events"to see which Stripe events arrived and how many were refused.call_apion"GET /licenses/stats"for the figures and on"GET /licenses/subscribers"for who holds which plan. Each needs its own right (Licenses.Stats.Read,Licenses.Manage); a refusal names the right inMissingRights. A license that could not be read saysKnown: false: report "could not be read", never zero.
Propose a new data connection
get_workspacewithkinds: ["DataConnections"]andincludeGuides: truefor the guide, schema and examples.manage_proposalswithcheckOnly: trueand the proposal. Fix each refusal by its remedy.manage_proposalswithoutcheckOnlyto propose it. A person accepts it in the workspace.
Propose a Provenance policy
get_workspacewithkinds: ["Provenance"]andincludeGuides: truefor the guide, schema and examples. Provenance needs a connected cloud and a landing zone first; until thenget_workspacelists it inCapabilities.InactiveKindswith what itRequires.manage_proposalswithcheckOnly: trueand the proposal, a retention period and its basis together. Fix each refusal by its remedy.manage_proposalswithoutcheckOnlyto propose it. A person accepts it in the workspace, and accepting provisions nothing: they then open Provenance and press Save configuration, which builds the storage in their Azure subscription.get_workspacewithkinds: ["Provenance"]again.ProvisionedAtis set once that Save has finished.
Try a draft warm query
retrieve_inventorywithkinds: ["WarmQueries"], the query'slookupsandincludeSample: trueto see the columns, the fields devices send, a Cosmos container's documents and the saved queries already trusted on the same sources. A Cosmos container is read for this (up to 25 documents, at most 5,000 RU a container), so say that to the person when the query has a Cosmos step.- Write the draft from what the inventory returned.
call_apion"POST /warm-queries"with the draft andCheckOnly: trueto check it.- The same with
Compile: trueto plan each step against the real data. Akqlstep reads no rows and answers its columns, or the engine's words if it refuses the text. A Cosmos step reads one document (at most 5,000 RU) and answers that document's field names and types, never values, with a note that a wrong Cosmos field name reads as missing. call_apion"POST /warm-queries"with the draft to run it once without saving. Read itsWarningsback to the person: an output with no rows, a column empty in every row, atakewith no order.manage_proposalsto propose saving it, and say what you checked.
Find something in the docs
browse_docswithpaths: ["./"]to see the top level.browse_docswith a listed path and aqueryto search inside it.browse_docswith a hit's path to read the page.
On fathym.com: OpenX MCP Server →