Skip to main content
Glama

Update project settings

update_settings
DestructiveIdempotent

Change the settings of one project. Send project_id and only the fields to change; a field left out keeps its current value. Returns ok and a short message.

Build settings (ref, framework, runtime_version, build_cmd, dependencies_cmd, sub_path, output_directory) apply to the next build. port and health_check_path restart the running app. storage_mount_path applies on the next deploy. display_name renames the project.

Visibility: default_public sets whether commits created later are public or owner-only; existing commits keep their visibility. auto_promote_on_main_build sets whether a successful build of the tracked ref becomes the production version automatically.

Sign-in gate: google_login ('on' or 'off') puts the platform's Google sign-in in front of the app's canonical host, or removes it, and applies to the live host immediately. google_login_mode and google_login_allowed_emails set who may pass and also apply immediately; removing an address ends that person's access on their next request.

Bots and timers: an idle app is paused and only an incoming request wakes it, so an app cannot keep its own chat connection (discord.py client.run, discord.js client.login, Telegram polling, Slack Socket Mode) or run its own timers (node-cron, APScheduler, setInterval). Declare them and the platform calls the app instead. A call the platform makes itself (a timer, a gateway event) carries 'Authorization: Bearer <KAD_PLATFORM_TOKEN>' (an env var the platform sets), which the handler must check.

  • crons: the platform sends POST /__kad/cron/ at each time. Answer 2xx within 85 s. A run is never repeated, and one can be missed.

  • bot, mode 'webhook' (default; Discord slash commands and buttons, Telegram, Slack Events): the chat platform calls the app's public URL at bot.path. For discord and telegram the platform registers that URL when a commit is live, and for discord also bot.commands; it sets DISCORD_PUBLIC_KEY, and the handler must verify the Ed25519 signature, answer PING with {"type":1} and answer in 3 s (or defer with type 5). For telegram the handler compares the X-Telegram-Bot-Api-Secret-Token header with KAD_WEBHOOK_SECRET (set by the platform). The app must be public.

  • bot, mode 'gateway' (discord bots that read normal messages): the platform holds the connection and sends each event listed in bot.events as POST /__kad/bot/events with JSON {platform, type, seq, data}; the app replies through the chat platform's REST API with its own token. Delivery is at least once: use the X-Kad-Event-Id header to skip repeats. No voice.

  • Long tasks: a handler that keeps working after it answered is paused after about 90 s without a new request. When the env var KAD_BUSY_URL is set, POST {"seconds": N} to it with the KAD_PLATFORM_TOKEN Bearer to stay awake (at most 900 s per call, with a daily budget), and {"seconds": 0} when the work is done. The bot token is an env var: set it with set_env_vars and give only its NAME in bot.token_env. get_settings shows the registration state and the last timer runs.

Environment variables are not changed by this tool; set_env_vars does that. Requires a read-write token.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "project_id": "<project_id>"
    },
    "name": "update_settings"
  }
}

Input Schema

NameRequiredDescriptionDefault
botNodeclare the app's chat bot so the platform drives it; an idle app is paused, so it cannot hold its own chat connection. See the BOTS AND TIMERS section of the server instructions. Pass platform 'none' to remove the bot
refNotracked branch/tag (the ref auto-promote follows)
portNocontainer port; change rolls the deployed pods
cronsNothe app's timers; replaces the whole list, an empty list removes them. At each time the platform sends POST <path> to the live app with 'Authorization: Bearer $KAD_PLATFORM_TOKEN'; the handler must answer within 85 s
sub_pathNobuild sub-directory; applies to the next build
build_cmdNobuild command; applies to the next build
frameworkNoframework preset; applies to the next build
start_cmdNocommand that starts the app (presets fastapi, flask, django, node); a shell command run as /bin/sh -c with PORT set; empty string = the preset's own command; applies to the next build
project_idYesthe project id (from list_projects)
display_nameNohuman-friendly project name
google_loginNo'on' gates the app's canonical host behind Google sign-in (the platform runs the OAuth flow; the app receives X-Kad-User/X-Kad-Email/X-Kad-Project headers), 'off' removes the gate. Applies to the live canonical host immediately.
default_publicNowhether new commits default to public
runtime_versionNoruntime version; applies to the next build
dependencies_cmdNoinstall command; applies to the next build
output_directoryNostatic output directory; applies to the next build
google_login_modeNowho gets through the Google gate: 'anyone' (any verified Google account) or 'restricted' (only google_login_allowed_emails). Takes effect immediately, no redeploy. Switching to 'restricted' with no list seeds the owner's own address so they don't lock themselves out.
health_check_pathNoHTTP health-check path; change rolls the deployed pods
storage_mount_pathNoabsolute path where the app's persistent disk mounts, e.g. /data; empty removes it. Setting it on an app that has no disk (a new app has none) creates the disk. Applies on the next deploy
auto_promote_on_main_buildNoauto-promote successful builds of the tracked ref to canonical
google_login_allowed_emailsNothe email addresses allowed in 'restricted' mode; replaces the whole list. Removing an address revokes that person on their next request.

Output Schema

NameRequiredDescriptionDefault
okYes
statusNopresent, and always "pending_approval", only when this call was parked instead of run immediately because the project's (or kad-back's own) plan-mode setting requires a human to approve it first
messageYes
plan_idNopoll get_plan_status with this id for the eventual outcome
approve_atNothe kad.dev dashboard URL a human approves or rejects this plan from
expires_in_sNothe plan can no longer be approved after this many seconds

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / bot
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "declare the app's chat bot so the platform drives it; an idle app is paused, so it cannot hold its own chat connection. See the BOTS AND TIMERS section of the server instructions. Pass platform 'none' to remove the bot",
      +  "properties": {
      +    "commands": {
      +      "description": "discord: the slash commands to register when a commit goes live, as Discord command objects, e.g. [{\"name\":\"ping\",\"description\":\"Replies with pong\"}]",
      +      "items": {
      +        "additionalProperties": true,
      +        "type": "object"
      +      },
      +      "type": [
      +        "null",
      +        "array"
      +      ]
      +    },
      +    "events": {
      +      "description": "gateway mode: the event names to forward, e.g. [\"MESSAGE_CREATE\"]; only these wake the app",
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": [
      +        "null",
      +        "array"
      +      ]
      +    },
      +    "message_content": {
      +      "description": "gateway mode: ask for message text (the privileged Message Content intent; it must also be switched on in the Discord Developer Portal)",
      +      "type": "boolean"
      +    },
      +    "mode": {
      +      "description": "'webhook' (default): the chat platform calls the app's public URL. 'gateway' (discord): the platform holds the live connection and POSTs each event to the app, for bots that read normal messages",
      +      "type": "string"
      +    },
      +    "path": {
      +      "description": "path of the handler in the app; defaults: /interactions (discord webhook), /telegram, /slack/events, /__kad/bot/events (gateway)",
      +      "type": "string"
      +    },
      +    "platform": {
      +      "description": "'discord', 'telegram' or 'slack'; 'none' removes the bot",
      +      "type": "string"
      +    },
      +    "token_env": {
      +      "description": "NAME of the env var that holds the bot token, e.g. DISCORD_TOKEN; set its value with set_env_vars",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "platform"
      +  ],
      +  "type": [
      +    "null",
      +    "object"
      +  ]
      +}
    • addedInput schema / properties / crons
      Added value: +{
      +  "description": "the app's timers; replaces the whole list, an empty list removes them. At each time the platform sends POST <path> to the live app with 'Authorization: Bearer $KAD_PLATFORM_TOKEN'; the handler must answer within 85 s",
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "name": {
      +        "description": "timer name: lower-case letters, digits and dashes",
      +        "type": "string"
      +      },
      +      "path": {
      +        "description": "handler path in the app; default /__kad/cron/<name>",
      +        "type": "string"
      +      },
      +      "schedule": {
      +        "description": "5-field cron expression (minute hour day-of-month month day-of-week), e.g. '0 8 * * *'; @hourly and @daily also work",
      +        "type": "string"
      +      },
      +      "timezone": {
      +        "description": "IANA zone name such as Europe/Paris; default UTC",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "name",
      +      "schedule"
      +    ],
      +    "type": "object"
      +  },
      +  "type": [
      +    "null",
      +    "array"
      +  ]
      +}
  2. Changed1 schema field changed
    • addedInput schema / properties / start_cmd
      Added value: +{
      +  "description": "command that starts the app (presets fastapi, flask, django, node); a shell command run as /bin/sh -c with PORT set; empty string = the preset's own command; applies to the next build",
      +  "type": [
      +    "null",
      +    "string"
      +  ]
      +}
  3. First observed

TDQS

A4.3/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare destructiveHint=true and idempotentHint=true, and the description builds on that with concrete consequences: which fields apply on the next build, which roll the running pods, which apply on the next deploy, and that removing an allowed email revokes access on the next request. It also discloses the platform-token auth model and handler contracts for crons and bots, which no annotation conveys.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Well organized with labeled sections and front-loaded essentials, but it is very long and spends several paragraphs re-explaining bot/timer mechanics that the schema itself defers to the server instructions. For a tool-selection surface, much of that prose does not earn its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 20-parameter, destructive, open-world mutation tool, the description covers timing of effects, side effects of removal, auth requirements, and the bot/timer handler contract. An output schema exists, so the brief return note is sufficient, and nothing an agent needs to call this safely is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% and the schema already states per-field application timing (e.g. 'applies to the next build', 'applies on the next deploy'), so most of the description's field text restates structured data. It does add value by grouping fields by effect and stating the omit-to-keep rule, but that is a modest increment over an unusually rich schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Change the settings of one project') and immediately clarifies the partial-update contract: send project_id plus only the fields to change, omitted fields keep current values. It also draws a hard boundary against set_env_vars and get_settings, so an agent can distinguish it from the closest siblings without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives clear operational context: partial-update semantics, that environment variables are handled by set_env_vars instead, that get_settings shows registration state and last timer runs, and that a read-write token is required. It stops short of explicit when-not guidance for the deployment-oriented siblings (deploy_project, restart_app), which is the only remaining gap.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources