Skip to content

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.

  • Connect the client with Allow actions too ticked (Allowing actions). Your role needs ai_access.edit and services.edit, and services.parameters if 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.

  1. Look at what is there. list_services and get_service show your services and, for each step, its uuid, type and destination.
  2. Import each request. import_service_step reads 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 in parameters_needed, not a value.
  3. 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.
  4. Build the draft. The assistant orders the steps, adds assertions (status in [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.
  5. Test it before saving. start_service_test_run with the draft answers a test_uuid and waiting. get_service_test_run is read until the status is passed, failed or no_answer; it never keeps polling a no_answer test, which means no collector picked it up.
  6. 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.
  7. Create it. create_service saves the service and answers each step’s uuid. It counts as one service whatever its steps.
  8. Change it. update_service sends the whole definition again. Each kept step goes with its uuid and 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.
  9. Find out why it started failing. list_service_runs (with status failed) and get_service_run show which step failed and why; list_service_versions and get_service_version show what changed between two saves.

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 is paid. Step 3 deletes it. Test it first and show me the result before you save anything.

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.