Skip to main content
Glama

Change a page's chat settings

update_chat_settings
DestructiveIdempotent

Switch chat on or off, choose who answers, and set the questions and aiContext ("What the AI should know"). Send only what should change; the rest keeps its value. The chat also needs a chat block on the page (put_page) before visitors see it. A mode where the owner answers needs a Telegram group linked first: call connect_telegram. Write aiContext from what you know about the business that the page does not say, and show it to the person before saving.

Input Schema

NameRequiredDescriptionDefault
modeNo"ai": the AI answers every chat, and marks the ones it cannot answer for the owner; "ai_then_owner": the AI answers first and hands the chat to the owner in Telegram when the visitor asks for a person or it cannot help; "owner": every chat goes straight to the owner in Telegram. The last two need a Telegram group: call connect_telegram first.
enabledNoWhether chat is on. Off hides the chat on the published page.
businessYesThe page handle, as it appears in keepp.link/<handle>.
aiContextNo"What the AI should know": everything the AI should know that is NOT on the page, such as policies, delivery, the questions people ask most, and the tone to use. The AI already knows everything on the published page, so do not copy the page in. Up to 1500 words. Send the whole text; it replaces what is there.
questionsNoAsked after the email, before the first message, such as which product or which dates. Send the whole list; it replaces the one there.
verifyEmailNoWhether a visitor confirms their email with a code before the chat starts.

Output Schema

NameRequiredDescriptionDefault
liveYesWhether visitors can use the chat now.
modeYes
enabledYes
aiContextYes"What the AI should know".
questionsYes
verifyEmailYes
telegramGroupNoThe linked group's name, when it has one.
telegramLinkedYes
chatBlockPublishedYesWhether the published page has a chat block.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/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 reinforces exactly that: it discloses partial-update semantics ("the rest keeps its value") and the replace-wholesale behavior of questions and aiContext, which is what makes this destructive. It goes further by stating cross-tool prerequisites and a human-in-the-loop instruction ("show it to the person before saving") that 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.

Conciseness4/5

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

The core action and partial-update rule are front-loaded vacuously well, and every sentence roughly earns its place by adding a prerequisite or a constraint. It is slightly long at five sentences, with the aiContext workflow instruction partially duplicating the schema's own aiContext text.

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

Completeness4/5

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

With a rich input schema, an output schema, and full annotations, the description covers the essentials: what changes, what is preserved, what is replaced, and which sibling tools must run first. Remaining gaps are minor — no mention of the required business handle or of what happens to the live published chat when enabled is toggled, but nothing an agent needs to call it is missing.

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

Parameters4/5

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

Schema coverage is 100% and each parameter already carries a rich description, so the baseline is 3. The description earns an extra point by adding authoring guidance the schema does not contain (how to source aiContext content, and that replacement is total), though most of the mode/enabled semantics are restated from the schema and the required "business" handle is never mentioned in prose.

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?

The description opens with concrete verbs and objects ("Switch chat on or off, choose who answers, and set the questions and aiContext"), which maps one-to-one onto the parameters and clearly separates this tool from sibling get_chat_settings (read) and put_page (page content). It also names the related sibling tools it depends on, so an agent can place it in the workflow without opening any other 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?

It gives explicit prerequisites with named alternatives: the chat needs a chat block via put_page, and owner-answering modes require connect_telegram first, plus partial-update guidance ("Send only what should change"). What it lacks is any direction to read current state first with get_chat_settings or guidance on when not to change settings, so it falls just short of the highest bar.

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