Skip to main content
Glama

Build website tool

build_website_tool
Destructive

Build a new Pomerado tool for a website task when find_website_tool finds none.

  • Tell the user it is building. Then follow the job with get_job. The tool is reused after that.

  • A tool that exists but returns the wrong form needs no build: make a shape with create_shape. One that lacks data or an input needs a change: change_website_tool.

  • When a job asks any other question (input_request), follow its next: answer it yourself with answer_job if your task already settles it, otherwise ask your user and answer with theirs, or, when your user chose to answer on a form, give them its answer_url; then keep following the job with get_job. A browser_handoff question is never answered with answer_job: send your user its answer_url, where a person finishes the step in the job's live browser and marks it done, and keep following the job. Unanswered, a question expires after 10 minutes, a browser_handoff after 30 minutes; it fails a run and can pause or end a build.

  • Set site_url to the site's https origin. Set start_url only to an https page on site_url that the user gave, never a URL you built from the task's values; the host opens it unchanged.

  • The build runs the task once as its example. The finished job keeps that result as build.example_result; don't repeat a completed website action.

  • Give example_input with a value for each input the task needs, taken from your user's request, such as the store, item or address it names. Without one the build has to ask you, and a question nobody answers can pause or end it.

  • Set effect: read when the tool only looks things up, including search, filter and query forms; write when it changes the website, such as submitting, booking, saving a form (an application, profile or checkout), drafts, holds, uploads and account updates; ask when unsure, and the build works it out from the task, asking before anything runs only when the task leaves it unclear.

  • A read build tries its task signed out and signs in only when the site requires it; force_sign_in signs in first. With no saved login, the job asks the user on its answer page. Never ask for a password in chat.

  • Test mode is on unless you set test_mode false. Before the tool publishes, it checks the tool on other inputs so it works beyond the example. Set false only when your user asks to skip it. Tell your user it takes longer, still submits once and leaves no drafts. Set "extreme" only when your user asks. It runs on any site and takes hours, leaves up to 5 practice drafts with made-up people on the account, may submit the final step up to 3 times, the example's submit included and only where that step buys or signs nothing, and may get the account rate-limited. It never pays, purchases, signs or changes sign-in, and the build asks your user to confirm first.

  • Ticket, bank, government and link shortener sites are refused with site_not_supported.

  • Status needs_input with error credentials_rejected means the website rejected the saved login. The job waits up to 60 minutes for the user to correct it on the page its next names, then resumes. Don't resubmit it.

  • A build that may already have changed the website says so in error.details.possible_commit, and checks it on resuming.

  • Send an idempotency_key with every write, and reuse it only to retry the same call. A call without one is a new website action.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "task": "<task>"
    },
    "name": "build_website_tool"
  }
}

Input Schema

NameRequiredDescriptionDefault
taskYesWhat the tool should do, in plain words
loginNoA login for this call, used only when the site has no saved login: a username (or email, phone or account number) and password, or mode "code" without a password when the site sends a code. It passes through your client and model provider; without it, the run asks the person on its answer page.
effectNoread if the tool only looks things up; write if it changes the website (submits, books, saves a form, uploads, updates an account); ask to have the build work it out from the task, asking first only when the task is unclear. Required for a website build.
intentNoDescribe the intended use case in one sentence: what this call should do and why, such as "Check a store's opening hours to answer when it opens today". Describe the task, not the person: leave out names, contact details, account numbers and anything used to sign in. Pomerado uses it to improve its tools. Optional, but recommended: please include it on every call.
paymentNoOnly to build a tool that pays at checkout: the payer profile and payment method its example pays with, the shipping address when not the profile's default, and the most the order may total
login_idNoThe saved login to sign in with, when the site has several
site_urlNoThe website's https origin, which every build needs; a path is dropped, so use start_url for a page
start_urlNoAn https page on site_url that the user gave, which the build opens unchanged as its start page, path, query and fragment kept
test_modeNoOn unless false. A write build submits once, with example_input, and leaves no drafts. Before it publishes it also runs a few other inputs, such as another city, date or party size, and retries earlier form steps with other answers, each stopping before anything saves. It takes longer. These runs never pay, purchase, sign or change sign-in. Set false only when your user asks to skip it. true and "on" are the same. "extreme" runs on any site and explores the form with hundreds of answers before the tool publishes, which takes hours. It saves up to 5 practice drafts filled with made-up people and leaves them on the account, and may submit the final step for real up to 3 times, the example's submit included, only where that step buys or signs nothing, such as getting a quote. The site may rate-limit or flag the account. It never pays, purchases, signs or changes sign-in. The build first asks your user to confirm, and runs as "on" if they say no. Set "extreme" only when your user asks.
save_loginNoSave login for later runs (requires login)
example_inputNoThe input of the example the build runs once, JSON-encoded.
force_sign_inNotrue: sign in before the example even if the task might work signed out, so the tool always signs in. Needs site_url. Otherwise a build tries signed out and signs in (with login_id, login or the site's saved login) only when the task needs an account, such as for a cart, or hits a sign-in wall; the tool then needs a login only if the build signed in.
browser_handoffNotrue when your user asks for a person to review or do a step in the browser, such as checking a form before it's submitted. The tool then pauses at that step and a person finishes it on a Pomerado page. Name the step in task. Leave it out otherwise.
idempotency_keyNoYour key for this call. Reuse it only to retry the same call, which then returns the same job instead of acting on the website again.
confirm_new_buildNotrue to build even though a similar build of yours on the same website is still running, or an existing tool covers the task but your example differs from its inputs. Send it only after a similar_build_running answer or a build ending that says your example differs from an existing tool's inputs, once your user confirms they want this build too.
other_example_inputsNoUp to 9 more inputs a read build tests the tool on, as a JSON-encoded array, such as another store, city or an address in another country. Pomerado treats them as your own values. A write runs only example_input.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations declare destructiveHint=true and idempotentHint=false, and the description substantiates both: the build may submit the final step up to 3 times in extreme mode, leaves up to 5 practice drafts, may rate-limit the account, and is told to be keyed with an idempotency_key on every write. It further discloses side effects the annotations cannot express — the example run permanently committing, possible_commit signalling, the 10/30-minute question expiry, the 60-minute credential-rejection wait, and refusal of ticket/bank/government/shortener sites.

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?

Front-loaded with the trigger condition, then organized as scannable bullets grouped by concern (job following, URLs, effect, test mode, errors). Information density is high and nearly every clause carries a rule, but several bullets are long run-on sentences that stack three or four conditions together, which slows parsing for an agent skimming under time pressure.

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 16-parameter, nested-object, no-output-schema tool with genuine side effects, the description covers triggers, alternatives, safety profile, failure modes and follow-up flow. The one gap is the return shape: it implies a job is returned by telling the agent to poll with get_job, but never states what the build call itself yields (job id, status, example_result location beyond the passing mention).

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

Parameters5/5

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

Schema coverage is already 100%, yet the description adds operative meaning the schema does not: start_url must be a user-supplied https page on site_url and never a URL assembled from task values; effect must be declared with a read/write/ask definition and rationale; example_input must supply a value for every input; idempotency_key must be reused only for retries of the same call. These are decision rules, not restatements of the schema text.

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?

Opens with a specific verb and resource — 'Build a new Pomerado tool for a website task' — and immediately scopes it against the sibling that precedes it ('when find_website_tool finds none'). An agent can distinguish this from find_website_tool, change_website_tool and create_shape without opening any schema.

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

Usage Guidelines5/5

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

Explicit routing rules: build only when find_website_tool finds nothing; wrong-form results go to create_shape; missing data or inputs go to change_website_tool. It also states when to set test_mode false, when to set 'extreme', when to use force_sign_in, and when to send confirm_new_build, each tied to a concrete user-facing condition.

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.