Build a service with an AI client
An AI assistant can build a multi-step service for you through WatchTower15’s MCP server: read what you have, import a request from a cURL command, create the service, test it, read the result and fix it. This page is the recipe, so you know what to ask for and what the assistant does. It never sees a secret: credentials stay on your own servers.
Before you start
Section titled “Before you start”- Connect the client with Allow actions too ticked (Allowing actions). Your role needs
ai_access.editandservices.edit, andservices.parametersif the service has Parameters. - Have the requests ready: a cURL command, or an OpenAPI document and the operation’s name.
- Decide which of your servers run the checks. Your assistant lists them with
list_servers. A server can run a service when it is approved, its agent is reporting and it can run service checks (Collectors).
Every step sends a real request. A test calls the endpoints at once, and a saved service calls them on its schedule, from your own collectors. Your
client asks you before create_service, update_service and start_service_test_run. Say yes only to requests you would send yourself, and keep a
journey that creates something ending in a step that removes it.
The recipe
Section titled “The recipe”- Look at what is there.
list_servicesandget_serviceshow your services and, for each step, itsuuid, type and destination. - Import each request.
import_service_stepreads a pasted cURL command (or an OpenAPI operation) and answers the step. Nothing is saved. Every credential in it comes back as a{{param.name}}reference inparameters_needed, not a value. - Name where each credential lives. A service reads each Parameter on your collectors (a file, AWS Parameter Store, Secrets Manager or a URL). You tell the assistant where, never what: a literal secret in a step is refused.
- Build the draft. The assistant orders the steps, adds assertions (
statusin[200], a JSON value, a header), extractions to pass a value (such as an id) to the next step, a variable for anything that must be unique each run, and a final cleanup step. - Test it before saving.
start_service_test_runwith the draft answers atest_uuidandwaiting.get_service_test_runis read until the status ispassed,failedorno_answer; it never keeps polling ano_answertest, which means no collector picked it up. - Read the outcome. A test shows each step’s status, reason, observed numbers and the shape of the answer (keys, types and lengths, never a value). The assistant uses the shape to write the next step’s JSON path.
- Create it.
create_servicesaves the service and answers each step’suuid. It counts as one service whatever its steps. - Change it.
update_servicesends the whole definition again. Each kept step goes with itsuuidand without its headers, body, query and auth, which are kept as saved. To change a step’s host, make that change yourself in the console: the tool refuses it, because it would have to send a stored secret to a new place. - Find out why it started failing.
list_service_runs(withstatusfailed) andget_service_runshow which step failed and why;list_service_versionsandget_service_versionshow what changed between two saves.
A prompt to start from
Section titled “A prompt to start from”Build a service called “Orders journey” on my server
app-01. Step 1 creates an order with this cURL command:curl -X POST …. Step 2 reads it back and checks that its status ispaid. Step 3 deletes it. Test it first and show me the result before you save anything.
What it cannot do
Section titled “What it cannot do”An AI client cannot delete, pause, resume or run a service now: those stay in the console and the REST API. It cannot see a credential, a header value or a response body, only reasons, numbers and shapes.
See the Tool reference for every tool, and Permissions and safety for what is recorded.