Tool reference
Every tool the KiviDB MCP server offers, what it does, and what it costs you if you get it wrong. An assistant reads the one-line description before…
Every tool the KiviDB MCP server offers, what it does, and what it costs you if you get it wrong. An assistant reads the one-line description before deciding to call something; this page is for you, deciding what to let it do.
Three things are true of all of them:
- They act as you. A tool sees exactly the databases and organizations your sign-in sees, with the permissions your role already has. A member cannot mint API keys through an assistant any more than through the console.
- Your password is never involved. The assistant holds a token, not a credential, and you can withdraw it from Settings → Connections.
- Nothing is hidden from the console. Anything done here shows up there, and the reverse.
Finding your way around
| Tool | What it does |
|---|---|
list_databases | Every database you can see, with its tags; tag narrows it to databases with those tags (key or key=value, all must match). Start here — every other tool needs an id. |
get_database | One database in full: endpoint, status, tier, region, and whether it runs in KiviDB's cloud account or your own — with its private endpoints when it is yours. |
list_cloud_accounts | Your organization's own cloud accounts connected to KiviDB: name, account id, regions, and whether each is verified. Read-only. |
list_organizations | Which organizations you belong to. A database you expected to see may be in another one. |
list_nodes | The machines behind one database — which is primary, which are replicas, and the health of each. |
list_documentation | Where the documentation lives, page by page. Returns links, not text. |
If
list_databasesseems to be missing something, checklist_organizationsfirst. Databases belong to an organization, and a tool acts on one at a time — your own unless you say otherwise.Every tool takes an optional
organization, so say which one and the tool acts there: "list the databases in the Acme organization". Your role in that organization is what applies, so the same account can be an owner in one and a member in another, and each tool answers accordingly. An organization you do not belong to is refused.
Creating and changing databases
| Tool | What it does |
|---|---|
create_database | Makes one. free_tier costs nothing; a paid tier bills the organization. cloud_account_id runs it in your own connected cloud account; tags labels it. |
resize_database | Grows the disk, or changes throughput mode. Disk only grows. |
scale_replicas | Adds or removes replicas on a Pro database. |
upgrade_to_pro | Moves an Essentials database to Pro with replicas. |
rename_database | Renames it. The name is the hostname, so the hostname changes too and clients using the old one must be updated. |
set_database_tags | Adds, changes or removes tags on one database, keeping the others. Tags change nothing about how it runs. Not offered in ChatGPT, since tags are free text that often names people. |
start_database / stop_database | Stops serving, keeps the data. Anything connected fails until started. |
delete_database | Permanent. Takes the database's name and checks it against the server first. |
Sizes differ by tier. Essentials takes 1–256 GB and defaults to 1. Pro takes 4–256 GB and defaults to 4, with 1–3 replicas — one by default, which is a failover target. Choose two or more for read capacity, or to keep a replica after a failover.
Paid tiers need prepaid credit before anything is provisioned. If an
assistant reports insufficient_credits, that is the account, not the request.
In your own cloud account
A database can run in a cloud account your organization owns instead of in
KiviDB's. list_cloud_accounts shows the accounts connected so far; pass one's
id as cloud_account_id to create_database (and to get_pricing, to see the
price first). The account must be verified, and the region must be one of the
account's regions. It works for AWS accounts, Google Cloud projects and Azure
subscriptions (the database's cloud is the account's), and not for a free-tier database.
Such a database needs no private connectivity add-on: it is already inside your
network, and get_database shows its private endpoints. Your cloud provider
bills its servers, disks and traffic directly; KiviDB charges a management fee,
which is what get_pricing quotes.
Connecting an account — or fixing one that is not verified — is not something an assistant can do. The organization's owner does it in the console under Settings → Cloud accounts, signed in: a credential that could connect an account could move the organization's data.
Using the data
| Tool | What it does |
|---|---|
run_command | Runs one KiviDB command. This is the general-purpose door. |
vector_search | Nearest neighbours in a vector set. |
search_index | Runs a query in a search index's own syntax (FT.SEARCH), e.g. @title:hello. |
search_by_meaning | Finds documents whose meaning is close to a piece of text ("laptop with 16gb ram"), on an index of 384-dimension all-MiniLM-L6-v2 vectors. KiviDB embeds the text itself; it goes to no other service. hybrid also matches the words. |
list_vector_sets | Which vector sets exist. |
list_semantic_caches | A database's semantic cache namespaces and their settings. |
get_semantic_cache | One namespace's settings, entries, hits, misses and hit rate. |
create_semantic_cache | Create or change a namespace (embedding provider, model, dimensions, threshold, time to live). |
semantic_cache_lookup | Find a stored answer for a prompt with the same meaning. |
semantic_cache_put | Store a prompt and its answer. |
flush_semantic_cache | Remove every entry from a namespace. Asks for the name again. |
delete_semantic_cache | Delete a namespace and everything in it. Asks for the name again. |
remember / recall / forget | A small note store, so an assistant can keep context across conversations. |
run_command takes the command as its argument, which is also why it asks for
no confirmation: confirming would mean sending the same string twice. It can run
destructive commands. What stops it is the database user's own permissions —
see Users and passwords.
Watching it
| Tool | What it does |
|---|---|
get_metrics | Memory, connections, operations, hit rate over a time range. |
get_logs | Recent engine log lines, optionally filtered by level. |
get_slowlog | The commands that took longer than 10 ms on each node, newest first, with their arguments, duration and client. The arguments are your data, so the viewer role cannot use it, and ChatGPT is not offered it. |
get_usage | What the organization has used and been charged, by database and line item. |
get_credit_balance | Credit remaining, and how long it lasts at the current rate. |
get_credit_history | Every ledger entry, and which blocks of credit the balance is left over from. |
list_credit_reservations | Credit set aside for particular databases, and what is left of it. Owners and admins. |
reserve_credits | Set credit aside for a database. Moves existing credit; adds none. Owners and admins. |
change_credit_reservation | Add to, activate, deactivate or delete a reservation. Owners and admins. |
get_pricing | What a given size, tier and region would cost. Creates nothing. With cloud_account_id, the management fee for running it in your own cloud account. |
Ask for get_pricing before create_database when cost matters. It runs the
same calculation as the pricing page and bills nothing.
A balance rarely equals the last top-up. Credit arrives from more than one
place -- top-ups, the signup grant, promotional match, a redeemed code -- and
each arrival is a separate block with its own expiry, spent oldest first.
get_credit_history shows the entries and the blocks together, which is what
makes a balance add up.
Who and what can reach it
| Tool | What it does |
|---|---|
get_network | Which addresses may connect, TLS settings, private connectivity. |
set_network | Replaces the allowlist. Anything left out stops connecting. Also requires TLS, or closes the public path entirely. |
set_private_connectivity | Turns private connectivity on or off, and sets who may connect. |
list_database_users | The ACL users inside the database, with each one's profile or role. |
create_database_user | Adds one, with its own password and a built-in profile (read_write, read_only, pubsub) or an ACL role. |
set_database_user_access | Gives an existing user another profile or role. Asks for the user name again. |
delete_database_user | Removes one. Anything connecting as it stops immediately. |
list_acl_rules_and_roles | The organization's ACL rules and roles, and which database users hold each role. |
create_acl_rule / update_acl_rule / delete_acl_rule | Named ACL permission strings such as +@read ~cache:*. A change is applied to every database a role using the rule reaches. Owners and admins. Update and delete ask for the rule's name. |
create_acl_role / update_acl_role / delete_acl_role | Roles: one rule per database, or one for all other databases. Owners and admins. Update and delete ask for the role's name. |
set_networkreplaces rather than adds. Readget_networkfirst and confirm the whole intended list — including the address you are sitting at. It asks for the database's name before acting, for that reason.
set_private_connectivity costs $25/month per database plus $0.01/GB while it
is on, including while the database is stopped, so it asks for the name too.
What you connect against is built after the call returns — read get_network a
minute later for the service name on AWS, or the alias on Azure, and create your
own endpoint against that.
The two settings depend on each other in one direction: closing the public path needs private connectivity already on, or the database would have no way in at all. For the same reason, turning private connectivity off while the public path is closed is refused rather than quietly reopening it.
Scheduled work and durability
| Tool | What it does |
|---|---|
list_schedules | Scheduled commands: each a cron expression, a timezone and commands, with recent runs. |
create_schedule | Adds one: a name, a cron expression and the commands to run. |
delete_schedule | Removes one. The database is untouched. |
create_backup / list_backups | Take a snapshot now, or see what exists. |
create_backup | Takes a point-in-time disk snapshot, with an optional label. It finishes in the background. |
list_backups | Disk snapshots for one database or the whole organization, with the state of each and where it lives: cloud, region and account (KiviDB's, or a connected account by name). |
set_snapshot_retention | How long snapshots are kept, or how many. |
get_engine_settings | The eviction policy, the persistence mode, whether the default user and passwordless access are on, how many nodes have them, and the choices available. |
set_engine_settings | Changes the eviction policy or persistence mode on every node, without a restart. Takes the database's name to confirm. Needs KiviDB 1.0.5 or later. |
set_default_user | Turns the default user (kividbapp) off or on, and passwordless access (only while public access is blocked). Takes the database's name to confirm. A new password is shown in the console, not in the conversation. |
Give create_schedule a timezone. It defaults to UTC, which is rarely what
somebody means by "two in the morning". Shortening retention deletes snapshots
outside the new window, and they do not come back.
A snapshot, disk or KDB, is only ever restored in the cloud account it lives in.
restore_kdb_snapshot into a database in another account, cloud or region is refused
(snapshot_account_mismatch, snapshot_cloud_mismatch, snapshot_region_mismatch), and
list_kdb_snapshots and list_backups say where each one lives.
The organization
| Tool | What it does |
|---|---|
list_members | Who belongs, and what each may do. |
invite_member | Invites by email. They get access to every database in the organization. |
set_member_role | Promotes or demotes, checked against the member's email first. Ownership cannot be granted. |
remove_member | Removes access to everything, immediately. |
list_api_keys | Existing keys, by prefix. The secret half is never readable again. |
create_api_key | Mints one. The secret appears once, in that response. |
revoke_api_key | Revokes one. Anything using it stops at once. |
list_audit_events | The audit log: who did what, when and from where, filtered by action, person or date. Owners and admins. Not offered in ChatGPT, since every event names a person. |
What asks before acting
Most tools do exactly what they are told. These take something beyond the identifier — a name, an email, a repeated username — so that a confused id does not act on the wrong thing:
delete_database · stop_database · set_network ·
set_private_connectivity · delete_database_user · remove_member ·
revoke_api_key · set_engine_settings · set_default_user
Four destructive tools deliberately do not: run_command, forget,
delete_schedule and set_snapshot_retention. The reasoning is recorded in the
server's own tests rather than left to memory — a schedule is recreated in one
call, a note is one note, and confirming a command means sending it twice.