Skip to main content
Glama
Replaced by its MCP Registry listing

This endpoint is listed in the official MCP Registry as Mondovo. If you published it, claim ownership there.

Save a chat as a test

save_chat_as_test

Keep one of a site's real chats (an id from list_chat_replay_conversations) as a test of its chat: at each visitor message (the latest 12) the move the chat makes now is what it must keep making, unless expected_moves says what it should do instead (to teach it a chat that went wrong: visitor_turn 0 is their first message in the test). Saved with the chat's guidance as a new version (at most 5 tests). Every later change to the moves or details runs the tests and reports any that go differently; run_chat_tests runs them on demand. The result lists each visitor message with the move it should make and the move it makes now.

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>",
      "conversation_id": "<conversation_id>"
    },
    "name": "save_chat_as_test"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoA short name, e.g. "Asks for the plate before booking"
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_movesNoCorrections: what the chat should do at these visitor messages instead of what it does now
conversation_idYesThe chat, from list_chat_replay_conversations
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.4/5.0
Behavior5/5

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

Beyond the annotations (which only say it is a non-destructive, non-idempotent write), the description discloses real consequences: the chat's guidance is saved as a new version, at most 5 tests exist, and every later change to moves or details re-runs the tests and reports divergences. It also spells out the shape of the result (each visitor message with its expected and current move), filling the gap left by the absent output schema.

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?

Purpose is front-loaded, but the core sentence is a tangled run-on ('at each visitor message (the latest 12) the move the chat makes now is what it must keep making') that takes a second read. The information is dense and largely earns its place, yet the phrasing could be split for far easier parsing.

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 6-parameter write tool with full schema coverage, no output schema, and annotations covering the safety profile, the description is nearly complete: it explains versioning, the 5-test cap, expected_version conflicts (via schema), and the return contents. Minor gaps remain around what happens when the 5-test cap is hit and whether a failed save leaves anything behind.

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, but the description adds meaning not in the schema: that only the latest 12 visitor messages matter, that expected_moves is a correction channel for a chat that went wrong, and that visitor_turn 0 is the first message in the test. Only `name` and `expected_version` are left entirely to the 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 — save a real chat as a test of the site's chat — and ties the input to a named sibling source (an id from list_chat_replay_conversations). It is clearly distinguishable from run_chat_tests and delete_chat_test, which appear as actions taken on the resulting test rather than creating it.

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 context for when to reach for it (locking in the current behavior of a real chat, or teaching a chat that went wrong via expected_moves) and names run_chat_tests as the on-demand alternative. It stops short of stating explicit exclusions, e.g. when to prefer drafting instructions instead of saving a test.

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