Run a job on a rented machine (up to your spending limit)
submitJobEstimate first — budgetUsd is optional there — then ask the user for budgetUsd (never choose one for them) and call submitJob only after the user has approved the estimate at that budget. Run a containerized workload on a rented cloud machine sized to the spec — GPU, and as much disk as minDiskGb asks for, so the local machine's disk and bandwidth are irrelevant (the machine downloads datasets itself). Queues the job and returns a durable executionId immediately (status "queued"); Symbioza provisions, runs, collects the output files and tears down, all under the budgetUsd ceiling. Write every deliverable to /workspace/artifacts/ — only that directory is collected and returned by getArtifact; a command that saves its model to the working directory or any other path finishes with nothing delivered. image must be one of the images we have verified launch on our machines: pytorch/pytorch:2.4.1-cuda12.1-cudnn9-runtime, pytorch/pytorch:2.4.0-cuda12.1-cudnn9-runtime, tensorflow/tensorflow:2.15.0. Any other image is refused with code invalid_spec, action fix_spec and a supportedImages list, before anything is booked or charged. budgetUsd is what you are willing to spend on the job, and you are never billed more than that. Call estimateExecution first if you have not priced this spec — it also tells you whether this account can cover the budget, and whether it holds free compute credit still to claim. A refusal here carries a machine-readable code (unauthorized, invalid_spec, budget_too_low, insufficient_balance, access_required, secret_conflict, no_compute, unavailable, refused) and one action (authenticate, fix_spec, raise_budget, add_funds, claim_credit, add_access, relax_spec_or_retry, retry_later, contact_support), so branch on those rather than on the sentence; a refusal books no machine and charges nothing. insufficient_balance with action claim_credit means free credit is waiting on the account — claim it at https://symbioza.dev/app and resubmit; insufficient_balance also carries shortfallUsd and topupUrl. access_required and secret_conflict carry the same access block estimateExecution returns, with a Symbioza setup link for each missing saved secret: give the user that link, and after they say it is saved call listSecrets and submit again. On acceptance each attached set is pinned to its id. OPTIONAL: if your workload can count its own work, write /workspace/artifacts/.symbiosa/metrics.json with {"unit": "configuration", "units_planned": 100, "units_completed": 100, "elapsed_seconds": 4821} — unit is free text naming what you counted, partial progress is valid evidence on a failed run, and the whole file is optional (omit it and throughput is simply recorded as UNKNOWN; do not invent a unit to fill it in). It is recorded as observed evidence about your workload and never affects what you are charged; a missing, malformed or incoherent file changes nothing about the run. You may disconnect and poll getStatus later. If an attempt fails and the job is moved to a replacement machine, the newest checkpoint streamed off the previous box (files named ckpt_step.pt, N = digits) is pushed onto the new box under /workspace/.symbiosa/resume/ (outside the artifacts directory) and SYMBIOSA_RESUME is set to its absolute path there — your command must load that file to continue, or the attempt restarts from the beginning. The variable is unset on a first attempt, when no checkpoint was kept, when kept checkpoints span more than one directory (multi-arm layouts are not restored), when checkpoint.enabled is false, when the box lacks disk headroom, or when the push failed; restore is best-effort salvage and never fails a run. Work since the last streamed checkpoint is lost, and the push's hash check proves the transfer, not that the checkpoint itself is intact. Only when the user explicitly requires a particular model for their own benchmark, set gpu.gpuNameExact: true alongside gpu.gpuName to pin the CARD MODEL: only that model is booked and every substitute is refused, including a faster one, because when the measured quantity is the hardware a better card is as wrong as a slower one; it holds the model across every run. pinHost is accepted and ignored. The same model is sold at different board powers under one name, so for an energy or efficiency measurement also declare gpu.minPowerLimitW (watts): hosts below it are refused, and a host publishing no power figure is refused rather than assumed un-throttled. Declare gpu.minCudaVersion (e.g. 13.0) when your image pins a torch/flash-attn build against a CUDA version: only hosts whose driver advertises at least that CUDA are booked, and a host that publishes no CUDA ceiling is refused rather than booked. Declare datasetGb as the total data the box will ingest, including data it downloads itself (not only what datasets[] stages), so a host too slow to pull it in time is filtered before booking. With a clientRequestId, the same key with the same spec returns the same job, marked duplicate: true, instead of booking and charging for a second one; the same key with a different spec is refused with invalid_spec. Without a key, an identical submission (same spec and budget) from the same account returns the same job marked duplicate: true and deduplicated: true and books nothing while that job is still queued or running, at any time after it failed, was cancelled or was lost (then the response carries a hint instead of starting a second paid attempt), and within 10 minutes of its acceptance if it delivered. Keep one clientRequestId for one submission across every resend. To run a failed, cancelled or lost job again, call submitJob with retryOf set to its executionId and a new clientRequestId: that starts a fresh attempt at once, checked against the budget and balance again, even with the same spec, and its response names the earlier job as retryOf; a retryOf that is not a failed, cancelled or lost job of this account is refused with invalid_spec. A new clientRequestId always starts a new job. Pass the specDigest estimateExecution returned and a spec or budget changed since that estimate is refused with invalid_spec, so what runs is what you were quoted. A job whose command, image or environment names cryptocurrency-mining software or a mining pool is refused under the Terms of Service (code refused, action contact_support); nothing is booked and nothing is charged.
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": {
"spec": "<spec>"
},
"name": "submitJob"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spec | Yes | The job spec: image + command run on a rented box sized by minDiskGb (and gpu, when declared), under budgetUsd. Supply the workload: the image, the command, its inputs, the expected outputs and budgetUsd. Symbioza sizes the machine — do not ask the user to choose CPU cores, RAM, VRAM, a GPU model, a provider or a region, and do not derive a resource minimum from a thread count, a worker count or a measurement taken somewhere else. gpu.minVramGb, minRamGb and minCpuCores are optional expert floors: declare one only when the workload has evidence for it, and omit it otherwise — an omitted floor is sized by Symbioza, never treated as zero. The gpu block is optional: leave it out and the job is still GPU work with Symbioza sizing the card; declare it to carry minCudaVersion or an evidenced floor. | |
| authKey | No | Usually omit this. The customer door — the OAuth-signed-in HTTPS connector at https://symbioza.dev/mcp — authenticates the session itself, so no key is passed per call. Only a self-hosted or test transport passes a key here. | |
| retryOf | No | Only to run a failed, cancelled or lost job again, on purpose: that job's executionId, sent with a new clientRequestId. The retry starts at once as a new job, checked against the budget and balance again, may carry the same spec, and its response names the earlier job as retryOf. Refused with invalid_spec when the job is not this account's, was delivered, or is still queued or running. | |
| budgetUsd | No | Optional cross-check: must EQUAL spec.budgetUsd or the submit is rejected. Never overrides it. | |
| specDigest | No | Optional, recommended: the specDigest estimateExecution returned for this spec — if the spec or its budgetUsd changed since that estimate, the submit is refused with invalid_spec and nothing is booked or charged. | |
| clientRequestId | No | Optional, recommended: a key of your own for this submission, 1 to 128 printable ASCII characters — keep it for every resend of the same submission (after a timeout or a lost response): the same key with the same spec returns the same job whatever its outcome: the same executionId with duplicate: true, nothing booked or charged twice; the same key with a different spec is refused with invalid_spec, so use a new key for a new spec or for a retryOf retry. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | Machine-readable refusal code: unauthorized, invalid_spec, budget_too_low, insufficient_balance, access_required, secret_conflict, no_compute, unavailable, refused | |
| hint | No | On a repeated submission whose job ended without delivering (failed, cancelled or lost): nothing new was booked, and this says how to run it again — submitJob with retryOf and a new clientRequestId | |
| access | No | On access_required or secret_conflict: what the spec's secrets need, with setup links | |
| action | No | The one next step: authenticate, fix_spec, raise_budget, add_funds, claim_credit, add_access, relax_spec_or_retry, retry_later, contact_support | |
| reason | No | Why, in a customer-safe sentence | |
| status | No | "queued" on acceptance | |
| retryOf | No | The earlier job this one retries: set when submitJob was called with retryOf, on the retry and on every resend of it | |
| rejected | No | Present and true when the call was refused; nothing was booked or charged | |
| topupUrl | No | On insufficient_balance: the link to give the user for that credit | |
| duplicate | No | true when a repeated submit returned the job the first call started: a clientRequestId retry, or an identical keyless submission | |
| executionId | No | Your durable job id | |
| deduplicated | No | true when no clientRequestId was sent and an identical submission from this account (still queued or running, ended without delivering at any age, or delivered and accepted within the last 10 minutes) was matched; nothing was booked | |
| shortfallUsd | No | On insufficient_balance: whole dollars of credit this job still needs | |
| supportedImages | No | On an unverified-image refusal: the images the door accepts |