Skip to main content
Run a tool by passing its tool_id and an input that matches its input_schema. The answer is a job that carries the result, usually within seconds.

Pick the call by effect

The ordinary run takes reads too. The read-only run refuses a write tool with tool_not_read_only before anything happens.
Through MCP, input is a JSON-encoded string. Over REST, send it as JSON in the body.

Run reads in parallel

A read-only run changes nothing, so clients may run it without asking and send several at once, such as Google Flights searches for five dates. A Business account can run one read tool on up to 100 inputs in one call; see Run many inputs at once.

Run a write

A write changes the website and may not be undoable, such as checking out an Instacart cart. Send an idempotency_key so a retry never repeats it. See Retry a call safely.

Sign in with a saved login

A tool whose login isn’t null signs in. It uses the site’s saved login on its own; pass login_id to choose when the site has several. With none saved, the job asks the person to sign in on its answer page. A tool whose login is null ignores a login_id you pass, and the run’s answer says so in warnings. See Give a job a login.

Get the result

An MCP run waits up to 50 seconds for the job. REST answers at once. If the job is still running or asks a question, follow it instead of running the tool again.
  • An input that doesn’t match the schema creates no job and answers invalid_input.
  • A result is delivered once. Save it when you receive it.
  • When the website rejects a saved login, the job waits up to 60 minutes for a correction, then resumes as the same job.
  • Runs on one saved login go one at a time. A run waiting behind a job that the same API key or app connection started, and that asks a question, returns at once, still queued, and starts once that job ends: answer that job’s question first. A run waiting behind the repair of another tool that the same API key or app connection ran returns at once too. Behind anyone else’s job, the run keeps its wait.
  • On an integration MCP, each tool takes input as a plain object and needs no tool_id. See Use integration MCPs.