Overzicht van de MCP-tools

Laatst gecontroleerd

De MCP-server van veldhost op https://manage.veldhost.eu/mcp biedt 100 tools. Elke tool heeft één scope nodig. Roep je een tool aan via een verbinding zonder die scope, dan weigert hij en verandert hij niets. ChatGPT krijgt de tools die iets prijzen of bestellen niet aangeboden (waarom). Tools gemarkeerd als reads veranderen niets; changes something voert iets uit; destructive kan iets verwijderen of overschrijven, en de riskantste daarvan vragen het je eerst (de assistent krijgt een bevestigingstoken dat hij pas mag gebruiken nadat jij akkoord gaf) of geven je een portaallink in plaats van zelf iets te doen. Deze pagina wordt gegenereerd vanuit de server zelf. Tools voor een product dat is uitgeschakeld, worden niet aangeboden en niet getoond.

Scope read

Look at everything: sites, health, logs, deploys, traffic, backups, domains, DNS, email, invoices, the audit log and the team.

Tool Wat het doet
list_sites List sites List the customer's hosted sites with their state, URL, live health and deploy state. Start here — other site tools take the returned slug. reads
get_site_health Get site health Live health for one site: probe result with freshness, current state, deploy state, and any open incidents affecting it. Works on suspended or provisioning sites too, so it can diagnose a site that is down. reads
get_site_logs Get site logs Recent log lines from a site (last 200, oldest first), plus entries: the same lines folded into events, each with its UTC time (null when unreadable), level, message, exception, the release it ran from and after_live_deploy (compared with live_deploy_at). A multi-line Laravel error (stack frames, "[previous exception]" lines) is ONE entry: never read a continuation line as a failure of its own, and judge whether an error is current from its time and after_live_deploy, not from the line. Choose the log with log: app (application errors), php (php-fpm), nginx-error (web server errors), access (visits). The first place to look when a site misbehaves. reads
list_deploys List deploys Deploy history for a site (last 20): source, git ref, commit, status and time. Use after a deploy to confirm it finished. reads
list_backups List backups Restore points for a site, newest first (the 20 newest), with id, filename, kind and size in bytes. Pass an id to restore_backup, or run_backup to make a fresh one first. reads
get_site_traffic Get site traffic and disk usage Disk usage and network traffic for a site. period_* fields are the current billing month; net_* are since boot. Values are null until the host sampler has run. reads
get_site_analytics Get site analytics Request-level analytics for a site, derived from its access log. Returns 24h/7d/30d rollups (requests, unique visitors, bot vs human, response-code breakdown, top pages/referrers/browsers, top_utm_sources and top_utm_campaigns from utm_* tags on visitor page views — e.g. utm_source=chatgpt.com) plus hourly and daily time-series. Errors mean server errors: err_rate is 5xx / requests. 4xx responses (not found, refused) are mostly scanners and spam bots being turned away and are NOT errors; they are reported separately (rate_4xx, s4_bot/s4_human, codes_4xx, top_4xx_paths, top_4xx_sources). edge_blocked gives, per window, requests aimed at the site that never reached it: probe (known exploit/secret-file paths refused at the edge) and waf (blocked by a virtual patch); they are not in req. An analytics file written before October 2026 may still carry the old blended err_rate, so compute the server-error rate from status.s5 / req. Values are empty until the host sampler has run. reads
get_staging_status Get staging status Staging copy status for a site: enabled, state, URL and last sync time. (Creating or refreshing staging is a write action — do it in the portal for now.) reads
list_cron_jobs List cron jobs Scheduled tasks (cron jobs) configured on a PHP-runtime site, with their index, schedule and command. reads
list_domains List domains Domains registered on the customer's account: status, registration/expiry dates, auto-renew, transfer lock, DNSSEC and transfer state. reads
list_mail List email domains and mailboxes Email on the account: every domain with veldhost email (email-only domains and sites with email on), how many mailboxes each allows and uses, and every mailbox with its status — active, locked (payment overdue: still receives, nobody can sign in) or archived (removed, mail kept until deleted_for_good_at). Mailboxes are created in the portal, never here: that takes a password. Requires the read scope. reads
get_mail_domain Get email domain setup One email-only domain and what it still needs. Unverified: the TXT record that proves it is the customer's. Verified: whether its mail reaches veldhost yet and, when its DNS is hosted elsewhere, the exact MX/SPF/DKIM/DMARC records to add there (records_to_add). Requires the read scope. reads
list_mail_api_keys List a mailbox's Email API keys The Email API keys of one mailbox: what each lets an app do (send, read, write = read and change), the addresses it is limited to, when it expires, when it was last used, and whether sending is paused at the account's spend cap. Never a key itself. New keys are made in the portal (create_url, or get_portal_link task=create_mail_api_key): a key is shown once, to a person, never to an assistant. Only mailboxes the user manages (owner, admin, developer). Requires the read scope. reads
get_domain_registrar Check domain registry and resolvers Registrar-level state for one domain: the nameservers on file at the registry versus what public resolvers answer, whether it is really on veldhost DNS, the DNSSEC state (signed here, DS at the registry, or mismatched), the transfer lock and WHOIS privacy. To CHANGE any of it, send the user to https://manage.veldhost.eu/portal/domains. reads
list_dns_zones List DNS zones DNS zones the account manages on veldhost's nameservers, with DNSSEC signing state and whether the domain is registered here. Zones also exist for connected (externally registered) domains. reads
list_dns_records List DNS records All customer-editable DNS records in a zone, plus the veldhost nameservers. System records (SOA, apex NS, DNSSEC) are managed by the platform and hidden. reads
search_domains Check domain availability Check domain availability and yearly price for a keyword (fans out over common TLDs) or a full domain. Read-only: it NEVER registers or charges. When the response carries offered=false, registration is not self-serve: the supported path is to bring a domain you already own (point its nameservers at veldhost) or to email support for a registration in your own name; follow continue_url. Otherwise propose the registration with order_domain (the customer approves and pays in the portal). total_price covers TLDs with a multi-year minimum (e.g. .gr, .hu). reads
quote_new_site Price a new site Price a new site and get a portal continuation URL. This NEVER creates anything and NEVER charges: creating a site starts a paid subscription, which requires the customer's own consent and checkout in the portal. Give the returned continue_url to the user — the form arrives pre-filled and they finish in one click. reads
get_site_settings Get site settings A site's settings: PHP or Node.js version (and the versions available), start command, build steps, connected domain and its state, a Laravel site's queue worker (its setting, and health.state: running, restarting, failed, waiting or unknown), and environment variables, including the defaults a Laravel site gets until it sets its own (marked default: true). Secret values are never shown. reads
list_team List the team Who is on the account and their role (owner, admin, developer, billing, viewer), and invites not yet accepted. Read-only: an owner or admin changes the team in the portal. Useful to tell the user who can approve an order (owner or billing). reads
get_portal_link Get a portal link for a task The exact veldhost portal page for something the user does themselves, because it takes a password, a payment or a credential, gives someone access, or cannot be undone: creating a mailbox, inviting a team member, registering or transferring a domain, changing nameservers, deleting a site, payment and plan, security and connected apps, API tokens, and more (see task). Answers with the url, what the user does there and why it is not a tool. Changes nothing: give the user the link rather than describing menus from memory. reads
get_domain Get domain One registered domain: expiry, auto-renew, transfer lock, whois privacy and nameserver mode. For the deeper question of whether the registry and public resolvers actually agree, use get_domain_registrar instead. Requires the read scope. reads
list_invoices List invoices The account's invoices, newest first: number, period, amount, currency, status, when each was paid, and pdf_url: a download link for the invoice PDF, whatever paid it (the link expires; call again for a fresh one). Answers "what am I paying for" and "was last month settled" without a trip to the portal. Read-only — nothing here can charge, refund or change a plan. Requires the read scope. reads
get_audit_log Get audit log Your own audit trail, newest first: every event recorded under the signed-in person who authorised this connection — their sign-ins and security changes, and what they did in the portal, through the API and through this MCP server (with the token or connected app used). It is not the whole account's log: actions by other team members are not included. The tool to reach for after something changed unexpectedly — "what did I change before the site went down". Pass next_cursor from the previous answer to read further back. Requires the read scope. reads
export_dns_zone Export DNS zone file The whole zone as a standard BIND zone file, in one call. Far cheaper than paging list_dns_records when you need the full picture — to review a zone, diff it against another provider, or keep a copy before a bulk change. Pairs with import_dns_zone. Requires the read scope. reads

Scope deploy

Deploy from git, set build steps, approve, discard or roll back releases.

Tool Wat het doet
set_build_steps Set build steps Set the commands a git deploy runs (install, build, test), whether it runs database migrations, the staging branch, and the deploy trigger (deploy_mode: push deploys every push to the branch, release deploys only a pushed tag matching release_pattern, manual never deploys from a push). Applies from the next deploy. use_defaults=true clears them so veldhost detects them again. changes something
approve_release Approve a release Publish a CI/CD release that is waiting for approval (list_deploys: awaiting_approval). Approval is the human check before code goes live, so this asks the user first: the first call returns what will happen and a confirm_token. destructive
discard_release Discard a release Throw away a CI/CD release that is waiting for approval, without publishing it. The live site is not touched. changes something
rollback_release Roll back to a release Put the files of the site back to an earlier release the host still has (list_deploys: can_roll_back_to). Files only: the database is not changed. Asks the user first: the first call returns what will happen and a confirm_token. destructive
deploy_site Deploy site from git Deploy a site from its configured git repository. Optional ref (branch, tag or commit) deploys that ref this once; the site's configured branch is not changed. Queues the deploy and returns immediately — poll list_deploys for the outcome. Requires the deploy scope. destructive

Scope manage

Site settings (environment, runtime, redirects), connecting domains, staging, cron, backups, webhooks.

Tool Wat het doet
revoke_mail_api_key Revoke an Email API key Revoke one Email API key of a mailbox at once: any app using it stops sending and reading mail with it. Use when a key leaked or an app is retired; check with list_mail_api_keys which key it is and tell the user which app will stop. A replacement is made in the portal (get_portal_link task=create_mail_api_key). Requires the manage scope. destructive
set_env_var Set an environment variable Create or replace one runtime environment variable on a site (UPPER_SNAKE_CASE). Applies to the running app within a minute. Mark API keys and passwords secret=true so their value is never shown again. Variables set by veldhost (database, app key) cannot be changed. changes something
delete_env_var Delete an environment variable Remove one runtime environment variable from a site. The app restarts without it within a minute; code that reads it may break. Confirm with the user first. destructive
set_runtime Change PHP, JavaScript engine or Python version Switch a site's PHP version, its JavaScript engine (Node.js or Bun) and version, its Python version, or its start command (get_site_settings lists the engines and versions on offer). The app restarts on it within a minute (a Python switch reinstalls dependencies first, a few minutes); check get_site_health afterwards. changes something
set_queue_worker Set the queue worker Turn a Laravel site's always-on queue worker (php artisan queue:work on the database queue) on or off, and set how many workers run (get_site_settings shows queue_worker.max_workers for the plan). Needs the site's database. While it runs, QUEUE_CONNECTION defaults to database instead of sync. Workers restart on every deploy. Applied within a minute. changes something
connect_domain Connect a domain to a site Connect a custom domain the customer owns to a site. Answers connected (with what the customer does next: set our nameservers at their registrar, or keep their DNS and point @ and www at the given address), or needs_portal with a continue_url when the domain has email that must be copied across first, or queued when the domain points at veldhost but not yet at the nameservers issued to this account: it is then held for hold_hours and connected by itself once the registry shows next.nameservers (tell the customer to set exactly those two at their registrar). The certificate is issued automatically once the domain reaches us. A site that already has a domain keeps it: the new one is added beside it as an extra domain that redirects to the main domain (mode redirect, the default) or serves the site (mode serve); the site's extra domains are in get_site_settings. Making an extra the main domain, and removing one, are done in the portal. Registering a new domain is done in the portal. changes something
add_redirect Add a redirect Add a permanent (301) redirect on a site, from a path (/old-page) to another path or a full http:// or https:// address. Live within a minute. At most 20 per site; "/" cannot be redirected. The current redirects are in get_site_settings. Requires the manage scope. changes something
remove_redirect Remove a redirect Remove the redirect for one path on a site (as listed under redirects in get_site_settings). Visitors to that path then get whatever the site itself serves there. Requires the manage scope. destructive
update_app Update a one-click app Update the one-click app of a site (Ghost, Directus, n8n, Strapi or Umami) to the newest version veldhost has tested. With check_only=true it changes nothing and answers with the installed version, the latest supported one, whether an update is available and how the last update went. Otherwise it queues the update: veldhost takes a restore point first, the app is offline for a few minutes, and if it does not answer afterwards the site is put back as it was automatically; the person is emailed either way. Call it again with check_only=true to follow it. Major versions are only offered where veldhost supports them. Requires the manage scope. destructive
list_webhooks List webhooks The webhooks and chat channels (Slack, Teams) this login has set up: where each posts, which events it sends, and whether it is enabled. Secrets are never shown. reads
create_webhook Add a webhook Send veldhost events to an https URL: a signed JSON webhook (kind generic), or a Slack or Microsoft Teams incoming-webhook URL. Events: deploy.succeeded, deploy.failed, backup.completed, restore.completed, site.down, site.up, incident.opened, incident.resolved, domain.expiring, invoice.paid, invoice.payment_failed, job.succeeded, job.failed, job.report. A generic webhook's signing secret is in the answer ONCE: tell the user to store it now, it cannot be shown again. changes something
delete_webhook Delete a webhook Remove a webhook or chat channel (id from list_webhooks). Its deliveries stop at once. destructive
test_webhook Send a test event Send a test delivery to a webhook and report what it answered, to check the URL and signature handling. changes something
run_backup Back up site now Create a backup of a site right now. Queues the backup; see list_backups for the result. Requires the manage scope. changes something
restore_backup Prepare a backup restore Prepare restoring a backup OVER the live site (current content is replaced). This tool never restores by itself: it checks the backup and returns a confirm_url in the veldhost portal where the user clicks Restore. Give the user that link. Requires the manage scope. destructive
create_staging Create staging copy Create a password-protected staging copy of a site (owner-only). On the Starter plan this bills the staging add-on; Pro and Business include staging. Takes a couple of minutes — poll get_staging_status. Requires the manage scope. changes something
refresh_staging Refresh staging from live Re-copy the LIVE site over its staging copy (owner-only). DESTRUCTIVE for staging: any changes made on staging are replaced. Requires the manage scope. destructive
disable_staging Remove staging copy Turn off and destroy a site's staging copy (owner-only). Billing for the staging add-on stops. Requires the manage scope. destructive
add_cron_job Add cron job Add a scheduled task to a PHP-runtime site: 5-field cron schedule plus a command starting with php or wp (no shell operators, max 5 jobs). Requires the manage scope. changes something
remove_cron_job Remove cron job Remove a scheduled task (cron job) from a site by its index from list_cron_jobs. Indexes shift after a removal, so call list_cron_jobs again before removing another. Requires the manage scope. destructive

Scope dns

DNS records, zone import, DNSSEC, email-domain verification.

Tool Wat het doet
verify_mail_domain Verify email domain now Check now whether an email-only domain's verification TXT record is visible, instead of waiting for the 15-minute check. Verifying starts billing for its mailboxes, as the customer agreed when adding the domain. Safe to repeat. Requires the dns scope. changes something
probe_domain_dns Plan a DNS move to veldhost Dry-run for "move your DNS to veldhost": reads a domain's live public zone (apex, www, common subdomains, MX, SPF/DMARC/DKIM, CAA, SRV) and returns the plan we would write — adds, updates, unchanged, skipped and rejected with reasons — plus the current nameservers, whether DNSSEC is on at the current provider, the registrar detected via RDAP with step-by-step nameserver instructions, and a continue_url where the user creates the zone. The domain stays at its registrar; nothing is written. Requires the dns scope. reads
add_dns_record Add DNS record Add a DNS record to a zone the account owns. Live on veldhost nameservers in under a second. Types: A, AAAA, CNAME, MX, TXT, NS, SRV, CAA, PTR. Requires the dns scope. changes something
update_dns_record Update DNS record Update an existing DNS record (all fields are replaced — pass every one). Record ids come from list_dns_records. Requires the dns scope. destructive
delete_dns_record Delete DNS record Delete one DNS record from a zone (record id from list_dns_records). Resolvers keep answering with the old record until its TTL runs out; deleting an MX, SPF or verification record can stop email or a service at once. The zone history in the portal can undo it. Requires the dns scope. destructive
enable_dnssec Enable DNSSEC Turn on DNSSEC for a domain whose zone we host. For a domain registered with us it signs the zone and publishes its DS at the registrar, once DNSSEC is self-serve for customers (until then it answers that we switch it on on request); that is two-step: the first call changes nothing and returns the check that matters plus a confirm_token; call again for the same domain with that confirm_token once the user agrees. For a domain registered elsewhere it signs the zone and returns the DS (and DNSKEY fields) for the user to add at their own registrar, in one call: nothing is published, so there is nothing to confirm. Requires the dns scope. destructive
import_dns_zone Import DNS zone file Load a BIND zone file into a zone we host — the fast path for moving DNS from another provider. Previews by default: called without dry_run it parses the file, reports what would change and what it could not understand, and writes NOTHING. Relay that plan to the user, then call again with dry_run=false to apply it. Max 256 KB. Requires the dns scope. destructive

Scope data

Opt-in: read-only SQL on site databases, warehouse databases, dashboards, pipelines and jobs.

Tool Wat het doet
list_databases List databases List the customer's databases: site databases (role "app", read-only) and warehouse databases (role "warehouse", writable with run_warehouse_statement), each with its engine (mariadb or pgsql — write SQL in that engine's dialect), state, whether the plan includes querying (plan_ok) and the site or warehouse they belong to. Start here for any data question — get_schema, run_query and run_warehouse_statement take the returned id. Needs the opt-in data scope. reads
get_schema Get database schema Tables, views and columns (name, type, nullable, key, default) of one database, with any notes the customer wrote. The first call prepares the database and answers state "preparing" — wait a few seconds and call again. Use the exact table names it returns in run_query. Needs the opt-in data scope. reads
run_query Run a read-only SQL query Run ONE read-only SQL statement (SELECT, WITH, SHOW, EXPLAIN, DESCRIBE, VALUES) against a site or warehouse database and return columns + rows. Always runs read-only, as a read-only login: writes, DDL, locks, several statements and sleep/file functions are refused — to change a warehouse database use run_warehouse_statement. Rows are capped by limit (max 1,000) and 30 seconds; truncated=true means there was more. Use MariaDB or PostgreSQL syntax to match the database's engine from list_databases. Needs the opt-in data scope. changes something
run_warehouse_statement Run a warehouse SQL statement Run one SQL statement that changes a WAREHOUSE database (role "warehouse" in list_databases), or a read on it. Write it in the database's own dialect, as its engine (mariadb or pgsql) in list_databases says. Both engines: INSERT, UPDATE, DELETE, CREATE/ALTER/DROP of a TABLE, VIEW or INDEX, TRUNCATE, and a SELECT or WITH read. MariaDB only: REPLACE and RENAME TABLE. PostgreSQL has neither: upsert with INSERT … ON CONFLICT and rename with ALTER TABLE … RENAME TO; RETURNING, COPY and MERGE are refused there. Grants, files, procedures, transactions, several statements and system objects are refused on both. A destructive statement (DROP, TRUNCATE, DELETE or UPDATE without WHERE, ALTER … DROP, a table rename) is not run: the answer is a summary of what it would destroy plus a confirm_token. Relay the summary to the user, and only once they agree call again with that confirm_token (same database_id and sql). Returns statement_kind (read|write|ddl), affected_rows, last_insert_id, and rows for a SELECT. Site databases are read-only and refuse this tool. Needs the opt-in data scope. destructive
create_warehouse_database Create warehouse database Create a new database in the customer's warehouse. Every plan includes a warehouse; the first database also creates it, which takes about a minute. The name is 3–32 lowercase letters, digits and underscores. Answers 202 with the pending database and the warehouse status — the database appears in list_databases with state "active" once created. How many databases the warehouse holds, and how big it may grow, depend on the account's warehouse tier: the warehouse status reports max_databases, and a create past it is refused with limit_reached. Needs the opt-in data scope; a token limited to particular sites cannot do this. changes something
list_dashboards List dashboards List the customer's dashboards (title, description, tags, panel count, starred, portal url, uid). get_dashboard, add_panel and render_panel_data take the returned uid. Needs the opt-in data scope. reads
get_dashboard Get dashboard One dashboard's full model: time range, refresh, variables and every panel (key, type, title, database_id, grid, options, and the SQL when the token may query that database — sql_hidden otherwise). Needs the opt-in data scope. reads
create_dashboard Create dashboard Create a dashboard on the customer's account (owner, admin or developer, on an account with an active plan). Optionally with panels right away — each panel needs type (timeseries | bar | stat | gauge | table | piechart), title, database_id (from list_databases) and sql. Panel SQL is read-only and may use the dashboard macros, expanded on the server for the current time range: $__timeFilter(col) → a col >= from AND col < to condition, $__timeFrom() / $__timeTo(), $__unixEpochFilter(col), $__unixEpochFrom() / $__unixEpochTo(), $__interval (an INTERVAL of the automatic bucket width), $__interval_s, $__range_s, $__timeGroup(col[, interval]) (col bucketed to the width) and $__timeGroupAlias(col[, interval]) (the same AS time), plus ${name} for a dashboard variable (always inserted as a quoted string literal; multi-select gives 'a','b'). A time series panel expects a first column named time and numeric columns after it: SELECT $__timeGroupAlias(created_at, $__interval), count(*) AS events FROM events WHERE $__timeFilter(created_at) GROUP BY 1 ORDER BY 1. Dashboards are UTC. Needs the opt-in data scope. changes something
add_panel Add dashboard panel Add one panel to an existing dashboard, below the others unless a grid position is given. The SQL runs read-only with the caller's right to query the database and may use the dashboard macros ($__timeFilter(col), $__timeGroupAlias(col, $__interval), $__interval, ${variable}, … — see create_dashboard). Needs the opt-in data scope. changes something
render_panel_data Get dashboard panel data The rows behind one dashboard panel for a time range (default: the dashboard's own): columns + rows, whether they came from the cache, what the time range and interval resolved to, and the resolved SQL when the token may query that database. Waits up to wait_s for a fresh run; a 202 answer means it is still running — call again. Variables are passed as {name: value} or {name: [values]}; "$__all" selects every option. Needs the opt-in data scope. reads
list_jobs List jobs List the customer's jobs — scheduled work on their own data. Each one shows its name, trigger (a cron schedule in their time zone, after another job, or manual), whether it is switched on, when it next runs, its steps, and how the last run went. run_job and get_job_runs take the returned id. Needs the opt-in data scope. reads
create_job Create job Create a job on the customer's account (owner, admin or developer, on an account with an active plan): a set of steps we run for them, one at a time. Order comes from depends_on on each step: a list of {"key": "", "when": "success|failure|always|true|false"} ("success" if you omit when). A step with no depends_on is a root. Send a plain list with NO depends_on anywhere and it runs top to bottom, stopping at the first failure unless that step says continue_on_failure. Steps run one at a time in dependency order — branches are how you say "only if", not "at the same time". Add "pos": {"x": N, "y": N} to place a step on the customer's canvas; it does not affect what runs. Step types, and the keys each one needs: sql {database_id, sql} — up to 50 statements against a WAREHOUSE database they may write (never a site's own database); from list_databases, role "warehouse". refresh_dashboard {dashboard_uid, time?: {from, to}} — warms every panel so the dashboard opens with numbers. notify_email {to: {members: [user ids on the account]}, subject, body, only_on?: always|success|failure, attach?: {database_id, sql}} — recipients are account members only; the body may use {{job.name}}, {{run.status}}, {{run.duration}}, {{run.url}} and {{step..rows_written|rows_read|status}}; attach runs a read-only query and sends it as CSV. notify_webhook {endpoint_id, only_on?} — one of the account's own webhook endpoints. wait {seconds} — 1 to 300. run_job {job_id, wait?} — another job on the account. run_pipeline {pipeline_id, full_refresh?} — builds one of the account's pipelines (from list_pipelines). full_refresh rebuilds every table it writes instead of topping them up. condition {name, test} — ask a question and branch on the answer. test is either {"kind":"output","step":"","field":"rows_written|rows_read|status|warmed|failed|affected_rows|statements","op":"==|!=|>|>=|<|<=|is_null|is_not_null","value":N} or {"kind":"sql","database_id":N,"sql":"SELECT …","op":…,"value":…} (one read-only SELECT; its first cell is compared). The step itself always succeeds — the steps that depend on it with when "true" or "false" are what branch. Only a condition can be depended on for true/false. Triggers: {"kind":"manual"}, {"kind":"schedule","cron":"0 3 * * *","timezone":"Europe/Riga"} (five fields, read in the customer's own zone so "03:00" survives a DST change; the minimum interval is 5 minutes on Pro, 1 on Business), or {"kind":"after_job","job_id":N}. Never guess a database or dashboard: take the ids from list_databases and list_dashboards. Steps that wait for each other in a loop are refused (error type cycle). Needs the opt-in data scope. changes something
run_job Run job now Run one of the customer's jobs now (owner, admin or developer). Answers with the run to follow — poll get_job_runs, or read the run's id back. One run per account at a time: a job that is already running answers with a run whose status is "skipped" (concurrency skip) or "queued" (concurrency queue), which is the platform declining on purpose, not a failure. When the account's monthly spend cap on job minutes is reached the call is refused with error type "usage_cap" and a billing_url where an owner can raise the cap; a scheduled run in that state is recorded "skipped" with skip_reason "cap". Needs the opt-in data scope. destructive
get_job_runs List runs of one job The run history of one job, newest first: when each run started and finished, how long it took, how many rows it read and wrote, which step failed if one did, and the outcome of every step. Use it to answer "did last night's job work" and "why did it stop". Needs the opt-in data scope. reads
list_pipelines List pipelines List the customer's pipelines — the SQL that builds tables in their warehouse. Each one shows its name, the warehouse it writes into, its SQL files, the tables it builds, the dependency graph we derived from the SQL, whether it currently compiles, and how the last run went. run_pipeline, preview_pipeline and get_job_runs take the returned id. Needs the opt-in data scope. reads
create_pipeline Create pipeline Create a pipeline on the customer's account (owner, admin or developer, on an account with an active plan): a folder of SQL files that build tables in one of their warehouse databases, on a schedule when a job runs it. A pipeline is its SQL: up to 20 files, each up to 64 KB, named like "orders_by_day.sql". The databases are NAMED IN THE SQL by the name list_databases shows — shop.orders, or shop.public.orders on PostgreSQL — so there is nothing to wire up: target_database_id and sources are optional and only matter for a pipeline written before names were enough. Each file holds any number of ;-separated statements, and there are exactly two forms. -- and /* */ comments are fine. CREATE OR REFRESH TABLE [.] [KEY (col, col)] AS Runs on the site database, in ITS OWN dialect (MariaDB or PostgreSQL — check engine in list_databases), through a read-only login, and is streamed into the warehouse as a staging table. Use it to pull only the rows you need: its WHERE runs on the site. FROM <database> names the database; leave it out and the qualified names in the SELECT say which one. It may NOT read anything the pipeline defines. Names are 1-64 lower-case letters, digits and underscores and are unique across the whole pipeline. The order tables are built in is DERIVED from the SQL: every identifier after FROM or JOIN that matches a name the pipeline defines is a dependency, so write FROM other_table rather than a comma join. A loop is refused, and so is building in two warehouses. Example: files: [{"name": "analytics.sql", "sql": "CREATE OR REFRESH SOURCE VIEW recent_events FROM shop AS\nSELECT id, created_at, path FROM analytics_events WHERE created_at > now() - interval '400 days';\n\nCREATE OR REFRESH TABLE dw.analytics_by_day KEY (day, path) AS\nSELECT DATE(created_at) AS day, path, COUNT(*) AS events FROM recent_events GROUP BY 1, 2;"}] Call compile (via preview_pipeline, or by reading compile in this tool's answer) before telling the user it is done: every problem comes back with the file and the line. Never guess a database or a table name — take them from list_databases and get_schema. Needs the opt-in data scope. changes something
preview_pipeline Preview pipeline on a sample Try one of the customer's pipelines on a small sample without writing anything: each source view is staged with a couple of hundred rows, each table is built into a temporary table, a sample of the rows comes back, and everything is dropped again. Nothing the customer already has is changed. Use it to check that the SQL does what you meant before run_pipeline. files limits it to the statements in those files (plus the source views they need). Waits up to wait_s seconds (30 max) for the answer; if it is still going, poll the run with get_job_runs. Needs the opt-in data scope. reads
run_pipeline Run pipeline now Build one of the customer's pipelines now: stage every source view and build every table, in the order the SQL implies (owner, admin or developer). Answers with the run to follow — poll it with get_job_runs, or read the run id back. One run per account at a time: a pipeline asked for while something else is running answers with a run whose status is "skipped", which is the platform declining on purpose, not a failure. full_refresh rebuilds even the tables that would normally be upserted. Needs the opt-in data scope. destructive
cancel_job_run Cancel job run Stop a job run that is queued or still running. Safe and recoverable: the run is marked cancelled and can be started again with run_job. A run that has already finished is left alone. Use it when a job is stuck, looping, or was started by mistake. Needs the opt-in data scope. destructive
get_job_run Get job run One job run in full: its state, timings, rows read and written, and the outcome of every step. Poll this after run_job to follow a run to completion rather than listing every run of the job. Needs the opt-in data scope. reads
list_job_runs List recent job runs Recent job runs ACROSS every job, newest first — the answer to "what is running right now" and "what failed overnight". get_job_runs covers one job; this one spans the account. Needs the opt-in data scope. reads
get_job Get job One job in full: its schedule, steps, target database and current state. Read this before editing or re-running a job, instead of pulling the whole list to find one row. Needs the opt-in data scope. reads
get_pipeline Get pipeline One pipeline in full: its stages, sources, destinations and schedule. Read this before preview_pipeline or run_pipeline so a change is made against what is actually configured. Needs the opt-in data scope. reads
list_pipeline_runs List pipeline runs The run history of one pipeline, newest first: when each run went, how long it took, and which stage failed if one did. The pipeline equivalent of get_job_runs. Needs the opt-in data scope. reads
get_data_run Get query run The state and result of one query run started by run_query. Use it when a query did not return inline — a long query keeps going after the call returns, and this is how to collect it. Needs the opt-in data scope. reads
update_job Update job Change a job: its schedule, steps, budget or whether it is switched on. This REPLACES the definition, so read the job with get_job first and send the whole thing back with your change applied — fields you leave out are not preserved. Needs the opt-in data scope. destructive
delete_job Delete job Delete a job and its schedule. The job stops running; its run history goes with it. Use cancel_job_run instead if you only want to stop the run that is happening now. Needs the opt-in data scope. destructive
update_pipeline Update pipeline Change a pipeline's SQL files, target or description. This REPLACES the definition, so read it with get_pipeline first and send the whole thing back with your change applied. Run compile_pipeline afterwards to check the SQL still builds before anyone waits on a scheduled run to find out. Needs the opt-in data scope. destructive
delete_pipeline Delete pipeline Delete a pipeline and its schedule. Its run history goes with it. The data it has already written to its destinations is NOT removed. Needs the opt-in data scope. destructive
compile_pipeline Check pipeline SQL Check that a pipeline's SQL parses and its models resolve into a valid build order, without running anything or touching any data. The cheap check to make after update_pipeline, instead of discovering a broken pipeline when its schedule fires. Needs the opt-in data scope. reads
update_dashboard Update dashboard Change a dashboard's title, tags, default time range, refresh rate, panels or variables. This REPLACES the dashboard, so read it with get_dashboard first and send the whole thing back with your change applied. To change one panel, prefer update_panel. Needs the opt-in data scope. destructive
delete_dashboard Delete dashboard Delete a dashboard and all of its panels. Only the dashboard is removed — the underlying data is untouched, so it can be rebuilt. Needs the opt-in data scope. destructive
update_panel Update dashboard panel Change one panel on a dashboard — its SQL, type, title, position or display options — leaving the rest of the dashboard alone. Prefer this over update_dashboard when only a single panel is changing. Needs the opt-in data scope. destructive
delete_panel Delete dashboard panel Remove one panel from a dashboard. The rest of the dashboard is left as it is, and the panel can be added back with add_panel. Needs the opt-in data scope. destructive
delete_warehouse_database Delete warehouse database Permanently drop a warehouse database and everything in it. This destroys DATA, not just a definition, and it cannot be undone. Two-step: the first call drops nothing and returns a warning with a confirm_token; relay it, and only after the user agrees call again with that confirm_token. Needs the opt-in data scope. destructive

Scope billing

Opt-in: propose orders that an owner or billing member approves in the portal.

Tool Wat het doet
order_new_site Propose a new site Propose a new site for the customer to approve. Nothing is bought by this call: it proposes the order, prices it and emails the account's owners and billing members. Tell the user the price and that they must approve it at approve_url (signed in to veldhost), then poll get_order. Never say it was ordered before get_order shows approved. On an account with a plan the site joins it (an extra-app charge once the plan's included sites are used); a new customer also picks a plan and starts with a free trial. A one-click app ordered without a domain starts on its temporary address behind a password (user gate); tell the user the password is on the site page in the portal, and that connecting their domain makes the site public. changes something
order_email Propose email on a domain Propose email for a domain, or more mailbox room on a domain that already has email. Nothing is bought by this call: it proposes the order, prices it and emails the account's owners and billing members. Tell the user the price and that they must approve it at approve_url (signed in to veldhost), then poll get_order. Never say it was ordered before get_order shows approved. The mailboxes themselves (addresses and passwords) are created by the customer in the portal once approved. changes something
order_plan_change Propose a plan change Propose moving the account to another hosting plan, or between monthly and yearly billing. Nothing is bought by this call: it proposes the order, prices it and emails the account's owners and billing members. Tell the user the price and that they must approve it at approve_url (signed in to veldhost), then poll get_order. Never say it was ordered before get_order shows approved. Moving onto or off Business also resizes the account's sites to that plan's size after approval. changes something
order_addon Propose an add-on Propose a paid add-on: a staging copy of a site (on Starter; Pro and Business include it, so use create_staging there) a bigger data warehouse, or larger data limits (the Data limits add-on: more jobs, pipelines, dashboards and queries). Nothing is bought by this call: it proposes the order, prices it and emails the account's owners and billing members. Tell the user the price and that they must approve it at approve_url (signed in to veldhost), then poll get_order. Never say it was ordered before get_order shows approved. changes something
order_domain Propose registering a domain Propose registering a new domain in the customer's name (check it with search_domains first). Nothing is bought by this call: it checks the name with the registry, prices it and emails the account's owners and billing members. Show the user the registry's terms for the TLD (registry_terms: registry, terms_url, eligibility) and send accepted_terms=true only once they accept; tell them the price for the first term and the renewal price, and that they must approve it at approve_url (signed in to veldhost); approving charges their saved card and registers the name. Poll get_order; never say it was registered before get_order shows approved. Only while domain registration is self-serve: otherwise it answers that it is not offered. Moving a domain the customer already owns needs its auth code, a credential: use get_portal_link with transfer_domain instead. changes something
list_orders List orders Orders proposed on this account and where each stands: awaiting_approval, approved, sent_to_payment, declined, cancelled or expired. reads
get_order Get an order One proposed order: its state, price, approve_url and, once approved, where it led. Poll this after proposing; approval happens in the portal. reads
cancel_order Withdraw an order Withdraw an order you proposed that is still awaiting approval (the customer changed their mind, or it was proposed by mistake). An approved order cannot be withdrawn here. changes something

Wat bij jou blijft

Alles wat een wachtwoord, een kaart of een inloggegeven vraagt, iemand toegang geeft of niet ongedaan kan worden gemaakt, doe je zelf in het portaal. Je assistent gebruikt get_portal_link om je de precieze pagina daarvoor te geven, met wat je daar doet. Taken die hij kent: create_mailbox, create_mail_api_key, mailbox_password, move_email, invite_team_member, change_team_role, register_domain, transfer_domain, renew_domain, change_nameservers, move_dns, delete_site, site_password_protection, ssh_sftp_access, upload_site, connect_git, database_password, approve_order, billing, change_plan, cancel_subscription, security, connected_apps, api_tokens, account_settings, compliance, migration_help, support. Zolang een domein registreren of verhuizen op aanvraag gaat in plaats van zelf, gaat de link daarvoor naar support, met wat je ons moet sturen.

Nog geen account?

Een assistent kan iemand helpen aanmelden zonder ooit zijn gegevens in handen te krijgen: GET https://manage.veldhost.eu/api/v1/signup (openbaar, geen token) geeft de abonnementen en prijzen terug en een aanmeldlink die al is ingevuld met het abonnement, de factuurperiode en het domein. Jij opent de link, vult je e-mailadres in en start de gratis proefperiode op de eigen pagina's van veldhost, en koppelt daarna de assistent met de normale aanmelding. Door de aanroep van de assistent wordt niets aangemaakt en geen e-mail verstuurd.

Resources: veldhost://account (wat je account heeft en wat de verbinding mag doen) en veldhost://docs (deze documentatie). Prompts: diagnose_site, migrate_dns en investigate_change.

Kom je er niet uit? Neem contact op met support — antwoord binnen één werkdag.