Skip to main content
Build a tool when Find a tool turns up nothing for your task. A build explores the website, writes the tool, runs your example once and publishes it. After that the tool runs in seconds.

Start a build

Describe the task, name the website and its effect, and give one example input. Over REST, send them to POST /v1/builds, with your idempotency key in the Idempotency-Key header:
The body takes only the fields the API reference lists for this operation, such as login_id and force_sign_in; any other field is refused with invalid_request.

Start a build on MCP

build_website_tool takes the same fields as arguments, plus idempotency_key in place of the header and intent, one sentence on what the call is for and why. Its example_input is a JSON-encoded string:
On an integration MCP, build_tool does the same for that integration’s website and takes no site_url. REST takes neither intent nor idempotency_key in the body.

More example inputs

A read build runs its example on example_input. Send other inputs it should also work for in other_example_inputs, such as a store in another chain or an address in another country, up to 9. The build tests the tool on each, and Pomerado treats them as your own values, so a test on one is never refused as a value the build picked. When the website refuses example_input, such as a record it doesn’t have, the build proves the tool on the first of them the website serves. Each is taken as example_input is, a file included; on MCP the list is a JSON-encoded string. A write build runs only example_input, so it refuses them with invalid_request. A change takes other_example_inputs too (POST /v1/tools/{id}/changes, change_website_tool), each with every input the tool requires. They are cases to test, never a limit on the tool: send a test address there rather than in the change’s text.

If a similar build is running

If a build of yours on the same website is still running and does the same task, even for a different store or item, the call starts nothing. It answers 409 with the error similar_build_running, whose details.job_id is the running build’s job and details.watch_url its Dashboard page. Follow that build instead; its tool may do this task too. To build this one as well, send the same request again with "confirm_new_build": true once the person confirms they want both. A teammate’s builds never count.

Follow the build

The call answers its job at once. Tell the person the tool is building, then wait for the job. A build may stop to ask a question, such as which login to use; see Answer a job’s questions. While it runs, the job’s build field shows its stage and an estimate. A build often asks a question. An unanswered question pauses the build or ends it, and a paused build ends if still unanswered when the pause expires. From a backend, create a webhook for job.needs_input and job.paused before you start builds, and answer with POST /v1/jobs/{id}/answers. If you poll instead, check status for needs_input and paused on every read.

When it ends

  • Published: the job succeeds with the new tool’s tool_id. See Check the example result. If the tool is deleted later, the job still reads succeeded, with tool_id and build.integration_id null.
  • Already covered: an existing tool does the task. The job succeeds with it as tool_id and build.existing_tool_id, and publishes nothing. If your example’s inputs differ from that tool’s, the job’s message names them. To build a new tool beside it, send the same request again with "confirm_new_build": true once the person confirms, or request a change to the existing tool.
  • Blocked: the build found the task impossible on this site. It fails with build_blocked; show its message to the person.
  • A site_url that isn’t a public website’s https origin, such as an IP address or a local network name, creates no job and answers invalid_request, as does an effect of write or ask without a site_url. A site_url without an effect answers effect_required.
  • Builds for ticket, bank, government or link shortener websites are refused with site_not_supported.
  • A site_url whose address leads to a private or internal network, such as a site reachable only inside an office or cloud network, creates no job and answers site_address_not_public. Sites on the public web work, including ones behind a sign-in.
  • A published build counts toward your plan. See Plans and limits.
  • A new tool joins its website’s integration, named in build.integration_id. See Use integration MCPs.