Tools
The tools your agent can call on the Acasia MCP server, what each one needs and what it returns.
How the tools work
The server is at https://mcp.acasia.com/mcp.
- Reads tools report information. Changes tools request changes to your rentals, GPUs or SSH keys.
- Every tool that changes something takes an optional
idempotency_key. What it does differs by tool; see Retrying a change. - Tools that access your account send your agent’s credential to Acasia.
api_health,api_readyandget_statusdon’t send it. - Acasia decides what your agent may do. A tool can refuse a malformed input before sending anything, such as a
machine_idthat isn’t greater than zero.
Health
Check that Acasia is up. These tools don’t send your agent’s credential.
Readsapi_healthSays whether the Acasia API is up.
- Inputs
- None
- Returns
- status: ok when the API is serving.
Readsapi_readySays whether the Acasia API can reach its database.
- Inputs
- None
- Returns
- status: ok, and database: up when the database answered.
Identity
Check who your agent is signed in as.
ReadswhoamiSays who your agent is on Acasia: its organization, how it signed in and what it is allowed to do.
- Inputs
- None
- Returns
- subject, org_id, auth_method, and permissions written as resource:action.
Rentals and GPUs
Look up your organization’s rentals and GPUs or request changes to them.
When get_rental or list_rentals returns ssh, connect to its host and port as its user with one of the rental’s SSH keys. ssh appears only once Acasia reports it. A running rental can still lack it, for example while its SSH keys are pending or failed. An older rental can have ssh without ssh_ready, so check ssh itself.
Readslist_rentalsLists your organization’s most recent GPU rentals, newest first, with the hourly rate and cost so far for each. Look up an older rental by its id with get_rental.
- Inputs
- None
- Returns
- rentals: each with id, org_id, gpu_type, hourly_rate_minor, currency, status, created_at and charge. These appear only when Acasia reports them: started_at, ended_at, billed_until, end_reason, status_label, controller_state, ssh (host, port, user), ssh_keys_state and ssh_ready. charge is the rental’s cost so far, including cost still accruing while it runs. Amounts are in minor units of the currency.
Readsget_rentalShows one rental by its id: its status, hourly rate, cost so far, start and end times once set, and its SSH endpoint once Acasia reports it.
- Inputs
rental_id· string · required
- Returns
- One rental, with the same fields as each rental in list_rentals.
Readsget_gpuShows one of your organization’s GPUs: its state, type, location and rental, and when it was stopped or is kept on until.
- Inputs
gpu_id· string · required
- Returns
- id, name, state, gpu_type, location, machine_id, rental_id, created_at and updated_at. When set: stopped_by, stop_reason, stopped_at and keep_on_until.
Readslist_gpu_eventsLists the history of one GPU, such as started, stopped and kept on, newest page first.
- Inputs
gpu_id· string · requiredcursor· string · optional · next_cursor from the page before. Leave it out for the first page.limit· integer · optional · 1 to 100. Omit it or pass a nonpositive value for the default of 50.
- Returns
- items: the events on this page, and next_cursor when there is another page.
Changesstart_gpuAsks Acasia to start a stopped or failed GPU your organization holds. If accepted, the GPU comes back in the starting state.
- Inputs
gpu_id· string · requiredidempotency_key· string · optional · 1 to 128 of A–Z a–z 0–9 _ -. See Retrying a change.
- Returns
- The GPU, with the same fields as get_gpu, and the idempotency_key that was sent.
Changescancel_gpu_startCancels a GPU start that hasn’t finished. Acasia decides whether it can still be cancelled.
- Inputs
gpu_id· string · requiredidempotency_key· string · optional · 1 to 128 of A–Z a–z 0–9 _ -. See Retrying a change.
- Returns
- The GPU, with the same fields as get_gpu, and the idempotency_key that was sent.
Changeskeep_gpu_onSets a running GPU’s keep-on deadline to the given number of minutes from now. It can still stop before then for other reasons, such as a failure.
- Inputs
gpu_id· string · requiredminutes· integer · required · Minutes from now, not added to an earlier time. Acasia checks the allowed range.idempotency_key· string · optional · 1 to 128 of A–Z a–z 0–9 _ -. See Retrying a change.
- Returns
- The GPU, with the same fields as get_gpu, and the idempotency_key that was sent.
Changesrent_gpuRequests a rental of GPUs on one machine, with CPU, RAM, storage and SSH keys. If Acasia accepts the request, it returns a receipt for the queued start. Check the rental’s status with get_rental.
- Inputs
machine_id· integer · required · Greater than zero.gpu_indices· array of integers · required · Which GPUs on that machine to rent.allocated_cpu_cores· number · requiredallocated_ram_gb· number · requiredallocated_storage_gb· number · requiredssh_key_ids· array of strings · required · Your organization’s SSH keys to install on the rental.idempotency_key· string · optional · 1 to 128 of A–Z a–z 0–9 _ -. See Retrying a change.
- Returns
- The receipt for the queued request includes id (the rental id), action_id, request_id, at, the idempotency_key that was sent, and Acasia’s full answer as rental.
Changesstop_gpuRequests a stop for a rental. If Acasia accepts the request, it returns a receipt for the queued stop. Check the rental’s status with get_rental.
- Inputs
rental_id· string · requiredidempotency_key· string · optional · 1 to 128 of A–Z a–z 0–9 _ -. See Retrying a change.
- Returns
- The receipt for the queued request includes id (the rental id), action_id, request_id, at, the idempotency_key that was sent, and Acasia’s full answer as rental.
Account tools
Off by defaultThese tools are off by default. They appear in your agent’s tool list only when they are turned on.
ReadsOff by defaultlist_ssh_keysLists the SSH public keys your organization stores. Use a key’s id in rent_gpu’s ssh_key_ids.
- Inputs
- None
- Returns
- keys: each with id, org_id, name, public_key, fingerprint, created_at, and assignment when the key is assigned.
ChangesOff by defaultadd_ssh_keyAdds an SSH public key to your organization so it can be installed on rented GPUs.
- Inputs
name· string · required · After trimming surrounding whitespace, 1 to 40 ASCII letters, digits, dots, underscores or hyphens.public_key· string · required · In OpenSSH authorized_keys form, such as ssh-ed25519 AAAA… user@host. Never a private key.idempotency_key· string · optional · 1 to 128 of A–Z a–z 0–9 _ -. See Retrying a change.
- Returns
- The stored key, with the same fields as list_ssh_keys.
ChangesOff by defaultdelete_ssh_keyDeletes an SSH public key from your organization.
- Inputs
ssh_key_id· string · required · The key’s id from list_ssh_keys.idempotency_key· string · optional · 1 to 128 of A–Z a–z 0–9 _ -. See Retrying a change.
- Returns
- id, and deleted: true.
ReadsOff by defaultget_statusReads Acasia’s public status: overall status, each service’s status and uptime, open incidents and recent history. Doesn’t send your agent’s credential.
- Inputs
- None
- Returns
- checkedAt, the uptime window (windowDays, windowStart, windowEnd), overall, components, activeIncidents and history.
Retrying a change
These points cover the rental and GPU tools that change something: start_gpu, cancel_gpu_start, keep_gpu_on, rent_gpu and stop_gpu.
- Leave
idempotency_keyout and one is made for you. Each call is then a new request. - The result names the key. The tool also includes it in errors after it attempts the API request, including transport timeouts.
- When a retry is appropriate, use the same key, the same inputs and the same agent credential for the same organization. Acasia can return the earlier result, and it can still refuse a retry.
- Read the error before retrying. Some errors ask your agent to wait until a given time, and some need a person to act first.
- If the tool rejects an input before attempting the API request, the error omits the key.
- Have your agent choose and save its key before the first call so it has the key even if the call times out before any reply.
Retrying rent_gpu
A different idempotency_key requests a different rental. If a rent_gpu call times out, retry it only with the same key your agent chose before the first call. Acasia can return these refusal codes for an agent’s rental request.
agent_limit_approval_required· The rental request needs approval from an owner or admin. After approval, retry with the same key.agent_limit_denied· Acasia refused this attempt for the agent. A denied approval stays denied for that key.request_id_conflict· Another agent in your organization already claimed that key for a rental request.
If an earlier attempt with the same key was accepted or timed out, the rental may already exist even if the retry is refused. Check its status with get_rental if you have the rental id.
add_ssh_key and delete_ssh_key send the idempotency_key, but their results and errors don’t name it, and a retry doesn’t return the first result. Adding a public key your organization already stores fails with invalid_request. Deleting a key that’s already gone fails with not_found.