Skip to main content
Glama

Change the chat's situations

update_chat_situations
Destructive

Save the chat's situations, or bring back an earlier version. save: send the WHOLE set (from get_chat_situations, edited: each situation has a short key, title, when it applies and direction for what to do) with expected_version from that read and a one-line summary; a save made after someone else's is refused, so read again. restore: version to bring back, with expected_version. Every save is a new version and can be restored. Test an answer afterwards with test_chat_answer. The chat's moves and details to collect are not situations: they are kept as they are (change them with set_chat_moves and set_chat_details_to_collect).

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>",
      "action": "<action>",
      "expected_version": "<expected_version>"
    },
    "name": "update_chat_situations"
  }
}

Input Schema

NameRequiredDescriptionDefault
setNosave: the whole set of situations ({ playbooks, audiences?, defaultDirection?, ... })
actionYes
site_idYesThe site, from list_sites
summaryNosave: what changed, in one line
versionNorestore: the version to bring back
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.
override_reasonNosave: only when told the change breaks a required conversation and the owner still wants it, their reason
expected_versionYesThe version from get_chat_situations

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only say this is a non-idempotent destructive write; the description adds the real behavioral facts: optimistic concurrency via expected_version, refusal on stale writes, every save creating a restorable new version, and override_reason being needed only when a required conversation would break. That is genuine context beyond the annotations.

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?

A single dense paragraph that front-loads the action split before the per-action rules. It is efficient and free of filler, though the run-on clause about moves and details is slightly harder to parse than a short bulleted split would be.

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 an 8-parameter destructive mutation with no output schema, the description covers the write lifecycle, concurrency, reversibility and adjacent tools well. The remaining gap is that it never says what a save returns (e.g. the new version number an agent would need for the next write), which matters given there is no output 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?

Schema coverage is 88%, so the baseline is already 3, but the description adds structure for the loosely-typed `set` object (short key, title, when it applies, direction) that the schema only documents as an open object. It does not explain user_goal or spell out the override_reason trigger conditions in detail, so it stops short of full coverage.

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?

Opens with a concrete verb+resource: save the chat's situations or restore an earlier version. It immediately names the two modes and explicitly draws the boundary against set_chat_moves and set_chat_details_to_collect, which are the siblings most likely to be confused with it.

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?

Gives per-action guidance: `save` requires the whole set plus expected_version and a one-line summary, `restore` requires a version with expected_version. It also states the recovery rule (a save after someone else's is refused, so read again) and routes follow-up verification to test_chat_answer.

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