Skip to main content
Glama

Set the details the chat collects

set_chat_details_to_collect
Idempotent

Set the details a site's chat collects from visitors (up to 8, e.g. "Car model", "Preferred date"): what to ask for each, and whether it is needed before the chat saves the lead, books or calls a function. The chat asks one at a time and never asks what it already knows; what visitors say is added to the contact when the lead is saved. Replaces the whole list, as a new version.

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>",
      "details": "<details>"
    },
    "name": "set_chat_details_to_collect"
  }
}

Input Schema

NameRequiredDescriptionDefault
detailsYesThe whole list (at most 8): it replaces the saved one. An empty list collects nothing.
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.
expected_versionNoThe `version` get_chat_playbook returned. When given, the save is refused if someone saved since.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare the write/idempotent/non-destructive profile, and the description adds real substance on top: the call replaces the entire saved list, the chat's turn-by-turn asking behavior, and that captured answers are attached to the contact at lead save. It stops short of disclosing the consequence of dropping or renaming an existing key (loss of previously collected data) or any permission/auth requirements.

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?

Purpose is front-loaded in the first clause, followed by the replacement and conversational-behavior notes — no filler or restatement of the title. Three dense sentences carry a lot, though the long parenthetical lists make the first sentence slightly harder to scan than necessary.

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 mutation tool with no output schema, the definition covers what is written, that it is a wholesale replacement, and how the resulting data is used downstream, with the schema fully documenting parameters. The remaining gap is the effect on already-collected visitor data when a detail key is removed, which is only hinted at in the schema.

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 schema coverage at 100%, the baseline is 3; the description earns an increment by explaining in plain language what `details` represents and by paraphrasing `required_for` as "whether it is needed before the chat saves the lead, books or calls a function". The 8-item cap is reinforced in prose, though it duplicates the schema's maxItems.

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 names a specific verb and resource — set the details (fields) a site's chat collects from visitors — and scopes it with concrete constraints (up to 8, examples like "Car model", "Preferred date") plus what each entry controls. An agent can distinguish this configuration task from the other set_chat_* siblings without reading the schema.

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

Usage Guidelines3/5

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

Usage is implied rather than stated: the description explains the replacement semantics and the operational consequence (chat asks one at a time, never re-asks known data), which tells the agent this is a full-list overwrite. However, it never says when to prefer this tool over a sibling, nor names an alternative for reading the current list, and no when-not conditions are given.

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