Databases: read
| Tool | What it does | Arguments |
|---|---|---|
list_databases | Lists the account’s databases with engine, status, plan and price | none |
get_database | Status, engine and version, plan, storage, high availability, public access | database_id |
list_database_plans | Engines with their versions, and plans with size and monthly price; the free plan is marked | engine (optional) |
get_connection_string | The address an app connects to; the password only with reveal | database_id, reveal |
run_query | Runs one read-only statement and returns the rows: SQL for PostgreSQL, MySQL and ClickHouse, a Valkey command, or a Kafka command (TOPICS, DESCRIBE, CONSUME, GROUPS). Writes are refused | database_id, statement, max_rows |
list_tables | Tables of a PostgreSQL, MySQL or ClickHouse database, and its schemas | database_id, schema, schemas |
describe_table | A table’s columns with types, nullability and defaults | database_id, table, schema |
get_database_metrics | Current CPU, memory, storage and connection use | database_id |
get_slow_queries | The statements that took the most total time, with calls and mean time (PostgreSQL) | database_id, limit |
get_database_logs | The newest lines of the database server’s log | database_id, lines |
list_backups | Backups with time, size and whether they can be restored | database_id |
list_extensions | PostgreSQL extensions that can be turned on, and which are on | database_id |
list_database_users | Users (roles) inside the database and their access; the engine’s system accounts are left out | database_id |
Databases: write
| Tool | What it does | Arguments | Notes |
|---|---|---|---|
create_database | Creates a database, waits until it accepts connections, returns the connection string | name, engine, plan_id, version, extensions, valkey_mode, private, project_id, confirm_monthly_price_usd | No arguments: a free PostgreSQL with a public address. Paid plans need a confirmed quote |
run_sql | Runs one statement that changes data or schema (CREATE, INSERT, UPDATE, DELETE, DROP, ALTER, or a Valkey or Kafka write) | database_id, statement, max_rows | Destructive |
enable_extension | Turns a PostgreSQL extension on or off, for example vector | database_id, name, enabled | |
set_public_access | Turns the public address on or off, optionally only for some IP addresses | database_id, enabled, allowlist | Connections always need TLS and the password |
resize_database | Changes the plan, storage, high availability or read replicas | database_id, plan_id, storage_gb, high_availability, replicas, confirm_monthly_price_usd | A change that costs more needs a confirmed quote. Storage can only grow |
create_backup | Takes a backup now (databases are also backed up every night) | database_id | |
restore_backup | Restores a backup or a point in time into a new database; the original keeps running. The new database is billed by the hour, so the first call returns its price and restores nothing until you confirm | database_id, backup_id or point_in_time, new_name, in_place, confirm_monthly_price_usd | Destructive with in_place: overwrites the database (no new cost, no quote) |
rotate_password | Gives the main user a new password; apps using the old one stop at their next connection | database_id | |
create_database_user | Adds a user with read-write or read-only access and returns its password once | database_id, name, role | |
delete_database | Deletes a database, its data and its backups | database_id, confirm_name | Destructive. confirm_name must equal the database’s name. Cannot be undone |
Apps: read
| Tool | What it does | Arguments |
|---|---|---|
list_apps | Lists the account’s apps with type, status, address, size and instances | none |
get_app | Status (and why it failed), address, source, size, instances and scaling, and the databases linked to it | app_id |
list_app_templates | Ready-to-run templates (n8n, Metabase, Grafana, Umami, Uptime Kuma, …) with their size and whether they need a PostgreSQL database | none |
list_app_sizes | Sizes an app can run on (vCPU, memory) with the hourly and monthly price of one instance | none |
get_app_logs | The newest lines of the app’s log, or with deployment_id the build log of that deploy | app_id, deployment_id, lines, search, since |
list_app_deployments | Deploys, newest first: status, what started it, commit, and why a failed one failed | app_id, limit |
get_app_env | Environment variables; secret values only with reveal | app_id, reveal |
list_app_domains | Custom domains with their status and the DNS records each one needs | app_id |
Apps: write
| Tool | What it does | Arguments | Notes |
|---|---|---|---|
create_app | Creates an app from a template, a Docker image or a GitHub repository and deploys it, waits until it is live and returns its address | name, template or image or github_repo, branch, root_dir, dockerfile_path, type, port, start_command, cron_schedule, size_id, instances, scale_to_zero, env, link_database_id, project_id, confirm_monthly_price_usd | Always needs a confirmed quote. The repository must be in a GitHub account already connected to Raff in the dashboard. link_database_id links a database before the first deploy |
deploy_app | Deploys the app again, or switches an image app to a new image | app_id, image | A GitHub app also deploys every push to its branch |
rollback_app | Goes back to an earlier deploy that went live | app_id, deployment_id | Without deployment_id: the deploy that ran before the current one |
set_app_env | Adds or changes environment variables and rolls them out | app_id, vars, redeploy | Destructive: replaces the old values. Variables set by a linked database cannot be changed |
add_app_domain | Adds a custom domain to a web app and returns the DNS records to create | app_id, domain | Raff checks DNS and issues the certificate by itself |
scale_app | Changes the number of instances, autoscaling or scale to zero | app_id, instances, autoscaling, min_instances, max_instances, target_concurrency, scale_to_zero, confirm_monthly_price_usd | A change that can cost more needs a confirmed quote. Not for cron and job apps |
pause_app | Stops every instance; settings, variables, domains and links are kept | app_id | Running time is not billed while paused |
resume_app | Starts a paused app again with the instances it had | app_id | |
link_database_to_app | Links a running database: sets DATABASE_URL and the other DATABASE_* variables and redeploys the app | app_id, database_id, env_prefix | A second database needs its own env_prefix |
delete_app | Deletes an app | app_id, confirm_name | Destructive. confirm_name must equal the app’s name. Linked databases are kept and keep their price; delete them with delete_database |
Servers: read
Linux and Windows servers (virtual machines).| Tool | What it does | Arguments |
|---|---|---|
list_servers | Lists the account’s servers with status, OS, size and addresses | none |
get_server | Status, OS, size, plan, addresses, how to sign in (SSH or Remote Desktop), and whether Windows is still setting up | server_id |
list_server_images | Operating systems a server can run, with the smallest size each needs | os (optional: linux or windows) |
list_server_plans | Plans (vCPU, memory, disk, traffic) with their monthly price | type (optional) |
list_ssh_keys | SSH keys saved in the account | none |
list_server_snapshots | A server’s snapshots | server_id |
list_server_backups | A server’s backups and when each expires | server_id |
list_firewalls | Firewalls (security groups) with their rules | none |
Servers: write
No password is ever asked for or shown: a Linux server takes saved SSH keys, and otherwise Raff makes the password and emails it to the account.| Tool | What it does | Arguments | Notes |
|---|---|---|---|
create_server | Creates a Linux or Windows server and waits until it runs | name, image_id, plan_id, ssh_key_ids, project_id, confirm_monthly_price_usd | No arguments: the newest Ubuntu on the smallest General Purpose plan. Always needs a confirmed quote. A Windows server includes Raff’s Windows licence and is paid before it is made |
start_server, stop_server | Starts or shuts down a server | server_id | A stopped server is still billed |
reboot_server | Restarts a server | server_id, hard | hard power-cycles it at once |
resize_server | Moves a stopped server to another plan of the same kind | server_id, plan_id, confirm_monthly_price_usd | A bigger plan needs a confirmed quote |
reset_server_password | Gives root or Administrator a new password, emailed to the account | server_id | The server must be running |
rename_server | Renames a server | server_id, name | |
create_server_snapshot | Saves the state of a server’s disk | server_id, name | Space beyond the included snapshot space is billed by the hour |
restore_server_snapshot | Puts a stopped server’s disk back to a snapshot | server_id, snapshot_id | Destructive |
restore_server_backup | Puts a stopped server back to a backup, in place | server_id, backup_id | Destructive |
set_server_firewall | Puts a firewall on the server’s public address, or takes it off | server_id, firewall_id | |
reinstall_server | Erases the disk and installs an operating system again | server_id, image_id, ssh_key_ids, confirm_name | Destructive. confirm_name must equal the server’s name |
delete_server | Deletes a server with its backups and snapshots | server_id, confirm_name | Destructive. Attached volumes are kept |
Kubernetes: read
| Tool | What it does | Arguments |
|---|---|---|
list_clusters | Lists the account’s clusters with status, version and node pools | none |
get_cluster | Status (and why it failed), whether it is ready, version, API address and node pools | cluster_id |
list_kubernetes_versions | Versions a new cluster can run | none |
list_kubernetes_plans | Worker node plans with their monthly price, and the high availability fee | none |
list_cluster_nodes | Nodes with their role, status, size and address | cluster_id |
get_cluster_events | Newest events: creation progress, scaling, upgrades, errors | cluster_id, limit |
get_cluster_metrics | CPU, memory and pod use, ready nodes, control-plane health | cluster_id |
get_cluster_upgrades | The version, whether an upgrade runs, and the versions it can move to | cluster_id |
get_kubeconfig | A kubeconfig with cluster-admin access, valid for 24 hours | cluster_id |
Kubernetes: write
| Tool | What it does | Arguments | Notes |
|---|---|---|---|
create_cluster | Creates a cluster with one pool of workers, behind a firewall | name, version_id, plan_id, nodes, high_availability, project_id, confirm_monthly_price_usd | No arguments: 2 nodes of the cheapest plan. Always needs a confirmed quote. Ready in 8 to 12 minutes |
add_node_pool | Adds a pool of workers | cluster_id, name, nodes, plan_id, confirm_monthly_price_usd | Needs a confirmed quote |
scale_node_pool | Changes how many nodes a pool runs | cluster_id, pool_id, nodes, confirm_monthly_price_usd | Growing needs a confirmed quote |
delete_node_pool | Drains and removes a pool | cluster_id, pool_id | Destructive. A cluster keeps at least 2 workers |
enable_cluster_ha | Turns on three control-plane nodes | cluster_id, confirm_monthly_price_usd | Destructive: cannot be turned off. Needs a confirmed quote |
upgrade_cluster | Upgrades to a newer version, node by node | cluster_id, version_id | Destructive: cannot be undone |
rotate_kubeconfig | Cancels every kubeconfig handed out | cluster_id | |
delete_cluster | Deletes a cluster with every volume its workloads created | cluster_id, confirm_name | Destructive. confirm_name must equal the cluster’s name |
In the ChatGPT app
The Raff app listed in ChatGPT manages what your account already has. It leaves out everything that buys or shows a price (create_server, resize_server, create_server_snapshot, list_server_plans, create_cluster, add_node_pool, scale_node_pool, enable_cluster_ha, list_kubernetes_plans, list_database_plans, resize_database, restore_backup, create_app, scale_app, list_app_sizes) and everything that shows a password or a kubeconfig (get_kubeconfig, create_database_user, get_connection_string and get_app_env without reveal). create_database there creates only the account’s free database, without its password. Buy new things in the Raff dashboard.
Documentation
| Tool | What it does | Arguments |
|---|---|---|
search_docs | Searches the Raff documentation (guides, API reference, CLI, Terraform) and returns matching passages with links | query |
See also
Features and limits
Row limits, timeouts and request size.
Raff API
The API these tools call.