Skip to main content
Glama

save_chat_context

Persist chat messages to a cross-chat context backend so decisions and conversation history carry across sessions and models.

Instructions

Save chat messages to the configured cross-chat context backend.

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": {
      "session_id": "<session_id>"
    },
    "name": "save_chat_context"
  }
}

Input Schema

NameRequiredDescriptionDefault
session_idYes
project_rootNo
user_messageNo
user_peer_idNo
assistant_messageNo
assistant_peer_idNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.7/5.0
Behavior2/5

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

With no annotations present, the description carries the full burden of behavioral disclosure and does not meet it. It never says whether saving appends or overwrites prior context, whether it fails when no backend is configured, whether authentication or session state is required, or what side effects the write has on a cross-chat store.

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 front-loaded sentence with no filler, which is a well-structured length for a tool description. The problem is under-specification rather than verbosity, so conciseness itself is fine.

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

Completeness2/5

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

An output schema exists, so return values need not be explained, but for a six-parameter write tool with zero annotation coverage the definition says almost nothing about preconditions, failure modes, or parameter roles. An agent could invoke it but could easily omit or misuse the undocumented optional fields.

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

Parameters2/5

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

Schema description coverage is 0% across six parameters, so the description must compensate and it largely does not. The phrase 'chat messages' loosely points at user_message and assistant_message, but session_id (the sole required field), project_root, and the two peer_id fields get no explanation of format or purpose.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/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 ('Save chat messages') plus a destination ('configured cross-chat context backend'), which is far more informative than a tautology. It stops short of differentiating itself from siblings like record_turn, record_session, or save_model_handoff, so an agent cannot be sure which save-path to choose from the text alone.

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

Usage Guidelines2/5

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

There is no statement of when this tool should be used versus load_chat_context, record_turn, or save_model_handoff, and no precondition or exclusion is mentioned. The only hint is the word 'configured', which implies a backend must be set up but never says so explicitly.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.