kaitencloud-mcp

v0.5.0
kaitencloud-mcp Checked 10 hours ago Published 1 day ago

Kaiten MCP server: intent-level tools over the Kaiten API for AI agents

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

kaiten_overview Kaiten Overview

Start here. A snapshot of the organization: how many customers, instances, plans, entitlements, flags, zones and releases it has; each plan's current version; what each zone runs; and the instances that need attention (unhealthy, license ending or ended, archived license, a limit in warning or overage).

ParameterTypeDescription
attention_within_daysintegerFlag licenses ending within this many days

kaiten_get_customer Kaiten Get Customer

A customer's 360 view: who they are, every instance they run, the plan and license version each one is on, usage against every limit, the features they are entitled to, and what needs attention.

ParameterTypeDescription
customer *stringCustomer slug

kaiten_get_instance Kaiten Get Instance

Everything about one instance: its customer, license version and plan, deployment zone and the release running there, usage against each limit (with its window's start and reset date), entitled features and config, what needs attention, and its most recent audit events.

ParameterTypeDescription
instance *stringInstance slug
recent_eventsintegerHow many recent audit events to include

kaiten_list_instances Kaiten List Instances

Find instances by customer, plan, license version, zone, status, lifecycle stage, license end date or attention. Returns one compact row each; use kaiten_get_instance for the full picture.

ParameterTypeDescription
customerOnly this customer's instances
deployment_zoneOnly instances in this deployment zone
licenseOnly instances on this exact license version slug
license_ends_within_daysOnly instances whose license ends within this many days (ended ones included)
lifecycle_stageOnly instances at this commercial lifecycle stage, whatever its case (beta finds Beta)
limitinteger
needs_attentionbooleanOnly instances that need a look: unhealthy, license ending in 30 days, archived license, or a limit in warning/overage
planOnly instances on this plan (license family slug), any version
statusOnly instances with this operational status

kaiten_save_customer Kaiten Save Customer

Create a customer, or update the fields you pass on an existing one (others are kept). Reports created / updated / unchanged, and exactly which fields changed.

ParameterTypeDescription
customer *stringCustomer slug. Created when it does not exist yet
billing_emailWhere invoices sent to the customer go: Stripe needs one to send them (SEND_INVOICE collection). '' removes it
domainThe customer's domain, e.g. sakura-tokyo.example
external_customer_idThe id your CRM or billing system uses for this customer
nameDisplay name (required to create)

kaiten_provision_instance Kaiten Provision Instance

Give a customer a new instance on a plan: resolves the plan to its current license version, optionally places it in a deployment zone, and sets its license term. Creates the customer too when customer_name is given and the customer is new. Subject to the organization's own limits.

ParameterTypeDescription
customer *stringSlug of the customer the instance belongs to
name *stringInstance display name, e.g. 'Sakura Tokyo Production'
customer_nameCreates the customer with this name if it does not exist yet
deployment_zoneDeployment zone slug the instance runs in
descriptionstringFree-text description
licenseExact license version slug, instead of plan
license_endLicense end, ISO date; defaults to start + term_days
license_startLicense start, ISO date; defaults to now
metadataInstance metadata, validated against the organization's INSTANCE metadata fields
planPlan (license family slug); the instance gets the plan's current version
slugInstance slug; generated from the name when omitted
term_daysintegerLicense term when license_end is omitted

kaiten_update_instance Kaiten Update Instance

Change an instance: rename it, change its plan or license version, deploy or migrate it to a zone, renew or move its license term, edit metadata keys, or set its status and lifecycle stage. Only what you pass changes. Metadata keys changed alone are merged by Kaiten into what it holds (Kaiten 26.11.4 or later). They are merged here and written back whole, which loses a change another caller made in between, when the same call also changes the name, description, plan, license, zone or term (one write, so a refusal changes nothing), or on an older Kaiten; the answer then notes it. The answer rep…

ParameterTypeDescription
instance *stringInstance slug
deployment_zoneDeploy to (or migrate to) this zone slug. Kaiten has no way to take an instance out of its zone
description
extend_license_daysPush the license end out by this many days (a renewal)
licenseMove to this exact license version slug, instead of plan
license_endNew license end, ISO date
license_startNew license start, ISO date
lifecycle_stageCommercial lifecycle stage, e.g. onboarding, active, churning
metadataKeys to set, each value replacing the key's whole value; a key set to null is removed. Other keys are kept. Passed alone, Kaiten merges them (26.11.4 or later); with a field the instance's PUT carries…
name
planMove to this plan's current version (license family slug): an upgrade, downgrade or catch-up to the latest version
statusOperational status

kaiten_get_usage Kaiten Get Usage

Usage of metered (NUMBER and AI credit) entitlements across instances, highest percentage first: who is close to a limit, who is in overage, how much of a quota a customer has left. Each row is measured against the instance's effective limit, as Kaiten enforces it: its License's grant with its add-ons, voucher boosts and entitlement exception applied (limit_includes names them). States: ok, warning (past the entitlement's warning threshold), at_limit, overage (past the included value but within the overage allowance), over, unlimited. The row of an entitlement that resets carries its window: p…

ParameterTypeDescription
customerOnly this customer's instances
entitlementOnly this entitlement (slug)
limitinteger
min_percentOnly rows at or above this percentage of their limit
planOnly instances on this plan (license family slug)
statesOnly rows in these states

kaiten_get_usage_reports Kaiten Get Usage Reports

The usage reports Kaiten accepted for one instance's entitlement, newest first: when, append or set, the amount, the counter before and after it, the limit in force, and the transaction_id it was sent under. With idempotency_key, whether the report sent under it was recorded. A refused report is not in this history: kaiten_get_audit_trail lists those.

ParameterTypeDescription
entitlement *stringMetered entitlement slug
instance *stringInstance slug
idempotency_keyOnly the report sent with this idempotency_key (Kaiten's transactionId)
limitinteger
sinceISO date or timestamp; the last 30 days when omitted

kaiten_report_usage Kaiten Report Usage

Report consumption of a metered entitlement for an instance, and say where it now stands against its limit. A report the grant refuses (past a hard limit, or past the overage allowance) comes back with status 'rejected' and is not recorded. Without an idempotency_key, each call is a separate report: never repeat one that answered. With one, a repeat is safe: Kaiten answers it 'unchanged' and replayed, having counted it once, and refuses ('rejected') a key already spent on a report of another behavior or amount.

ParameterTypeDescription
amount *numberQuantity to report
behavior *stringappend: an event of this size, aggregated by the entitlement's method (SUM, COUNT, LATEST...). set: replace the current value
entitlement *stringMetered entitlement slug
instance *stringInstance slug
idempotency_keyThe id of the business event the report counts: 1 to 128 letters, digits, '.', '_', ':' or '-', e.g. 'llm-call-9f2c:tokens'. Kaiten counts it once per instance and entitlement within its idempotency w…
metadataContext recorded with the report

kaiten_get_catalog Kaiten Get Catalog

What the organization sells. Without a plan: the entitlement catalog (with groups) and every plan's current version with its grants, as a plan comparison; a public plan says whether its public catalogue lists it, which takes a default version: without one, the current version is the highest PUBLISHED one, and nothing is listed. With a plan: its settings (public listing and the version listed, fallback plan, how its trials end) and its versions, oldest first, each with its lifecycle state, how it is sold, the instances on it, and its grants.

ParameterTypeDescription
planA plan (license family slug): show every version with its state, instances and grants

kaiten_save_entitlement Kaiten Save Entitlement

Define an entitlement in the catalog, or update the fields you pass on an existing one. groups sets its group membership exactly. Reports created / updated / unchanged with the changes.

ParameterTypeDescription
entitlement *stringEntitlement slug. Created when it does not exist yet
aggregationHow reports combine, for metered types (defaults to SUM)
description
display_order
groupsThe complete list of group slugs it belongs to; missing groups are created
icon
nameDisplay name (required to create)
reset_anchorPeriods align on the calendar or on each license's start
reset_periodUsage resets every period; omit for a lifetime quota
typeBOOLEAN feature, NUMBER quota, NUMBER_AI_CREDIT, or CONFIG value. Set at creation
unit_plural
unit_singular
user_facingShown to end customers
warning_threshold_percentUsage at this percentage of the limit raises a warning

kaiten_save_license Kaiten Save License

Shape what a plan includes, and how each version is sold. Three intents: - new plan: neither license nor new_version_of; creates a license family with version 1. - new version of a plan: new_version_of=<plan>; copies the current version's grants (unless copy_grants is false) and how it is sold, and applies yours. Nobody moves to it until an instance is updated, so it is the safe way to change pricing. - edit a version in place: license=<version slug>; changes every instance on that version immediately, and the answer lists them. Grants not mentioned are kept; null removes one. pricing, r…

ParameterTypeDescription
copy_grantsbooleanFor new_version_of: start from the plan's current version's grants, then apply grants on top
description
draftbooleanCreate the version as a DRAFT, not on sale until published
grantsGrants by entitlement slug. A value is a number (NUMBER: -1 or 'unlimited' for no cap), true/false (BOOLEAN), or an object (CONFIG); or {'value': v, 'overage_percent': p} where p=0 is a hard limit and…
licenseEdit this existing license version in place (its slug)
nameDisplay name. Required for a new plan; a new version keeps the plan's name
new_version_ofAdd the next version to this plan (license family slug)
pricingHow the version is sold: FREE or PAID can be bought self-serve; CUSTOM sends a buyer to self_serve_cta_url or a conversation. A new plan is CUSTOM unless set; a new version keeps the plan's
requires_payment_methodSelf-serve signup captures a payment method before activation. A new version keeps the plan's
self_serve_cta_urlWhere a buyer is sent when the version cannot be bought self-serve, e.g. a contact-sales page: an http(s) URL, '' for none. A new version keeps the plan's
slugSlug of a new plan (it becomes the plan's slug too)
trial_daysThe trial a subscription to the version starts with by default, 0 for none. A new version keeps the plan's
typeRequired for a new plan
version_nameLabel for this version, e.g. '2026 pricing'

kaiten_set_license_state Kaiten Set License State

Move a license version through its lifecycle, or pin it as its plan's default version. The default of a public plan is the version its public catalogue offers, and a public plan without one is not listed. Asking for the state it is already in reports 'unchanged'.

ParameterTypeDescription
action *stringpublish: put a DRAFT on sale. archive: withdraw a PUBLISHED version from sale (instances already on it keep it). unarchive: put it back on sale. make_default / unset_default: pin which version the pla…
license *stringLicense version slug

kaiten_get_billing Kaiten Get Billing

Start here for billing. Without an instance: whether billing is on for the organization, and why not; who can collect its invoices (no provider, Stripe); its default payment terms; the add-ons it sells, by family, with each one's current version; and its vouchers, each shown by the last four characters of its code, which is a secret. With an instance: its subscription (status, base price, period and next boundary, provider and terms, a scheduled change or cancellation), the invoice its next boundary will issue from its usage so far, the add-ons it holds, the vouchers it redeemed, and its lates…

ParameterTypeDescription
instanceAn instance slug, for its subscription, upcoming invoice, add-ons, vouchers and latest invoices

kaiten_get_prices Kaiten Get Prices

What a License version costs: its prices -- flat fees per billing period, usage-based and overage prices on a metered entitlement -- with the ids the other billing tools take; and, with preview or any preview argument, the renewal invoice a subscription to it would be billed at a boundary now, from a usage sample or an instance's own usage, with add-ons and a voucher. Works on a draft, before its prices freeze. Amounts are in the currency's minor units: 4900 EUR is 49.00 EUR. Scopes: read:licenses.

ParameterTypeDescription
add_onsAdd-on version slugs and quantities to price in
base_priceThe flat fee billed as the base (a price id); the version's first default
include_deprecatedboolean
instanceRate this instance's own usage instead of a sample
licenseAn exact license version slug, a draft included
planA plan (license family slug): its current version
previewbooleanAlso compose the invoice a subscription to the version would be billed now, writing nothing. Implied by any of the arguments below
sample_usageUsage of each metered entitlement over the period, e.g. {'monthly-orders': 106}; usage past what the grant accepts is capped
voucher_codeA voucher whose discount to apply; nothing is redeemed

kaiten_get_invoices Kaiten Get Invoices

The organization's invoices, newest first, in the console's views: all, overdue, held, the handoff queue and what the accounting system acknowledged. With an invoice id: that invoice with its lines, each with the arithmetic Kaiten composed it from. Amounts are in the currency's minor units: 4900 EUR is 49.00 EUR. Scopes: read:billing.

ParameterTypeDescription
customerOnly this customer's
instanceOnly this instance's
invoiceAn invoice id, for that invoice with its lines
limitinteger
statusOnly these statuses. MANUAL: issued, for you to collect
viewstringoverdue: issued, unpaid past its due date. held: a draft held for its usage journal. handoff: issued with no payment provider, waiting for the organization's accounting system. acknowledged: taken by…

kaiten_save_prices Kaiten Save Prices

Price a License version: add prices and deprecate others; prices not mentioned are kept. A price is never edited: a deprecated one stops being offered and stops being a default, while subscriptions pinned to it keep being billed from it. Deprecations go first, so a new default can replace an old one. Once a subscription bills the version, Kaiten refuses new prices: create a new version (kaiten_save_license new_version_of=...). A price identical to an active one reports 'unchanged'. Scopes: write:licenses.

ParameterTypeDescription
license *stringLicense version slug
addPrices to add
deprecateIds of prices to retire for good, from kaiten_get_prices

kaiten_save_plan_settings Kaiten Save Plan Settings

A plan's own settings, the same for every version of it: whether the organization's public catalogue lists it, the FREE plan its instances fall back to when a subscription ends, and how its trials end. How each version is sold (pricing, payment method, trial length) is the version's own: kaiten_save_license. Only what you pass changes; asking for what is already set reports 'unchanged'. Scopes: write:licenses.

ParameterTypeDescription
plan *stringA plan (license family slug)
fallback_planA FREE plan, every version of it priced FREE, whose default version an instance moves to when its subscription ends; '' for none
publicList the plan in the organization's public catalogue, which its website reads with a publishable key: the plan's default version, once PUBLISHED, with its ACTIVE prices. A plan is private until made p…
trial_end_without_payment_methodWhat a trial charged automatically becomes at its end when the customer has no active payment method: CANCEL ends the subscription; CONVERT makes it ACTIVE, and its first charge then fails
trial_reminder_daysHow many days before a trial's end trial_will_end fires, for the trials started after the change

kaiten_subscribe_instance Kaiten Subscribe Instance

Start billing an instance: its subscription is pinned to a flat fee of its License version -- the default of a billing period, or an exact price -- and its invoices are collected by no provider (the handoff queue) or by Stripe. A base billed in advance issues the first period's invoice at once, in the answer. While the subscription lives, the instance's customer and License cannot change. An instance already billed on that price reports 'unchanged'. Scopes: write:billing, read:instances, read:licenses.

ParameterTypeDescription
instance *stringInstance slug; its License version must be published
add_onsAdd-on version slugs and quantities to attach with it
billing_periodBill the default flat fee of this period of the instance's version
collection_methodCHARGE_AUTOMATICALLY needs Stripe and a payment method; the organization's default when omitted
days_until_duePayment terms; the organization's default when omitted
priceOr this exact flat fee of its version: a price id from kaiten_get_prices
providerstringWho collects the invoices. NOOP: no provider, the organization's own accounting system takes them from the handoff queue. STRIPE: must be connected
start_atISO date the periods count from: now, or up to one period back
trial_daysA trial, 0 for none; the version's own when omitted
voucher_codeA voucher to redeem with it, from its first invoice

kaiten_cancel_subscription Kaiten Cancel Subscription

Cancel an instance's subscription. It ends billing only: the instance keeps its add-ons, vouchers and license dates, and keeps its License -- unless its License family names a fallback, which the instance moves to when the subscription ends. A trial ends at once, with no invoice. A cancellation already scheduled or done reports 'unchanged'. Scopes: write:billing, read:instances.

ParameterTypeDescription
instance *stringInstance slug
reason
whenstringperiod_end: the period paid for runs out, then a final invoice bills what is left in arrears; it can be reactivated until then, from the console. now: the final invoice is issued at once, fees billed…

kaiten_set_instance_addon Kaiten Set Instance Addon

Attach an add-on to an instance, change how many units it holds, or detach it (quantity 0). Its entitlements follow at once, raising or lowering the instance's effective limits. A subscription bills the quantity held at each boundary, without proration; a decrease or a detach refunds nothing. An instance holds one version per family. Scopes: write:instances.

ParameterTypeDescription
addon *stringThe add-on version slug to attach (kaiten_get_billing lists each family's current version); for one the instance holds, its version or family slug
instance *stringInstance slug
quantity *integerUnits to hold; 0 detaches it

kaiten_save_voucher Kaiten Save Voucher

Create a voucher, a code an instance redeems: a discount on its invoices, a boost of its entitlements, a feature flag variant served to it, or several at once -- its kind follows from what you pass. It is created as a draft, then published unless publish is false. For a code that exists: publishes it if it is a draft and publish is true, else reports 'unchanged'; it never edits one. The answer that creates the voucher repeats its code; every other answer shows its last four characters. Scopes: write:vouchers, and read:licenses for licenses.

ParameterTypeDescription
code *stringThe code to redeem, matched without case or separators. Under 12 characters (separators left out) it needs max_redemptions or expires_at
boostsEntitlement slug -> what the voucher changes in it, for its duration
customerOnly this customer's instances may redeem it
description
discountOff the invoices of the redeeming instance
durationstringA discount counts invoices, a boost or flag grant billing periods: one, periods, or without end
expires_atISO date or timestamp
flag_grantsFeature flag slug -> the variant it serves the redeeming instance
licensesOnly instances on these License version slugs may redeem it
max_redemptions
nameDisplay name (required to create)
periodsWith REPEATING
publishbooleanMake it redeemable now; false keeps it a DRAFT

kaiten_redeem_voucher Kaiten Redeem Voucher

Redeem a voucher for an instance: a discount applies to its subscription's next invoices, a boost or a flag grant from the next read or evaluation, each for the voucher's duration. A code the instance cannot redeem -- unknown, expired, exhausted, not eligible -- comes back 'rejected' with the reason; one it already redeemed, 'unchanged'. Scopes: write:voucher_redemptions.

ParameterTypeDescription
code *stringThe voucher's code
instance *stringInstance slug

kaiten_mark_invoice_paid Kaiten Mark Invoice Paid

Record that an invoice the organization collects itself -- no payment provider, status MANUAL -- was paid. One a payment provider collects is settled there. A paid invoice reports 'unchanged'. Scopes: write:billing.

ParameterTypeDescription
invoice *stringInvoice id, from kaiten_get_invoices
external_referenceIts number in your accounting system; also acknowledges it from the handoff queue
noteE.g. the transfer's reference; kept in the paid event only
paid_atISO date or timestamp, now or earlier; now when omitted

kaiten_get_flags Kaiten Get Flags

Feature flags. Without a flag: one line per flag (type, enabled, default, rule count). With a flag: its variants, default, ordered targeting rules (linted) and metadata, in the shape kaiten_save_flag accepts, and for a beta whether the instance lists its rules read are ready. To see what a customer actually gets, and which rules fail at evaluation, use kaiten_evaluate_flags.

ParameterTypeDescription
flagA flag slug, for its full definition

kaiten_evaluate_flags Kaiten Evaluate Flags

What a customer or instance actually gets: evaluates flags exactly as your application would through OpenFeature, with Kaiten's server-side facts, and returns each flag's value, variant and reason (TARGETING_MATCH, SPLIT, DEFAULT, DISABLED, ERROR), plus every rule that failed to run and why.

ParameterTypeDescription
contextExtra attributes your app would send, e.g. {'user': {'role': 'admin'}}
customerEvaluate as this customer (the targeting key)
flagsOnly these flag slugs
instanceEvaluate as this instance; implies its customer

kaiten_test_rule Kaiten Test Rule

Author a targeting rule safely. With a rule: lints it, runs it against a customer or instance exactly as an evaluation would, and returns whether it matched and the facts it read. Without one: the facts Kaiten provides under __kaiten, with their types and known keys. Writes nothing.

ParameterTypeDescription
contextExtra attributes your app would send
customerTest against this customer
instanceTest against this instance (and its customer)
ruleA CEL targeting rule; omit to list the facts a rule can read

kaiten_save_flag Kaiten Save Flag

Create a feature flag or change one: toggle it, change its variants or default, or replace its targeting rules. Every rule is linted before anything is written; a broken rule is refused with the reason, rather than saved to silently never match. Only what you pass changes. A beta is a flag whose metadata.stage is private_beta, public_beta or open_beta, default off, with rules reading three lists of flag slugs on the instance: betaAccess (the vendor invites), betaOptIn and betaOptOut (the customer's own choice), e.g. Invited: has(__kaiten.instance) && has(__kaiten.instance.metadata.betaAccess)…

ParameterTypeDescription
flag *stringFlag slug (the key your app evaluates). Created when it does not exist yet
defaultServed when no rule matches: a variant name, or {rollout: {variant: weight}}
description
enabledThe kill switch: a disabled flag serves its default to everyone and runs no rule
metadataKeys to set; null removes a key. stage (private_beta, public_beta, open_beta) makes the flag a beta; remove it at general availability
nameDisplay name (required to create)
rulesThe complete, ordered list of targeting rules (first match wins); omit to keep the current rules, [] to remove them all. Each rule is {name, rule: CEL, variant} to serve one variant, {name, rule, roll…
typeValue type, set at creation (defaults to boolean)
variantsThe complete set of variants, name -> value. A boolean flag defaults to {on: true, off: false}

kaiten_get_deployments Kaiten Get Deployments

What runs where. Without a zone: every deployment zone with the release it runs and how many instances it holds, and every release (newest first) with its components and the zones running it. With a zone: its release and components, and its instances.

ParameterTypeDescription
deployment_zoneA zone slug, for its release and instances

kaiten_create_release Kaiten Create Release

Cut a release: register any component version that does not exist yet and create the release that ships them. A release is immutable; asking for one that already exists with the same components reports 'unchanged', and with different components is refused. Deploy it with kaiten_deploy_release.

ParameterTypeDescription
components *arrayComponents it ships, each 'name@version' or {name, version}. Missing ones are created, chained to the previous version of the same name
version *stringRelease version, e.g. '2026.9.0'
descriptionstring
slugRelease slug; generated from the version when omitted

kaiten_deploy_release Kaiten Deploy Release

Record that a zone now runs a release; Kaiten appends it to the zone's deployment history. Reports the release it replaced and the instances in the zone; a zone already on that release is 'unchanged'.

ParameterTypeDescription
deployment_zone *stringDeployment zone slug
release *stringRelease slug or version to put on the zone; a previous one is a rollback

kaiten_save_deployment_zone Kaiten Save Deployment Zone

Create a deployment zone (a place customers' instances run), or change the fields you pass on one. Its release is changed with kaiten_deploy_release, which keeps the history.

ParameterTypeDescription
deployment_zone *stringZone slug. Created when it does not exist yet
description
metadataKeys to set; null removes a key. Validated against DEPLOYMENT_ZONE metadata fields
nameDisplay name (required to create)
typeHow you classify it, e.g. production, staging, dedicated (defaults to production)

kaiten_get_access Kaiten Get Access

Machine access to the organization: each service account and its active tokens, with their scopes and expiry. Token values are never shown after they are issued.

ParameterTypeDescription
service_accountOnly this service account

kaiten_get_audit_trail Kaiten Get Audit Trail

What happened, newest first: instance lifecycle (created, deployed, migrated, status changes), usage reports accepted and rejected, limits reached, warnings and overages, period rollovers.

ParameterTypeDescription
eventOnly this event name, e.g. INSTANCE_ENTITLEMENT_CAP_EXCEEDED
include_payloadbooleanInclude each event's payload
instanceOnly this instance's events; every instance's when omitted
limitinteger
sinceISO date or timestamp
untilISO date or timestamp

kaiten_issue_token Kaiten Issue Token

Issue a ksh_ API token for an integration (an SDK, a backend, CI), creating its service account if needed. The token value is in this answer and nowhere else: it cannot be read again.

ParameterTypeDescription
scopes *arrayScopes to grant, least privilege: any of read:addons, read:billing, read:components, read:customer_sessions, read:customers, read:deployment_zones, read:entitlements, read:feature_flags, read:instance…
service_account *stringService account slug; created when it does not exist yet
token_name *stringWhat the token is for, e.g. 'production backend'
expires_atISO date; the token never expires when omitted
service_account_nameDisplay name, when the service account is created

kaiten_revoke_token Kaiten Revoke Token

Revoke a service account token. Every replica stops accepting it at once; whatever used it starts failing.

ParameterTypeDescription
service_account *stringService account slug
token *stringToken slug, from kaiten_get_access

kaiten_get_metadata_fields Kaiten Get Metadata Fields

The typed metadata fields the organization defined for instances or deployment zones: each key, its label and its JSON Schema. Metadata written on those resources is validated against them.

ParameterTypeDescription
resource_typestringWhich resource's metadata

kaiten_get_connectors Kaiten Get Connectors

Connectors to outside systems (e.g. a CRM): for each one, whether this deployment has it, whether the organization's license allows it, and whether it is activated.

kaiten_save_metadata_field Kaiten Save Metadata Field

Define a typed metadata field, or change its label, schema, archived state or position. A schema change is first dry-run against every stored value: if any would stop validating it is refused (status 'rejected', with samples) unless force is set. position rewrites the order of the resource type's fields only when one of them is not at its place, and changes.order says which moved.

ParameterTypeDescription
key *stringMetadata key, as it appears in the resource's metadata
archivedtrue archives the field: frees its key and keeps stored values. An archived field is no longer listed, so it cannot be found again here
forcebooleanApply a schema change even when existing values would stop validating
json_schemaJSON Schema 2020-12 for the value, e.g. {'type': 'string', 'enum': ['eu', 'us']}
labelDisplay label (required to create)
positionWhere it is shown among the resource type's active fields: 0 first, past the end last
resource_typestringWhich resource the field is on

kaiten_configure_connector Kaiten Configure Connector

Activate or deactivate a connector for the organization, and set its settings (credentials included, stored in Vault). Activation is refused when the organization's license does not include the connector.

ParameterTypeDescription
connector *stringConnector name, from kaiten_get_connectors
activatedActivate or deactivate it for the organization
settingsSettings keys to set (null removes a key), validated against the connector's settings schema

kaiten_get_webhooks Kaiten Get Webhooks

Kaiten Cloud's webhook endpoints: each one's id, its URL's scheme and host, the event types it receives, and its delivery history -- how many of its latest attempts succeeded and failed, and the most recent, newest first, with the endpoint's response. A URL's path and query are never shown, nor a signing secret: the path can be a credential, as in a Slack incoming-webhook URL. Endpoints on one host are told apart by their id, which kaiten_delete_webhook takes. With events: the event types that match, to subscribe to; a self-hosted Kaiten's event stream carries the same types. Scopes: read:webh…

ParameterTypeDescription
eventsFind event types instead: words to look for in the catalogue of the events Kaiten publishes -- their types, names, and what fires them -- e.g. 'warning threshold'. Answered from the catalogue alone, o…
historyintegerRecent deliveries to show per endpoint

kaiten_save_webhook Kaiten Save Webhook

Create a webhook endpoint on Kaiten Cloud, or set the events of the one that already delivers to this URL. A new endpoint's signing secret, which the receiver verifies every delivery with, is in the answer that creates it, and in no other answer of this server: store it then. The answer shows the URL's scheme and host only, and the endpoint's id. An event type Kaiten does not publish is refused, with the closest ones. Kaiten counts the events delivered, not the endpoints, against the organization's monthly allowance. Scopes: write:webhooks.

ParameterTypeDescription
event_types *arrayEvery event it receives, by type (com.kaiten.instance.v1.created) or name (INSTANCE_CREATED): kaiten_get_webhooks(events=...) finds them. For an endpoint that exists, the complete list
url *stringThe HTTPS endpoint that receives a POST for each event. A Slack incoming-webhook URL gets messages formatted for Slack

kaiten_delete_webhook Kaiten Delete Webhook

Delete a webhook endpoint: deliveries to it stop at once. Call it first without confirm to see the endpoint and the events it receives, then with confirm=true. Its URL shows as its scheme and host only. Scopes: write:webhooks.

ParameterTypeDescription
webhook *stringThe endpoint's id, from kaiten_get_webhooks, or its full URL
confirmbooleanfalse (default): only show what would stop. true: delete

kaiten_delete Kaiten Delete

Delete a customer, instance, license version, entitlement, group, flag, zone, release or component. Call it first without confirm to see what depends on it, then again with confirm=true. Kaiten refuses to delete what is still in use (a license an instance is on, a release a zone runs, an entitlement a license grants); that comes back as 'rejected' with the dependents to deal with first.

ParameterTypeDescription
kind *stringWhat to delete
slug *stringIts slug
confirmbooleanfalse (default): only report what the deletion would affect. true: delete