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

ToolWhat it does
list_databasesEvery 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_databaseOne 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_accountsYour organization's own cloud accounts connected to KiviDB: name, account id, regions, and whether each is verified. Read-only.
list_organizationsWhich organizations you belong to. A database you expected to see may be in another one.
list_nodesThe machines behind one database — which is primary, which are replicas, and the health of each.
list_documentationWhere the documentation lives, page by page. Returns links, not text.

If list_databases seems to be missing something, check list_organizations first. 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

ToolWhat it does
create_databaseMakes 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_databaseGrows the disk, or changes throughput mode. Disk only grows.
scale_replicasAdds or removes replicas on a Pro database.
upgrade_to_proMoves an Essentials database to Pro with replicas.
rename_databaseRenames it. The name is the hostname, so the hostname changes too and clients using the old one must be updated.
set_database_tagsAdds, 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_databaseStops serving, keeps the data. Anything connected fails until started.
delete_databasePermanent. 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

ToolWhat it does
run_commandRuns one KiviDB command. This is the general-purpose door.
vector_searchNearest neighbours in a vector set.
search_indexRuns a query in a search index's own syntax (FT.SEARCH), e.g. @title:hello.
search_by_meaningFinds 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_setsWhich vector sets exist.
list_semantic_cachesA database's semantic cache namespaces and their settings.
get_semantic_cacheOne namespace's settings, entries, hits, misses and hit rate.
create_semantic_cacheCreate or change a namespace (embedding provider, model, dimensions, threshold, time to live).
semantic_cache_lookupFind a stored answer for a prompt with the same meaning.
semantic_cache_putStore a prompt and its answer.
flush_semantic_cacheRemove every entry from a namespace. Asks for the name again.
delete_semantic_cacheDelete a namespace and everything in it. Asks for the name again.
remember / recall / forgetA 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

ToolWhat it does
get_metricsMemory, connections, operations, hit rate over a time range.
get_logsRecent engine log lines, optionally filtered by level.
get_slowlogThe 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_usageWhat the organization has used and been charged, by database and line item.
get_credit_balanceCredit remaining, and how long it lasts at the current rate.
get_credit_historyEvery ledger entry, and which blocks of credit the balance is left over from.
list_credit_reservationsCredit set aside for particular databases, and what is left of it. Owners and admins.
reserve_creditsSet credit aside for a database. Moves existing credit; adds none. Owners and admins.
change_credit_reservationAdd to, activate, deactivate or delete a reservation. Owners and admins.
get_pricingWhat 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

ToolWhat it does
get_networkWhich addresses may connect, TLS settings, private connectivity.
set_networkReplaces the allowlist. Anything left out stops connecting. Also requires TLS, or closes the public path entirely.
set_private_connectivityTurns private connectivity on or off, and sets who may connect.
list_database_usersThe ACL users inside the database, with each one's profile or role.
create_database_userAdds one, with its own password and a built-in profile (read_write, read_only, pubsub) or an ACL role.
set_database_user_accessGives an existing user another profile or role. Asks for the user name again.
delete_database_userRemoves one. Anything connecting as it stops immediately.
list_acl_rules_and_rolesThe organization's ACL rules and roles, and which database users hold each role.
create_acl_rule / update_acl_rule / delete_acl_ruleNamed 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_roleRoles: one rule per database, or one for all other databases. Owners and admins. Update and delete ask for the role's name.

set_network replaces rather than adds. Read get_network first 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

ToolWhat it does
list_schedulesScheduled commands: each a cron expression, a timezone and commands, with recent runs.
create_scheduleAdds one: a name, a cron expression and the commands to run.
delete_scheduleRemoves one. The database is untouched.
create_backup / list_backupsTake a snapshot now, or see what exists.
create_backupTakes a point-in-time disk snapshot, with an optional label. It finishes in the background.
list_backupsDisk 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_retentionHow long snapshots are kept, or how many.
get_engine_settingsThe 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_settingsChanges 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_userTurns 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

ToolWhat it does
list_membersWho belongs, and what each may do.
invite_memberInvites by email. They get access to every database in the organization.
set_member_rolePromotes or demotes, checked against the member's email first. Ownership cannot be granted.
remove_memberRemoves access to everything, immediately.
list_api_keysExisting keys, by prefix. The secret half is never readable again.
create_api_keyMints one. The secret appears once, in that response.
revoke_api_keyRevokes one. Anything using it stops at once.
list_audit_eventsThe 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.