Skip to main content
Glama

Change the chat's quick replies and flows

update_chat_flows
Destructive

Set the chat's quick-reply buttons and step-by-step flows. Either send flow_config, the WHOLE set (read get_chat_flows, edit it, send it back; null removes every button and flow), or generate_from_site: true to have them drafted from the site's content and saved, as the screen's Auto-generate does (replaces what is there). Keep 4-6 buttons. Every button that starts a flow must name a flow in flows. Visitors see the change in their next chat; no publish is needed. Confirm with the owner before replacing buttons they made.

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": {
      "site_id": "<site_id>"
    },
    "name": "update_chat_flows"
  }
}

Input Schema

NameRequiredDescriptionDefault
site_idYesThe site, from list_sites
user_goalNoOptional: the user's goal behind this call, in one short sentence of plain words (e.g. "add a page so customers can book tables"). No names, emails or other personal details.
flow_configNoThe whole set of buttons and flows, or null to remove them all.
generate_from_siteNoDraft the buttons and flows from the site instead, and save them.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and idempotentHint=false, but the description adds material behavior beyond them: `flow_config` is a whole-set replacement (not a patch), null wipes every button and flow, `generate_from_site` overwrites what exists, and changes go live on the visitor's next chat with no publish step. That overwrite/live-effect disclosure is exactly the extra context the annotations cannot convey.

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

Conciseness5/5

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

Sentences are front-loaded and each carries a distinct obligation: modes first, then the danger of null, then the generation alternative, then constraints and the no-publish/live-effect note. Parenthetical asides are short and informative rather than filler.

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?

For a destructive mutation with a deep nested schema and no output schema, the description covers the safety-relevant surface: replacement semantics, removal via null, generation mode, and liveness. It does not say what the call returns or how validation failures on the nested flow structure are reported, which is a modest remaining gap.

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?

With 100% schema coverage the baseline is 3, and the description earns above that by explaining the operational meaning of `flow_config` as a read-modify-write whole set and framing `generate_from_site` as equivalent to the screen's Auto-generate with implicit replacement. It adds little on `site_id` and `user_goal`, which the schema already documents, so it stops short of a 5.

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 a specific verb and resource: "Set the chat's quick-reply buttons and step-by-step flows." It then enumerates the two mutually exclusive operating modes (full `flow_config` payload vs. `generate_from_site: true`), so an agent can distinguish this write path from read siblings like get_chat_flows and from the narrower update_chat_followup_settings / update_chat_situations tools.

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

Usage Guidelines5/5

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

Usage is prescriptive: read get_chat_flows first, edit it, send the whole set back, or use `generate_from_site: true` as an alternative. It states when to use null, what a null does, and adds a human-facing rule ("Confirm with the owner before replacing buttons they made"), plus content constraints (4-6 buttons, every start_flow chip must reference a flow in `flows`). Nothing about when-to-use is left to inference.

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