Skip to main content
Glama

Bowmark web data: LinkedIn, Amazon, YouTube, Reddit, Airbnb, Instagram

Do the task on the live websites and return the result

run
Destructive

Executes the task on live websites and returns the result. Call get_library FIRST, then run({ script }). From your app or a cron: POST https://api.bowmark.ai/v1/run (bowmark.ai/docs/http-api).

THE SCRIPT is a plain async JavaScript body, not a wrapping function. bowmark is a global: await bowmark.<capability>.<fn>(...), or one site via await bowmark.providers.<provider>.<fn>(...). return what you want back; log(...) for progress. Built-ins plus URL/URLSearchParams exist; fetch, import, setTimeout and a filesystem do not — bowmark is the only I/O.

MIND THE CLOCK. Your client times out around 55 seconds; calls take 30-55 seconds; default to ONE per script. Several? Use Promise.allSettled together (a dropped leg still returns partial), never one after another or in a for loop. Keep the RESULT under ~25,000 chars or it comes back as a file link.

CHECK status BEFORE ok — ok | error | partial | needs_user | running: • running: still going. Call run({ runId }) to await the SAME run; never resend the script. • partial: result is real but narrower than asked; incomplete names what did not answer. Tell the user — never call it complete. incomplete.failures[].fixable: true means your argument was wrong: fix it, rerun. • needs_user: a site needs your user signed in. Give them meta.handoff.url, name the sites, then call wait_for_sign_in (meta.handoff.ref). On done, resend the SAME script. • error: there is no result; error says why. Never fill a fact a failed lookup did not verify from memory.

Keep a day-to-day baseline with bowmark.files.save (30 days by default). Schedules, exit IP, secrets, warnings, billed fallbacks: get_library({ query: "run guide" }).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "run"
  }
}

Input Schema

NameRequiredDescriptionDefault
runIdNoSend EXACTLY ONE of `script` or `runId`, never both and never neither. `runId` is only to collect a run an earlier call answered `status: "running"` for: pass its `runId` alone, with no `script`, and this call waits for that same run's result. Leave it out when starting a run.
egressNoOptional. `"link"` sends every request of this run through the user's own Chrome (Bowmark Buddy) and fails with "Link not connected" when it is not open; `"link-first"` tries the user's Chrome first and falls back to Bowmark's own route (use it when the answer must come from the user's own address, e.g. a YouTube stream URL that will play in their browser); `"default"` or leaving it out uses Bowmark's own route. The result echoes what was applied as `egress` (`"default"` when a `"link-first"` run found no Chrome).
scriptNoSend EXACTLY ONE of `script` or `runId`, never both and never neither; `script` starts a new run. The JavaScript script body to execute (async, against the `bowmark` global). e.g. `const { flights, warnings } = await bowmark.flights.search({from:'SFO',to:'JFK',depart:'2027-03-02'}); return { best: flights.sort((a,b)=>a.price-b.price)[0], warnings };`
maxSecondsNoOptional, 100 to 900. Lets ONE run last this many seconds instead of the default 90, for long paging jobs. The call still answers within about 40 seconds with `status: "running"` and a `runId`; collect the result with `run({ runId })`. Leave it out for an ordinary run.

Output Schema

NameRequiredDescriptionDefault
msNo
okYes
logsNo
metaNo
errorNo
needsNo
notesNo
runIdNo
egressNo
noticeNo
resultNo
statusNo
queuedMsNo
incompleteNo
savedFilesNo
emptyHandedNo
secretNeedsNo
savedSecretsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / maxSeconds
      Added value: +{
      +  "description": "Optional, 100 to 900. Lets ONE run last this many seconds instead of the default 90, for long paging jobs. The call still answers within about 40 seconds with `status: \"running\"` and a `runId`; collect the result with `run({ runId })`. Leave it out for an ordinary run.",
      +  "type": "number"
      +}
  2. Changed1 schema field changed
    • changedInput schema / properties / script / description
      Previous value: -"Send EXACTLY ONE of `script` or `runId`, never both and never neither; `script` starts a new run. The JavaScript script body to execute (async, against the `bowmark` global). e.g. `const { flights, warnings } = await bowmark.flights.search({from:'SFO',to:'JFK',depart:'2026-09-01'}); return { best: flights.sort((a,b)=>a.price-b.price)[0], warnings };`"New value: +"Send EXACTLY ONE of `script` or `runId`, never both and never neither; `script` starts a new run. The JavaScript script body to execute (async, against the `bowmark` global). e.g. `const { flights, warnings } = await bowmark.flights.search({from:'SFO',to:'JFK',depart:'2027-03-02'}); return { best: flights.sort((a,b)=>a.price-b.price)[0], warnings };`"
  3. Changed1 schema field changed
    • changedInput schema / properties / egress / description
      Previous value: -"Optional. `\"link\"` sends every request of this run through the user's own Chrome (Bowmark Link) and fails with \"Link not connected\" when it is not open; `\"link-first\"` tries the user's Chrome first and falls back to Bowmark's own route (use it when the answer must come from the user's own address, e.g. a YouTube stream URL that will play in their browser); `\"default\"` or leaving it out uses Bowmark's own route. The result echoes what was applied as `egress` (`\"default\"` when a `\"link-first\"` run found no Chrome)."New value: +"Optional. `\"link\"` sends every request of this run through the user's own Chrome (Bowmark Buddy) and fails with \"Link not connected\" when it is not open; `\"link-first\"` tries the user's Chrome first and falls back to Bowmark's own route (use it when the answer must come from the user's own address, e.g. a YouTube stream URL that will play in their browser); `\"default\"` or leaving it out uses Bowmark's own route. The result echoes what was applied as `egress` (`\"default\"` when a `\"link-first\"` run found no Chrome)."
  4. Changed3 schema fields changed
    • changedInput schema / properties / egress / description
      Previous value: -"Optional. `\"link\"` sends every request of this run through the user's own Chrome (Bowmark Link) and fails with \"Link not connected\" when it is not open; `\"default\"` or leaving it out uses Bowmark's own route. The result echoes it as `egress`."New value: +"Optional. `\"link\"` sends every request of this run through the user's own Chrome (Bowmark Link) and fails with \"Link not connected\" when it is not open; `\"link-first\"` tries the user's Chrome first and falls back to Bowmark's own route (use it when the answer must come from the user's own address, e.g. a YouTube stream URL that will play in their browser); `\"default\"` or leaving it out uses Bowmark's own route. The result echoes what was applied as `egress` (`\"default\"` when a `\"link-first\"` run found no Chrome)."
    • changedInput schema / properties / egress / enum
      Previous value: -[
      -  "default",
      -  "link"
      -]New value: +[
      +  "default",
      +  "link",
      +  "link-first"
      +]
    • changedOutput schema / properties / egress / enum
      Previous value: -[
      -  "default",
      -  "link"
      -]New value: +[
      +  "default",
      +  "link",
      +  "link-first"
      +]
  5. Changed3 schema fields changed
    • addedInput schema / additionalProperties
      Added value: +false
    • removedInput schema / oneOf
      Removed value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "egress": {
      -        "description": "Optional. `\"link\"` sends every request of this run through the user's own Chrome (Bowmark Link) and fails with \"Link not connected\" when it is not open; `\"default\"` or leaving it out uses Bowmark's own route. The result echoes it as `egress`.",
      -        "enum": [
      -          "default",
      -          "link"
      -        ],
      -        "type": "string"
      -      },
      -      "script": {
      -        "description": "The JavaScript script body to execute (async, against the `bowmark` global). e.g. `const { flights, warnings } = await bowmark.flights.search({from:'SFO',to:'JFK',depart:'2026-09-01'}); return { best: flights.sort((a,b)=>a.price-b.price)[0], warnings };`",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "script"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "runId": {
      -        "description": "Only to collect a run an earlier call answered `status: \"running\"` for: pass its `runId` and no `script`, and this call waits for that same run's result.",
      -        "format": "uuid",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "runId"
      -    ],
      -    "type": "object"
      -  }
      -]
    • addedInput schema / properties
      Added value: +{
      +  "egress": {
      +    "description": "Optional. `\"link\"` sends every request of this run through the user's own Chrome (Bowmark Link) and fails with \"Link not connected\" when it is not open; `\"default\"` or leaving it out uses Bowmark's own route. The result echoes it as `egress`.",
      +    "enum": [
      +      "default",
      +      "link"
      +    ],
      +    "type": "string"
      +  },
      +  "runId": {
      +    "description": "Send EXACTLY ONE of `script` or `runId`, never both and never neither. `runId` is only to collect a run an earlier call answered `status: \"running\"` for: pass its `runId` alone, with no `script`, and this call waits for that same run's result. Leave it out when starting a run.",
      +    "format": "uuid",
      +    "type": "string"
      +  },
      +  "script": {
      +    "description": "Send EXACTLY ONE of `script` or `runId`, never both and never neither; `script` starts a new run. The JavaScript script body to execute (async, against the `bowmark` global). e.g. `const { flights, warnings } = await bowmark.flights.search({from:'SFO',to:'JFK',depart:'2026-09-01'}); return { best: flights.sort((a,b)=>a.price-b.price)[0], warnings };`",
      +    "type": "string"
      +  }
      +}
  6. Changed3 schema fields changed
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / oneOf
      Added value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "egress": {
      +        "description": "Optional. `\"link\"` sends every request of this run through the user's own Chrome (Bowmark Link) and fails with \"Link not connected\" when it is not open; `\"default\"` or leaving it out uses Bowmark's own route. The result echoes it as `egress`.",
      +        "enum": [
      +          "default",
      +          "link"
      +        ],
      +        "type": "string"
      +      },
      +      "script": {
      +        "description": "The JavaScript script body to execute (async, against the `bowmark` global). e.g. `const { flights, warnings } = await bowmark.flights.search({from:'SFO',to:'JFK',depart:'2026-09-01'}); return { best: flights.sort((a,b)=>a.price-b.price)[0], warnings };`",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "script"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "runId": {
      +        "description": "Only to collect a run an earlier call answered `status: \"running\"` for: pass its `runId` and no `script`, and this call waits for that same run's result.",
      +        "format": "uuid",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "runId"
      +    ],
      +    "type": "object"
      +  }
      +]
    • removedInput schema / properties
      Removed value: -{
      -  "egress": {
      -    "description": "Optional. `\"link\"` sends every request of this run through the user's own Chrome (Bowmark Link) and fails with \"Link not connected\" when it is not open; `\"default\"` or leaving it out uses Bowmark's own route. The result echoes it as `egress`.",
      -    "enum": [
      -      "default",
      -      "link"
      -    ],
      -    "type": "string"
      -  },
      -  "runId": {
      -    "description": "Only to collect a run an earlier call answered `status: \"running\"` for: pass its `runId` and no `script`, and this call waits for that same run's result.",
      -    "format": "uuid",
      -    "type": "string"
      -  },
      -  "script": {
      -    "description": "The JavaScript script body to execute (async, against the `bowmark` global). e.g. `const { flights, warnings } = await bowmark.flights.search({from:'SFO',to:'JFK',depart:'2026-09-01'}); return { best: flights.sort((a,b)=>a.price-b.price)[0], warnings };`",
      -    "type": "string"
      -  }
      -}
  7. Changed2 schema fields changed
    • addedInput schema / properties / egress
      Added value: +{
      +  "description": "Optional. `\"link\"` sends every request of this run through the user's own Chrome (Bowmark Link) and fails with \"Link not connected\" when it is not open; `\"default\"` or leaving it out uses Bowmark's own route. The result echoes it as `egress`.",
      +  "enum": [
      +    "default",
      +    "link"
      +  ],
      +  "type": "string"
      +}
    • addedOutput schema / properties / egress
      Added value: +{
      +  "enum": [
      +    "default",
      +    "link"
      +  ],
      +  "type": "string"
      +}
  8. Changed1 schema field changed
    • addedOutput schema / properties / notes
      Added value: +{}
  9. Changed1 schema field changed
    • addedOutput schema / properties / queuedMs
      Added value: +{
      +  "type": "number"
      +}
  10. Changed3 schema fields changed
    • addedInput schema / properties / runId
      Added value: +{
      +  "description": "Only to collect a run an earlier call answered `status: \"running\"` for: pass its `runId` and no `script`, and this call waits for that same run's result.",
      +  "format": "uuid",
      +  "type": "string"
      +}
    • removedInput schema / required
      Removed value: -[
      -  "script"
      -]
    • changedOutput schema / properties / status / enum
      Previous value: -[
      -  "ok",
      -  "error",
      -  "partial",
      -  "needs_user"
      -]New value: +[
      +  "ok",
      +  "error",
      +  "partial",
      +  "needs_user",
      +  "running"
      +]
  11. Changed1 schema field changed
    • addedOutput schema / properties / savedFiles
      Added value: +{
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "bytes": {
      +        "type": "number"
      +      },
      +      "contentType": {
      +        "type": "string"
      +      },
      +      "expiresAt": {
      +        "type": "string"
      +      },
      +      "id": {
      +        "type": "string"
      +      },
      +      "name": {
      +        "type": "string"
      +      },
      +      "url": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "id",
      +      "name",
      +      "contentType",
      +      "bytes",
      +      "url",
      +      "expiresAt"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
  12. Changed1 schema field changed
    • removedOutput schema / properties / cost
      Removed value: -{
      -  "additionalProperties": false,
      -  "properties": {
      -    "lines": {
      -      "items": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "quantity": {
      -            "type": "number"
      -          },
      -          "sku": {
      -            "type": "string"
      -          },
      -          "unit": {
      -            "enum": [
      -              "bytes",
      -              "ms",
      -              "count"
      -            ],
      -            "type": "string"
      -          },
      -          "usd": {
      -            "type": "number"
      -          }
      -        },
      -        "required": [
      -          "sku",
      -          "quantity",
      -          "unit",
      -          "usd"
      -        ],
      -        "type": "object"
      -      },
      -      "type": "array"
      -    },
      -    "usd": {
      -      "type": "number"
      -    }
      -  },
      -  "required": [
      -    "usd",
      -    "lines"
      -  ],
      -  "type": "object"
      -}
  13. Changed2 schema fields changed
    • addedOutput schema / properties / savedSecrets
      Added value: +{
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "name": {
      +        "type": "string"
      +      },
      +      "type": {
      +        "type": "string"
      +      },
      +      "viewUrl": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "name",
      +      "type",
      +      "viewUrl"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / secretNeeds
      Added value: +{
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "expiredAt": {
      +        "type": "string"
      +      },
      +      "reason": {
      +        "enum": [
      +          "expired",
      +          "pending",
      +          "unavailable"
      +        ],
      +        "type": "string"
      +      },
      +      "secret": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "secret",
      +      "reason"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
  14. Changed1 schema field changed
    • addedOutput schema / properties / cost
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "lines": {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "quantity": {
      +            "type": "number"
      +          },
      +          "sku": {
      +            "type": "string"
      +          },
      +          "unit": {
      +            "enum": [
      +              "bytes",
      +              "ms",
      +              "count"
      +            ],
      +            "type": "string"
      +          },
      +          "usd": {
      +            "type": "number"
      +          }
      +        },
      +        "required": [
      +          "sku",
      +          "quantity",
      +          "unit",
      +          "usd"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "usd": {
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "usd",
      +    "lines"
      +  ],
      +  "type": "object"
      +}
  15. Changed1 schema field changed
    • addedOutput schema / properties / notice
      Added value: +{}
  16. Changed1 schema field changed
    • addedOutput schema / properties / emptyHanded
      Added value: +{}
  17. Changed1 schema field changed
    • addedOutput schema / properties / runId
      Added value: +{
      +  "format": "uuid",
      +  "type": "string"
      +}
  18. Changed2 schema fields changed
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • removedOutput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
  19. Changed2 schema fields changed
    • addedOutput schema / properties / incomplete
      Added value: +{}
    • changedOutput schema / properties / status / enum
      Previous value: -[
      -  "ok",
      -  "error",
      -  "needs_user"
      -]New value: +[
      +  "ok",
      +  "error",
      +  "partial",
      +  "needs_user"
      +]
  20. Changed1 schema field changed
    • changedInput schema / properties / script / description
      Previous value: -"The JavaScript script body to execute (async, against the `bowmark` global). e.g. `const f = await bowmark.flights.search({from:'SFO',to:'JFK',depart:'2026-09-01'}); return f.sort((a,b)=>a.price-b.price)[0];`"New value: +"The JavaScript script body to execute (async, against the `bowmark` global). e.g. `const { flights, warnings } = await bowmark.flights.search({from:'SFO',to:'JFK',depart:'2026-09-01'}); return { best: flights.sort((a,b)=>a.price-b.price)[0], warnings };`"
  21. Added

TDQS

A4.6/5.0
Behavior4/5

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

Annotations declare destructiveHint=true and openWorldHint=true; the description adds substantial behavior beyond them — the ~55s client timeout window, the ~25,000-char result cap that downgrades to a file link, the five-value status machine, and the `incomplete.failures[].fixable` semantics. What it omits is the side-effect profile: nothing warns that actions taken on live sites may be irreversible (submissions, purchases, posts), which is the main thing a destructiveHint warrants spelling out. It also does not mention cost or credit consumption beyond a passing reference to "billed fallbacks."

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?

Core instruction is front-loaded and the status list is scannable as bullets. Density is justified for a scripting tool, but some content is redundant: the `runId` await rule is stated in the description and again in both schema parameter descriptions, and the "never fill a fact from memory" line drifts into prompt advice rather than tool definition.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a high-complexity, open-world execution tool this covers everything an agent needs: prerequisite, script authoring environment, timing budget, concurrency strategy, result-size ceiling, the full status enum with an action for each branch, and the sign-in handoff loop. An output schema exists, yet the description adds the decision rules for interpreting it, which is the right split.

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

Parameters4/5

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

Schema description coverage is 100%, so the schema already carries the per-parameter load and the baseline would be 3. The description earns an extra point by adding runtime semantics the schema does not: `fetch`, `import`, `setTimeout` and a filesystem are unavailable so `bowmark` is the only I/O, and sequential calls must be replaced with `Promise.allSettled`. Those constraints materially change how `script` is authored and are absent from 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?

The description gives a concrete verb and scope ("Executes the task on live websites and returns the result") and then immediately operationalizes it: an async JavaScript body run against the `bowmark` global, with a code sample. It distinguishes itself from `get_library` by naming that tool as the mandatory prerequisite rather than a substitute, so an agent can tell the two apart without opening either 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?

It states the required call order ("Call `get_library` FIRST, then `run({ script })`"), the exact rule for choosing between `script` and `runId`, and the execution-context split (MCP tool vs. POST to the HTTP API for cron). It also names `wait_for_sign_in` as the sibling to invoke in the `needs_user` case, which is an explicit alternative-handoff rule rather than an implication.

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.