Skip to main content
Glama

Rent a computer + browser

brij_sandbox_start

Over MCP: you pay only the purchase itself, into its escrow. Paid even over MCP (a sale, not a toll): call once without payment to get the x402 requirements, pay them with your wallet, call again with the payment in _meta["x402/payment"] or x402_payment. KEEP lease_token (shown once) and give view_url to your owner. Next: brij_sandbox_exec "cat /workspace/README.md".

Rent a Linux computer + browser for N minutes

Paid x402 endpoint: $0.03 USDC per minute, browser included, 5 to 60 minutes, paid once up front (minutes × 0.03, e.g. 15 minutes = 0.45 USDC). Over MCP too: this is a sale, not a toll, so it is NEVER waived — retry the tool with the payment. Opens a disposable Ubuntu machine (1 vCPU, 3 GB RAM, 4 GB disk; node 22, python 3, git, curl, jq, playwright clients) and a separate Browserbase browser already connected to it: inside, connect with playwright connectOverCDP(process.env.BROWSER_WS_URL). Optional env: your own variables (a model API key, an MCP token…), passed to every command, masked in your owner's log. No model is included: minirouter-signup inside opens your own pay-as-you-go account. Answers lease_token (KEEP IT: shown once, every other call needs it), view_url (give it to your owner: every command, the browser live, your transcript written with brij-log), expires_at. One open lease per wallet; refused before payment when the service is full (503 sandbox_capacity) or disabled. Unused minutes are not refunded. With home_id, the machine keeps its /workspace between leases (rent per task, keep the state). Everything in the machine is destroyed at the end. Rules: no captcha solving or anti-bot evasion, no abuse of third parties; a breach ends the lease and blocks the wallet.

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": {
      "minutes": "<minutes>"
    },
    "name": "brij_sandbox_start"
  }
}

Input Schema

NameRequiredDescriptionDefault
envNoOptional: your own environment variables for every command (≤32, ≤32 KiB). Names starting with BRIJ_ and BROWSER_WS_URL are reserved.
initNoOptional command started in the background once the lease is paid, after the home is restored, with your env (e.g. `python3 runner.py`). The answer's init says whether it started, with its process_id and log for POST /sandbox/logs.
home_idNoOptional persistent home (your agent id, [A-Za-z0-9_-], ≤64). The first lease with an unknown home_id creates it and binds it to the paying wallet; every later lease with it restores /workspace (your files, your runner, .brij/minirouter.json…) before you get the machine, and the lease's end saves it again (encrypted, ≤100 MB compressed, kept 30 days after last use). One open lease per home. Env variables are NOT saved: pass them at each start.
minutesYesLease length. Price = minutes × 0.03 USDC.
voucherNoOptional test voucher an operator gave you: the lease is free and no payment is asked.
x402_paymentNoOptional: the base64 x402 payment payload (the PAYMENT-SIGNATURE header value), for a client that cannot set _meta["x402/payment"].

Output Schema

NameRequiredDescriptionDefault
homeNoWith home_id: {home_id, restored}.
initNoWith init: {started, process_id, log} or {started: false, error}.
nextNoWhat to do next, in words.
minutesNoPaid minutes.
lease_idNoThe lease's public id.
view_urlNoRead-only page for your owner: commands, live browser, transcript.
expires_atNoWhen the machine is destroyed.
lease_tokenNoBearer for every other sandbox call. Shown once: keep it.
live_view_urlNoWatch the browser live while the lease runs.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • addedInput schema / properties / home_id
      Added value: +{
      +  "description": "Optional persistent home (your agent id, [A-Za-z0-9_-], ≤64). The first lease with an unknown home_id creates it and binds it to the paying wallet; every later lease with it restores /workspace (your files, your runner, .brij/minirouter.json…) before you get the machine, and the lease's end saves it again (encrypted, ≤100 MB compressed, kept 30 days after last use). One open lease per home. Env variables are NOT saved: pass them at each start.",
      +  "type": "string"
      +}
    • addedInput schema / properties / init
      Added value: +{
      +  "description": "Optional command started in the background once the lease is paid, after the home is restored, with your env (e.g. `python3 runner.py`). The answer's init says whether it started, with its process_id and log for POST /sandbox/logs.",
      +  "type": "string"
      +}
    • addedInput schema / properties / voucher
      Added value: +{
      +  "description": "Optional test voucher an operator gave you: the lease is free and no payment is asked.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / home
      Added value: +{
      +  "description": "With home_id: {home_id, restored}."
      +}
    • addedOutput schema / properties / init
      Added value: +{
      +  "description": "With init: {started, process_id, log} or {started: false, error}."
      +}
  2. Added

TDQS

A4.2/5.0
Behavior5/5

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

Far beyond the annotations, the description discloses pricing ($0.03/min, 5–60 minutes, paid upfront, example 15 min = 0.45 USDC), that unused minutes are not refunded, that payment is never waived over MCP, that the machine is destroyed at the end, that home_id preserves /workspace encrypted for 30 days, that lease_token is shown once, that env is masked in the owner's log, and that a rules breach blocks the wallet. These are exactly the cost, persistence, and irreversibility facts an agent needs before a paid, non-idempotent call.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The content is valuable but poorly ordered and repetitive: the payment preamble precedes the actual purpose, and the "sale, not a toll, never waived over MCP" point is made twice in near-identical wording. Parenthetical asides and the mid-text "Next: brij_sandbox_exec" instruction interrupt the flow. It should be front-loaded with the purpose and price, then the payment protocol once.

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 paid, non-idempotent, open-world provisioning tool, everything material is covered: cost, duration bounds, capacity failure mode, payment retry flow, lease_token handling, view_url handoff to the owner, persistence semantics via home_id, destruction at lease end, and acceptable-use rules. Return values are also described, though an output schema exists, so that is redundant rather than necessary.

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 coverage is 100%, so the schema already documents minutes, env, init, home_id, voucher, and x402_payment. The description still adds real meaning: the price formula tied to minutes, the fact that env vars are not persisted across leases and must be re-passed, and the operational sequence for x402_payment (retry the same call with the payment in _meta["x402/payment"] or x402_payment).

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The core purpose is stated concretely: "Rent a Linux computer + browser for N minutes" with machine specs (1 vCPU, 3 GB RAM, node 22, python 3, playwright) and an attached Browserbase browser. It is distinguishable from siblings like brij_sandbox_exec or brij_sandbox_close. However, the purpose sentence is buried after a dense x402 payment paragraph, so an agent scanning the first line reads payment mechanics rather than what the tool does.

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

Usage Guidelines4/5

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

Explicit when-to-use context: rent a disposable machine for a task, with a concrete next step ("Next: brij_sandbox_exec 'cat /workspace/README.md'") and the two-call payment protocol (call without payment, then retry with payment). It also states refusal conditions (503 sandbox_capacity, disabled) and the one-open-lease-per-wallet rule. It does not contrast against alternatives such as brij_sandbox_checkout, brij_sandbox_extend, or brij_sandbox_pay, which would be the natural siblings for payment/extension decisions.

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.

Resources