Fluiddocs
Reference

MCP tools reference

Every tool Fluid's MCP server gives a coding tool, generated from the server's own tool definitions.

Warnings and limits

  • Fluid is open to anyone with a verified email address.
  • A tool acts with the scopes its sign-in holds: an agent token is never given the admin scope, so tools that change settings or clean up leaks are refused by hosted Fluid (an Owner does both in the console).
  • run uploads only a directory inside the one the server started in, or one fluid mcp --root DIR added; never your home directory or a directory above it, and never one inside a dot directory.
  • connect_from_cli makes changes in your cloud account only with confirm=true, after you agreed to the plan it showed, and only as it was shown.
  • login signs in only to the gateway the CLI uses, or Fluid's own: a page or a message cannot point it anywhere else.

fluid mcp serves these tools over stdio; fluid setup registers it with the coding tools it finds (Set up your coding tool). Each tool answers with Fluid's JSON as text. Jobs may be named by id, a unique start of an id, or name.

ToolWhat it does
loginSign this machine in to Fluid through the browser, with no token pasted or shown, to the gateway the CLI uses (cli.json), or to Fluid's own (https://api.fluid.sh) when it uses none.
pricesCompare compute quotes in USD/hour, with resources, regions, purchase models, pricing provenance and, for spot, the capacity likelihood when known (extra.capacity: EC2's Spot placement score, 1 to 10; Google Cloud's Spot advice, 0 to 1, with expected_uptime_s, observed_at and the scope asked, or a status and reason when there is none).
runCompare quotes, then run a script on a selected machine.
statusA job's estimated cost, saving, progress, hops, moves and events; without a job, the overview.
logsA job's output: the last lines (a progress bar's line as its last drawing), or with offset exactly what came after an earlier call's next.
explainEvery policy decision about a job, oldest first: when, which policy (spot, return, oom, cheaper, lifetime, rightsize, budget, idle, ttl), what it did, and why; with the job's moves and without_portal, its estimated saving against one machine for the whole job (status describes it).
moveMove a running job to another machine (it continues where it paused), or with plan only show where.
stopStop a job; its machine is terminated.
suspendSuspend a job: its state is parked in storage and its machine terminated; resume continues it.
resumeResume a suspended job from its checkpoint when you or the user choose, or start a job that found no capacity again on another machine; on selects an exact destination (a no_capacity job's choices name some), or requirements change what the job needs and keep the rest, not both.
auditEverything Fluid runs across providers.
connectionsConnected providers with their methods and fields, caps, states and setup, and the names of stored secrets (never values).
connectAdd a cloud connection or update one (its credentials, region or cap): the gateway verifies the credentials with the provider, keeps them as the method's stored text in connections says (sealed for a token or key; nothing replayable for an AWS role or a federated identity) and sets up what the provider needs.
detect_computeThe cloud CLIs installed and signed in on this machine (aws, az, modal, Lambda's key in LAMBDA_API_KEY, gcloud and kubectl): for each, who it is signed in as (identity), whether Fluid can connect it from here (connectable, checked against the gateway in use) and what to do (how), and connectable, the providers connect_from_cli can connect.
connect_from_cliConnect a cloud with the login of its CLI on this machine, by each cloud's recommended method unless told otherwise (AWS: a role in the person's account that the gateway assumes, with Fluid's policy, nothing stored that a thief could use, or an IAM user and key with keys=true; Azure: a federated credential on an app Contributor on the resource group soma only, or a client secret with secret=true; Google Cloud: a workload identity provider in the project that trusts this workspace's identity alone, with no key (federated=true requires it), or a service account key with keys=true or where the gateway cannot offer the keyless connection; Modal: a token the person approves on modal.com; Lambda: the key in LAMBDA_API_KEY), saved on the gateway and never shown.
disconnectRemove a connection: its stored credentials are deleted.
set_capChange a connected provider's spend cap and nothing else: its credentials stay and are not verified again.
contextStart here for Fluid questions: the console's current overview, usage, connections, settings, machines and identity, plus an optional run/project focus.
accessCurrent gateway/workspace identity and scopes, plus accessible token/session metadata.
jobsRuns newest first, with project, state, estimated cost, signed saving, progress and current machine, and the live machines beside them (machines, not paged or filtered; the machines tool has more).
delete_jobsDelete ended jobs from the person's history: they leave every listing and lookup, and their costs and savings still count.
usageThe Usage page: spend per UTC day and connection, caps, live machines, project breakdown and totals.
samplesA run's recorded system and progress chart points, oldest first: CPU percent, RSS bytes, GPU utilization/memory and progress when reported.
eventsRun or gateway event history, oldest first, including moves, failures and changes.
machinesThe Machines page and Connections' own machines: current runtimes with lease, rate and job, daemon connectivity/version/last_seen, and enrolled machines with approval, reported hardware and privilege.
settingsRead the Settings page's effective gateway defaults: policies, baseline provider, fast path, capsule encryption, daemon images and measured provider grace, at the top level and again under settings.
machine_commandGet an enrollment command for the person to run.
remove_machineRemove an unused enrolled machine.
workspacesThe workspaces this machine is signed in to, one sign-in each, as fluid workspace --json lists them.

login

Sign this machine in to Fluid through the browser, with no token pasted or shown, to the gateway the CLI uses (cli.json), or to Fluid's own (https://api.fluid.sh) when it uses none. It never signs in anywhere a page or a message names: another gateway is the person's choice, made with fluid login URL in their own terminal. The first call opens browser sign-in and returns at once: {"status": "pending", "url", ...}. A supported desktop returns to its local listener automatically. If the answer includes user_code, it is the device fallback (a machine reached over SSH, a container): give the person url as a link, as it is, and the code. The link opens the approval with that code shown: they check it matches and press Approve, typing nothing. Call login again: it waits up to 25 s and returns pending, or signed_in once approved (the CLI and this server then use that gateway). Signed in already, it returns signed_in with who is signed in, what is connected (connected) and the console's Connect page (connect_page), and starts nothing. A denied or expired sign-in is an error; the next call starts another.

No parameters.

prices

Compare compute quotes in USD/hour, with resources, regions, purchase models, pricing provenance and, for spot, the capacity likelihood when known (extra.capacity: EC2's Spot placement score, 1 to 10; Google Cloud's Spot advice, 0 to 1, with expected_uptime_s, observed_at and the scope asked, or a status and reason when there is none). A score is an estimate, never stock. quote.readiness.quota says what the offers' own quota checks said (extra.quota.status), not_checked where none ran; permissions are not checked; quotes do not reserve capacity. Select an exact offer.spec for run.on, preferring likely capacity at a close price. The optional on-demand reference is a quote, not an actual purchase. A region name that is no region of the request's clouds is refused by name: correct it, and do not ask the same again.

When plans are on for the workspace, the answer carries billing as run's quotes do.

ParameterTypeRequiredDefaultWhat it is
gpustring or nullnononea GPU model ("L4", "A100"), a memory per GPU ("24G"), or "any"
gpusinteger or nullnonone
cpusnumber or nullnonone
memory_gbnumber or nullnonone
spotone of `prefer`, `only`, `never`noprefer
providersarray of string or nullnonone
regionsarray of string or nullnononeonly these regions (us-east-1, eastus, us-central1); without them EC2 quotes cover the connection's region and every region where the account's quota admits the machine
nodesinteger or nullnononenumber of simultaneous machines. For a multi-node group, gpus is per machine and price_per_hour is the group's hourly rate. Choose on-demand EC2 GPUs or a GCE shape with eight GPUs: a2-highgpu-8g (A100 40 GB), a2-ultragpu-8g (A100 80 GB), or g2-standard-96 (L4). For a Flex-start quote, use run(plan=true) with a zone-pinned A2 Ultra spec ending in :provisioning=flex_start.
computebooleannofalsetrue: Fluid compute's rate card instead of quotes, and no other field is read. The answer is version and chips, each with chip and sizes (vram_gb, usd_per_hour as a string of dollars, and available: false marks a size that is not available yet, so run with that chip and size cannot start now; gpus lists the counts of GPUs on one machine the size can be had with now, for run with chip and gpus, and the rate is one GPU's): flat rates published in advance, for run with chip. It names no provider

run

Compare quotes, then run a script on a selected machine. Without on, or with plan=true, returns quotes only: nothing is packed, uploaded or started. Choose a suitable offer and call again with its exact spec as on and a nonblank project name, subject to the user's authorization and normal tool approvals. With on and plan=false, returns the job (follow with status/logs), its console_url (show the user that link) and what was packed and left out. The plan's chosen offer is a recommendation, never an accepted selection. estimate.saving_pct is a percentage against the plan's baseline (an on-demand reference offer, named there with its region), not actual savings or a purchase; below zero the offer is dearer than the baseline (-25 costs 25% more). A refusal saying Fluid is running as many jobs as it can take created nothing: wait a minute and call again. One saying the operator has paused new work everywhere: tell the user, and do not retry in a loop. on names only what its provider makes: a refusal of a spec, a region name or ranks says what to name instead, so change the request and do not send the same one again.

With chip, the job runs on Fluid compute: no quote, and the answer is its job_id or a refusal (see chip).

With payment_method_required, tell the user what it says and stop: an Owner links a method in the console.

When plans are on for the workspace, the answer carries billing, the plan: its line, if any, is for the user. A quote is always answered, without next_action when a launch would be refused: billing.state is limit or payment_overdue, or the quote carries refusal. A launch the plan refuses is an error with a code, and starts no job. With plan_limit, payment_overdue or plan_feature, tell the user what the message says and stop. Do not look for another way to run the job on Fluid: another cloud or machine does not lift the limit. With autopay_pending, try once more in a minute; if it is refused again, tell the user. Never buy compute or ask for payment details.

ParameterTypeRequiredDefaultWhat it is
pathstring or nullnononethe project directory, uploaded with the job: inside the directory where the MCP server started (unless that is or holds the home directory) or one fluid mcp --root DIR adds; relative paths are read from where it started; never the home directory or a dot directory. Required with script; left out with example, which uploads no directory
scriptstring or nullnononethe Python file to run, relative to path. Required unless example is true. When the file the user named is not in the project, say so and ask for its path, or offer the example: never search outside the project for a file of that name
argsarray of string or nullnonone
requirementsobject or nullnononewhat the job needs: gpu (a model, a memory such as "24G", or "any"), gpu_memory_gb, gpus (alone: that many of any GPU per machine), nodes (machines running together, default 1; several require on-demand EC2 GPUs or a GCE shape with eight GPUs: a2-highgpu-8g (A100 40 GB), a2-ultragpu-8g (A100 80 GB), or g2-standard-96 (L4)), cpus, memory_gb, spot (prefer, only or never), providers (a list), regions (a list), max_price (USD per hour). Preview GCE A2 Ultra Flex-start with run(plan=true) and a zone-pinned on spec ending in :provisioning=flex_start.
budget_usdnumber or nullnononeoptional. A budget suspends the run when it is spent: its machine is released and the program stops until someone resumes it. Leave it unset unless a spending limit is wanted.
planbooleannofalseonly return quotes, even when on selects an exact machine
namestring or nullnonone
projectstring or nullnononerequired to launch, optional for quotes: a project name (1 to 100 characters); status and the console group jobs and their cost estimates and comparisons by it
onstring or nullnononelaunch on the exact offer.spec selected from returned quotes; without on, return quotes only
envobject of string or nullnononeenvironment variables for the script, {NAME: value}: never a secret; use secrets=NAME for stored secrets
secretsarray of string or nullnononestored secrets to pass as variables
policyobject or nullnononepolicy overrides over the project's portal.yaml and the workspace defaults, e.g. {"return": {"on": false}, "rightsize": {"mode": "off"}}; the policies are spot, return, oom, cheaper, lifetime, rightsize (mode on_move, active or off), budget, idle, ttl, checkpoint (mode ranks or off, every_min, 1 at the least; first_within_min, the latest a machine's first checkpoint comes whatever it costs, and max_every_min, the longest interval Fluid sets, each 10 at the least). A spot or preemption notice, recoverable out-of-memory failure or known impending provider time limit checkpoints to storage and suspends the job; you or the user choose when and where to resume it. A job of several ranks also checkpoints itself while it runs: a rank that runs out of memory or is killed, or a lost machine, leaves it suspended on its last checkpoint
gpu_fallbackone of `none`, `same_provider`, `any` or nullnononewhat Fluid does when the GPU asked for (on, or a move's to) is not scheduled within its bounded wait (5 min on Modal): same_provider runs on that provider's cheapest other GPU of the job's size, any on any connected provider's; none, the default, ends the run (or leaves a move unmade) with the choices for the person to pick from. An event names what was asked, what runs instead and the price difference
ranksinteger or nullnononestart this many processes of the script that train together, as torchrun does (RANK, WORLD_SIZE and the rest are set). This is the total across all requirements.nodes and must divide evenly among them. With GPUs each rank gets one and requirements.gpus defaults to ranks per machine. 1 starts one process with those variables set, for a script written for torchrun; without ranks the script runs as a plain process. When plans are on for the workspace, more than one rank needs the Team plan; a refusal with plan_feature says so
examplebooleannofalsetrue: run Fluid's example job in place of a script, with no script, path or args. It comes with Fluid, needs no file of the user's and uploads nothing of theirs: it prints the machine's GPU, counts for under a minute and ends. Every other field works as with a script: without on or chip it returns quotes, and a launch needs project. Use it when the user asks for a first job, a test job or a demo, or names no script
expect_workspacestring or nullnononethe workspace the person asked to run in, by its id or its name (an id is exact; a name is matched case ignored, or by a unique start). The run is refused before anything is packed or uploaded unless it is the workspace this server uses; the refusal names both. This never switches workspace: tell the person what it says
chipstring or nullnononeFluid compute: run on this chip from the rate card (prices with compute=true), e.g. A100, placed by Fluid and paid from the workspace's prepaid balance. No quote: the call packs and uploads path and answers job_id, chip, vram_gb, gpus, usd_per_hour (the job's whole rate), rate_card_version and console_url (the job's page in the console: show the user that link), or is refused with the reason. It asks first whether the job would be admitted, so a refused one uploads nothing. Needs project; takes vram, gpus, name, env and secrets; refused with requirements, on, plan, budget_usd, policy, gpu_fallback or several ranks
vraminteger or nullnononewith chip: the chip's memory in GB, e.g. 80; without it the cheapest size the chip comes in
gpusinteger or nullnononewith chip: how many GPUs of the chip the job has on one machine, e.g. 4; without it one. The job is one process that sees them all, and pays the chip's rate once for each. Only a count the rate card lists for the chip's size can be had (prices with compute=true, gpus)

status

A job's estimated cost, saving, progress, hops, moves and events; without a job, the overview. saved_usd is the estimated saving against one machine for the whole job (without_portal.method without_portal_v2): baseline_usd is what the dearest machine the job used would have cost at its standard price for the machine time paid, plus the work Fluid preserved; saved_usd = max(0, baseline_usd - actual_usd), never negative. without_portal.breakdown gives spot_usd, cheaper_machines_usd, preserved_usd and rescues_usd (what Fluid did) and overhead_usd beside them (the cost of moving: what was paid beyond rate times time, such as a move's pause on two machines, data sent between clouds, a provider's minimum or a slow shutdown; zero or more); without_portal.segments give each machine's chosen_by, price_per_hour (p), standard_price_per_hour (s), reference_price_per_hour (the one machine's price for that stretch), counted_s (t), running_s (u) and rescues_after (r). savings_status: available, unavailable (reason says why; null amounts are unknown, never zero) or not_applicable (own machines only, or never ran); basis inferred means reckoned from older records. Totals sum available runs only and count the rest in unavailable_comparisons and not_applicable_comparisons (status partial when some are left out); comparison_cost_usd is their Actual, cost_usd every run's. saved_pct is a fraction: 0.32 means 32% (a plan's saving_pct, unlike it, is a percentage). Costs are estimates, not provider invoices. A job's carry is its daemon's last capture check (ok, problems a checkpoint cannot carry, blocked, warning) and notice_fit whether its memory is above what its spot machine's notice can save; both are warnings the person should see (context has capture_check and state_fit). A job's result is what its program said in a line ::result:: {...} printed last: null until the job has ended or where it said none.

When plans are on for the workspace, the overview carries billing, the plan: its line, if any, is for the user.

ParameterTypeRequiredDefaultWhat it is
jobstring or nullnononea job; without one, the overview

logs

A job's output: the last lines (a progress bar's line as its last drawing), or with offset exactly what came after an earlier call's next. eof is true once the job has ended and everything was read.

ParameterTypeRequiredDefaultWhat it is
jobstringyesa job id, a unique start of one, or a job name
tailintegerno100lines from the end, 0 or more
offsetinteger or nullnononeread from here instead (a next from before)
waitnumberno0seconds to wait for new output, at most 30

explain

Every policy decision about a job, oldest first: when, which policy (spot, return, oom, cheaper, lifetime, rightsize, budget, idle, ttl), what it did, and why; with the job's moves and without_portal, its estimated saving against one machine for the whole job (status describes it).

ParameterTypeRequiredDefaultWhat it is
jobstringyesa job id, a unique start of one, or a job name

move

Move a running job to another machine (it continues where it paused), or with plan only show where. Give to or requirements, not both. A plan's estimate.saving_pct is held against the machine the job is on (plan.current; estimate.against is current), not against plan.baseline: two machines at one price save nothing, and say so. Below zero the machine is dearer: -100 costs 100% more than the job pays now (twice the price); say it as that cost, never as a saving. Its estimate.egress_usd is an estimate priced on estimate.state_bytes: an upper bound when state_kind is memory. The answer's outcome is accepted (not followed: wait is 0), landed, aborted (with the reason), parked or pending (still under way after the wait), and outcome_in says where to read it later: events(job) says when it lands or why it did not, status(job) where it runs. A job whose program has exited is refused with its end: the job already finished. A refusal saying the operator has paused new work everywhere: tell the user, and do not retry in a loop. to names only what its provider makes: a refusal of a spec or a region name says what to name instead, so change it and do not send the same one again.

ParameterTypeRequiredDefaultWhat it is
jobstringyesa job id, a unique start of one, or a job name
tostring or nullnononeexactly here, e.g. modal:gpu=L4
requirementsobject or nullnononewhat the job needs: gpu (a model, a memory such as "24G", or "any"), gpu_memory_gb, gpus (alone: that many of any GPU per machine), nodes (machines running together, default 1; several require on-demand EC2 GPUs or a GCE shape with eight GPUs: a2-highgpu-8g (A100 40 GB), a2-ultragpu-8g (A100 80 GB), or g2-standard-96 (L4)), cpus, memory_gb, spot (prefer, only or never), providers (a list), regions (a list), max_price (USD per hour). Preview GCE A2 Ultra Flex-start with run(plan=true) and a zone-pinned on spec ending in :provisioning=flex_start.
planbooleannofalseonly return where it would go and at what price
onstring or nullnononesame as to
gpu_fallbackone of `none`, `same_provider`, `any` or nullnononewhat Fluid does when the GPU asked for (on, or a move's to) is not scheduled within its bounded wait (5 min on Modal): same_provider runs on that provider's cheapest other GPU of the job's size, any on any connected provider's; none, the default, ends the run (or leaves a move unmade) with the choices for the person to pick from. An event names what was asked, what runs instead and the price difference
waitnumberno0seconds to wait for the move's outcome, at most 15; 0 returns once it is accepted

stop

Stop a job; its machine is terminated.

ParameterTypeRequiredDefaultWhat it is
jobstringyesa job id, a unique start of one, or a job name

suspend

Suspend a job: its state is parked in storage and its machine terminated; resume continues it.

ParameterTypeRequiredDefaultWhat it is
jobstringyesa job id, a unique start of one, or a job name
last_checkpointbooleannofalsea job of several ranks only: suspend it on its last checkpoint now, without pausing it (the way out when its ranks hang and a plain suspend cannot pause them); the work since that checkpoint runs again after a resume, and a job that has no checkpoint is refused

resume

Resume a suspended job from its checkpoint when you or the user choose, or start a job that found no capacity again on another machine; on selects an exact destination (a no_capacity job's choices name some), or requirements change what the job needs and keep the rest, not both. budget_usd replaces the job's budget with the resume (what it spent so far counts against it): the way on when a stop set from the old budget suspended it, with the user's agreement. A refusal saying Fluid is running as many jobs as it can take changed nothing: wait a minute and call again. One saying the operator has paused new work everywhere: tell the user, and do not retry in a loop. One with the code build_gone is final (the release of Fluid that wrote the job's checkpoint is no longer kept, and status shows the same sentence as the job's unresumable): no machine and no retry changes it, and move and suspend are refused the same way. Tell the user what it says. on names only what its provider makes: a refusal of a spec or a region name says what to name instead, so change it and do not send the same one again.

With payment_method_required, tell the user what it says and stop: an Owner links a method in the console. The resume of a suspended job is never refused for it.

When plans are on for the workspace, the plan never refuses the resume of a suspended job. It can refuse starting a no_capacity job again, with a code in the error. With plan_limit, payment_overdue or plan_feature, tell the user what the message says and stop. Do not look for another way to run the job on Fluid: another cloud or machine does not lift the limit. With autopay_pending, try once more in a minute; if it is refused again, tell the user. Never buy compute or ask for payment details.

ParameterTypeRequiredDefaultWhat it is
jobstringyesa job id, a unique start of one, or a job name
onstring or nullnononeexactly here instead of the best offer
requirementsobject or nullnononewhat the job needs: gpu (a model, a memory such as "24G", or "any"), gpu_memory_gb, gpus (alone: that many of any GPU per machine), nodes (machines running together, default 1; several require on-demand EC2 GPUs or a GCE shape with eight GPUs: a2-highgpu-8g (A100 40 GB), a2-ultragpu-8g (A100 80 GB), or g2-standard-96 (L4)), cpus, memory_gb, spot (prefer, only or never), providers (a list), regions (a list), max_price (USD per hour). Preview GCE A2 Ultra Flex-start with run(plan=true) and a zone-pinned on spec ending in :provisioning=flex_start.
budget_usdnumber or nullnononeoptional. A budget suspends the run when it is spent: its machine is released and the program stops until someone resumes it. Leave it unset unless a spending limit is wanted.

audit

Everything Fluid runs across providers. When work is done leaks, untracked (Fluid machines no Fluid deployment tracks), unlistable (providers that could not be listed, so not checked) and left_behind (what a machine's end left in the cloud account that Fluid does not delete: it bills until the person removes it, with the command in its remove) must be empty, and no resource's state unknown. other_controllers (owner other in resources) are another Fluid deployment's machines in the same cloud account: not this workspace's, never its leaks, and not to be ended from here.

ParameterTypeRequiredDefaultWhat it is
fixbooleannofalserefused by https://api.fluid.sh: tell the person, and an Owner cleans up leaks in the console (Machines, Audit, Clean up leaks). On a gateway you run yourself: terminate leaked resources, then audit again
untrackedbooleannofalsewith fix: also terminate Fluid machines no Fluid deployment tracks. With several Fluid deployments in one account they can be another deployment's running jobs

connections

Connected providers with their methods and fields, caps, states and setup, and the names of stored secrets (never values). quota_guidance describes the checks and provider request paths to help make a connected account usable; quotas remain unchecked until read from that account for the intended workload.

No parameters.

connect

Add a cloud connection or update one (its credentials, region or cap): the gateway verifies the credentials with the provider, keeps them as the method's stored text in connections says (sealed for a token or key; nothing replayable for an AWS role or a federated identity) and sets up what the provider needs. Prefer each cloud's recommended_method, and tell the person how the values are kept before saving. Returns the connection as connections lists it, never a value, with notes when the save's check said something to tell the person (Google Cloud: private networking chosen because the organization's policy denies external IPs, or that policy unreadable; Modal: no environment named, so the connection uses Modal's default environment main). Prefer from_env or file for the credentials; with file, the import's result (imported, secrets, unknown, failed, and notes by connection name) comes with it, and a cap covers this connection alone (cap_usd, capped and cap_failed say so).

ParameterTypeRequiredDefaultWhat it is
providerstringyesa connection name: aws, aws.research, azure.lab, gcp.research, modal, lambda or machine.box
methodstring or nullnononehow to connect, one of the methods connections lists for it (default: the one the fields given fit, or its current one)
cap_usdnumber or nullnononespend cap in USD for every machine the connection runs: machines whose worst case would cross it are refused (optional: new connections have no cap unless set; an update keeps the existing cap)
regionstring or nullnononethe method's region or location field (aws keys: region; azure: location); refused for a method without one. Jobs choose any region unless their requirements name regions
from_envobject of string or array of string or nullnononeenvironment variables of the MCP server's own process that hold the method's values, read here so that the values never pass through the model: a list of names, each naming its field by its ending (AWS_ACCESS_KEY_ID is access_key_id, MODAL_TOKEN_SECRET is token_secret, LAMBDA_API_KEY is api_key), or {field: VARIABLE}
filestring or nullnononea KEY=value secrets file on the MCP server's machine (AWS_ACCESS_KEY_ID, MODAL_TOKEN_ID, AZURE_CLIENT_SECRET, PORTAL_SECRET_NAME, ...), imported by the gateway; it connects every provider it names and its values never pass through the model. Not with method, values or from_env
valuesobject of string or nullnononethe method's fields as plain values ({"api_key": ...}): the last resort, since they pass through the model and the chat; prefer from_env or file. Secret fields left out keep their stored values

detect_compute

The cloud CLIs installed and signed in on this machine (aws, az, modal, Lambda's key in LAMBDA_API_KEY, gcloud and kubectl): for each, who it is signed in as (identity), whether Fluid can connect it from here (connectable, checked against the gateway in use) and what to do (how), and connectable, the providers connect_from_cli can connect. Read-only: nothing is created, and no credential is read or returned.

ParameterTypeRequiredDefaultWhat it is
ssh_hostsbooleannofalse

connect_from_cli

Connect a cloud with the login of its CLI on this machine, by each cloud's recommended method unless told otherwise (AWS: a role in the person's account that the gateway assumes, with Fluid's policy, nothing stored that a thief could use, or an IAM user and key with keys=true; Azure: a federated credential on an app Contributor on the resource group soma only, or a client secret with secret=true; Google Cloud: a workload identity provider in the project that trusts this workspace's identity alone, with no key (federated=true requires it), or a service account key with keys=true or where the gateway cannot offer the keyless connection; Modal: a token the person approves on modal.com; Lambda: the key in LAMBDA_API_KEY), saved on the gateway and never shown. Every plan's steps say how the values are kept; say that to the person. Without confirm nothing is created: it returns who the CLI is signed in as and the steps (status confirm); show them to the person and pass confirm=true, with the same options, only after they agreed. confirm=true runs exactly the steps the last call showed: when the plan made again then differs (another account signed in since, other options, or no steps shown yet), it creates nothing and returns the new steps (status confirm, changed). Show any requirements mismatch. rank_network needs a gateway that offers the field with matching GCP connection requirements. It returns status connected with the connection, or for Modal pending with the approval page (opened in the browser): call again until connected. It first waits, three minutes at most, for the gateway's setup of the connection: a note says if that failed and why (show it; the same call again runs it again) or is still running. An error that a Google Cloud organization policy forbids the identity provider, service accounts, service account keys or external IPs says the ways out: show them to the person, never change the policy, and do not retry until they have acted.

ParameterTypeRequiredDefaultWhat it is
providerstringyesthe cloud to connect from its CLI's login: aws, azure, gcp, modal or lambda
profilestring or nullnononeaws: the AWS CLI profile to use
subscriptionstring or nullnononeazure: the subscription, by name or id (default: az's current one)
projectstring or nullnononegcp: project ID (default: gcloud's selected project)
networkstring or nullnononegcp: existing network name or resource path; omitting creates or validates soma-net
subnetworkstring or nullnononegcp: existing subnetwork resource path in the chosen region; requires network
private_networkboolean or nullnononegcp: omit external IPs; the existing network must supply Cloud NAT or another outbound path
federatedbooleannofalsegcp: require the keyless connection, which is the default where the gateway offers it: a workload identity provider in the project trusts this workspace's identity alone, and no service account key is made. Where it cannot be made, the call fails and says why instead of making a key
keysbooleannofalseaws or gcp: make a dedicated IAM user and access key (AWS) or a service account key (Google Cloud), sealed on the gateway, instead of the default keyless method (the role the gateway assumes, the trust of this workspace's identity), which stores nothing a thief could use. A Google Cloud connection that was keyless keeps its pool, provider and binding, and a note says how to remove them
secretbooleannofalseazure: make a client secret (sealed on the gateway) instead of the default federated credential, which stores nothing a thief could use
regionstring or nullnononeaws or gcp: the connection's region (GCP defaults to us-central1)
locationstring or nullnononeazure: where the resource group soma goes (default eastus)
cap_usdnumber or nullnononespend cap in USD for every machine the connection runs: machines whose worst case would cross it are refused (optional: new connections have no cap unless set; an update keeps the existing cap)
confirmbooleannofalsetrue only after the person agreed in the chat to the steps an earlier call without confirm returned: they create things in the person's own cloud account. Without it nothing is created, and with it only the steps last shown run (other steps come back to show instead)
connectionstring or nullnonone
rank_networkstring or nullnononegcp: select a separate existing VPC in this dedicated project and grant the additional permissions for multi-node GPU jobs

disconnect

Remove a connection: its stored credentials are deleted. Refused (409) while machines run at its providers, since its credentials are what terminates them: stop or suspend their jobs first.

ParameterTypeRequiredDefaultWhat it is
providerstringyesa connection name: aws, aws.research, azure.lab, gcp.research, modal, lambda or machine.box

set_cap

Change a connected provider's spend cap and nothing else: its credentials stay and are not verified again.

ParameterTypeRequiredDefaultWhat it is
providerstringyesa connection name: aws, aws.research, azure.lab, gcp.research, modal, lambda or machine.box
cap_usdnumberyesthe spend cap in USD, 0 or more, for every machine the connection runs

context

Start here for Fluid questions: the console's current overview, usage, connections, settings, machines and identity, plus an optional run/project focus. Includes gateway, scopes, source endpoints, UTC observation window, per-section errors, array truncation and a guide to querying details. Reads existing grants only; no live provider audit, CLI detection or mutations. This is an observation window, not an atomic snapshot; refresh before actions. Browser selection and unsaved edits are not sent. The identity carries payment_method for a workspace that must link a payment method before its first job: guide.payment_method says what to do while its ready is false. When plans are on for the workspace, sections carry billing, the plan: semantics.plan explains it and guide.plan says what to do at its limit.

ParameterTypeRequiredDefaultWhat it is
jobstring or nullnononefocus on this run's details and decisions
projectstring or nullnononealso list this project's runs
daysone of `0`, `1`, `7`, `30`, `90`, `365`no30
limitintegerno20maximum items per array; omissions are explicit, use the drill-down tools for more

access

Current gateway/workspace identity and scopes, plus accessible token/session metadata. Each section names its source and any denial or unsupported route. Reads use this credential's existing permissions; gateway console-only reads remain unavailable. No token values or hashes are returned. The token list is paged, with total and next_offset; a live listing can shift as records are added. No tool reads or makes invitations.

ParameterTypeRequiredDefaultWhat it is
limitintegerno20maximum metadata rows per array
offsetintegerno0rows to skip in the token list; use next_offset

jobs

Runs newest first, with project, state, estimated cost, signed saving, progress and current machine, and the live machines beside them (machines, not paged or filtered; the machines tool has more). machines lists only machines that are up; machines_other lists the rows that are not, each with its phase: starting (asked of its provider, no machine yet) or ending (its end was asked for). Neither is a running machine or has a price by the hour: never count or report one as up. A multi-node run's where gives price_per_hour for its whole group, with nodes and node_price_per_hour for one machine. Pages the gateway's listing, normally its newest 500 runs (before filtering by state). This is not all-time history; use status with an exact older job id for its detail. next_offset pages this live listing, which can shift when runs are added. status() gives all-time aggregate money and projects.

ParameterTypeRequiredDefaultWhat it is
projectstring or nullnononeonly this project's runs
statusone of `queued`, `provisioning`, `starting`, `running`, `moving`, `suspending`, `suspended`, `resuming`, `finished`, `failed`, `stopped`, `no_capacity` or nullnonone
limitintegerno50maximum rows returned, from 1 to 500
offsetintegerno0rows to skip within the current listing; use next_offset

delete_jobs

Delete ended jobs from the person's history: they leave every listing and lookup, and their costs and savings still count. Only ended jobs go; running or suspended ones are refused. Without confirm nothing is deleted: it returns the plan (status confirm): how many go and their ids, which of them could still be continued from checkpoints kept after an end Fluid decided (deleted, they can no longer be continued: say so to the person), and what is refused. Show it, and call again with the same arguments and confirm=true only after the person agreed. When the jobs changed since the plan was shown, nothing is deleted and the new plan comes back to show instead.

ParameterTypeRequiredDefaultWhat it is
jobsarray of string or nullnononethe jobs to delete: ids, unique starts of ids, or names
endedbooleannofalseevery ended job instead of named ones; project and before narrow it, and are refused with named jobs
projectstring or nullnononewith ended: only this project's jobs
beforenumber or string or nullnononewith ended: only jobs created before this time: seconds since the epoch or an ISO date or time (UTC unless it says)
confirmbooleannofalsetrue only after the person agreed in the chat to the plan an earlier call without confirm returned, with the same arguments: it deletes exactly that plan

usage

The Usage page: spend per UTC day and connection, caps, live machines, project breakdown and totals. Money is USD and rate_per_hour is USD/hour. Daily estimated spend is clipped to the requested period; project savings cover runs created in it and their lifetime estimates, so their cost can differ from daily spend. Savings are against one machine for the whole job (without_portal_v2), never negative: saved_usd, baseline_usd, comparison_cost_usd (their Paid) and breakdown (spot, cheaper machines, preserved, rescues, with the overhead, the cost of moving, beside them) sum the runs with an available figure; unavailable_comparisons and not_applicable_comparisons count the runs left out, and historical_comparisons the included ones reckoned from older records. savings_status is available, partial (some left out), unavailable or not_applicable. saved_usd is signed; null is never zero. saved_pct is a fraction (0.32 means 32%); null when the baseline is not positive. These are not provider invoices. totals.deleted_runs and deleted_usd are the runs deleted from the history in the period and what they cost: out of every listing, still in spent_usd and counted toward the spend caps. Providers are named connections, such as aws.research, not interchangeable accounts.

When plans are on for the workspace, the answer carries billing, the plan. Its used_usd counts cloud machines at their quoted price. The spend here also counts provider minimums, data transfer and own machines.

ParameterTypeRequiredDefaultWhat it is
daysone of `0`, `1`, `7`, `30`, `90`, `365`no30UTC calendar days including today; 0 means all available history
computebooleannofalsetrue: Fluid compute's prepaid balance and usage instead, and days is not read. The answer is balance_usd, held_usd (held for jobs that have not ended), spend_cap_usd and gpu_cap when set, and usage with lines (per job: job_id, chip, vram_gb, computed_s, usd_per_hour, rate_card_version, cost_usd) and total_usd. Money is dollars as a string. A line's cost_usd and total_usd are the exact charges, with a part of a cent where there is one, so the lines add up to the total. No tool adds credit

samples

A run's recorded system and progress chart points, oldest first: CPU percent, RSS bytes, GPU utilization/memory and progress when reported. next is a time cursor, not a row count; repeat with since=next until a page is empty to read the history, and poll again for new points. Missing metrics are unknown, not zero. Each call returns at most limit points; status(job) includes the latest metrics and machine history.

ParameterTypeRequiredDefaultWhat it is
jobstringyesa job id, a unique start of one, or a job name
sincenumberno0Unix seconds, exclusive; use the previous response's next, initially 0
limitintegerno250maximum rows returned, from 1 to 500

events

Run or gateway event history, oldest first, including moves, failures and changes. next is an event id; repeat with since=next until an empty page, then poll for new events. Unlike status(job)'s recent events, this can read the whole retained event history. explain(job) gives structured policy decisions.

ParameterTypeRequiredDefaultWhat it is
jobstring or nullnononeonly this run; otherwise workspace events
sinceintegerno0event id, exclusive; use the previous response's next, initially 0
limitintegerno100maximum rows returned, from 1 to 500

machines

The Machines page and Connections' own machines: current runtimes with lease, rate and job, daemon connectivity/version/last_seen, and enrolled machines with approval, reported hardware and privilege. Each list is paged independently with limit and offset; pagination gives each list's next_offset. Missing older-gateway endpoints are explicitly unavailable. connected=null means unknown, not offline. Fluid stops its runs on an own machine, never that machine itself; an unset own-machine price is unknown. One enrolled machine's detail also lists suspended: the jobs suspended on a checkpoint that machine wrote, each with resume_after (null: it can be resumed now). Revoking the machine in the console does not stop them: if the user does not trust what ran on that machine, tell them to stop those jobs.

ParameterTypeRequiredDefaultWhat it is
machinestring or nullnononean enrolled machine's id for its detail; omit for all runtime machines, daemon health and own machines
limitintegerno100maximum rows returned, from 1 to 500
offsetintegerno0rows to skip within the current listing; use next_offset

settings

Read the Settings page's effective gateway defaults: policies, baseline provider, fast path, capsule encryption, daemon images and measured provider grace, at the top level and again under settings. This changes nothing. A run's requirements and policy overrides are in status(job); project/command overrides apply over these defaults. This does not list credentials, token values, browser identity preferences or account access grants.

No parameters.

machine_command

Get an enrollment command for the person to run. With host, give an SSH CLI command; never execute SSH. Once the machine enrolled, the install's last lines print the link of its approval (Approve it at ...): the person opens it, checks the pairing code it shows and presses Approve, with nothing typed, before any job can run there. No agent approves a machine.

ParameterTypeRequiredDefaultWhat it is
namestring or nullnonone
hoststring or nullnonone

remove_machine

Remove an unused enrolled machine. Stop or suspend its runs first; Fluid never powers off the host.

ParameterTypeRequiredDefaultWhat it is
machinestringyes

workspaces

The workspaces this machine is signed in to, one sign-in each, as fluid workspace --json lists them. Each has its id, its name, your role there (role), the access its sign-in holds (scopes) and its budget (budget_usd); signed_in is true when Fluid answered with it, false when Fluid refused it (it no longer works) and null when Fluid could not be asked; current is the one this server's tools use, in_use the one this machine uses. others lists the person's workspaces this machine holds no sign-in for (id, name, role, state), null when Fluid did not say: the person signs it in to them with fluid workspace add, one approval in the browser. Reads only. Jobs run in the current workspace, on that workspace's clouds. This server never switches: ask the person to run fluid workspace use NAME in their own terminal, as switch says.

No parameters.

On this page