Skip to main content
Glama

chat_cache_update_block

Update a single cached chat block by replacing its content or resyncing that turn from the live provider tab, enabling surgical cache edits without refreshing the whole chat.

Instructions

Update one cached block (bumps revision) or resync that turn from the live tab via resyncFromHost. Prefer for surgical cache edits; use chat_cache_append to add turns, chat_cache_sync to refresh the whole chat. Local cache only unless resyncFromHost needs the bound browser.

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": {
      "turnIndex": "<turnIndex>"
    },
    "name": "chat_cache_update_block"
  }
}

Input Schema

NameRequiredDescriptionDefault
roleNoOptional role override for the block
chatIdNoChat id when selecting cache by platform+chatId
cacheIdNoCache row id containing the block
contentNoReplacement content when not resyncing from host
platformNoProvider id: chatgpt | grok | grok-x | copilot | claude | qwen | deepseek | perplexity | kimi | zai | minimax
turnIndexYesZero-based turn index of the block to update
resyncFromHostNoWhen true, refresh this turn from the live provider tab instead of content

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.1.1
    • changedInput schema / properties / platform / description
      Previous value: -"Provider id: chatgpt | grok | grok-x | claude | copilot | qwen | deepseek | perplexity"New value: +"Provider id: chatgpt | grok | grok-x | copilot | claude | qwen | deepseek | perplexity | kimi | zai | minimax"
    • changedInput schema / properties / platform / enum
      Previous value: -[
      -  "chatgpt",
      -  "grok",
      -  "grok-x",
      -  "copilot",
      -  "claude",
      -  "qwen",
      -  "deepseek",
      -  "perplexity"
      -]New value: +[
      +  "chatgpt",
      +  "grok",
      +  "grok-x",
      +  "copilot",
      +  "claude",
      +  "qwen",
      +  "deepseek",
      +  "perplexity",
      +  "kimi",
      +  "zai",
      +  "minimax"
      +]
  2. Changed7 schema fields changedv1.0.4
    • addedInput schema / properties / cacheId / description
      Added value: +"Cache row id containing the block"
    • addedInput schema / properties / chatId / description
      Added value: +"Chat id when selecting cache by platform+chatId"
    • addedInput schema / properties / content / description
      Added value: +"Replacement content when not resyncing from host"
    • addedInput schema / properties / platform / description
      Added value: +"Provider id: chatgpt | grok | grok-x | claude | copilot | qwen | deepseek | perplexity"
    • addedInput schema / properties / resyncFromHost / description
      Added value: +"When true, refresh this turn from the live provider tab instead of content"
    • addedInput schema / properties / role / description
      Added value: +"Optional role override for the block"
    • addedInput schema / properties / turnIndex / description
      Added value: +"Zero-based turn index of the block to update"
  3. First observedv1.0.3

TDQS

A4.4/5.0
Behavior4/5

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

Adds real behavior beyond the annotations: it discloses that the operation bumps a revision, that the default path is local-cache-only, and that the resync path depends on a bound browser tab. It does not say what happens when turnIndex is out of range, nor how callers should react to the revision bump.

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?

Two tight sentences, front-loaded with the primary action and its revision side effect, followed by alternatives and scope caveat. No filler or restatement of the tool name.

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 7-parameter mutation tool with no output schema, it covers the essential modes, the scope of side effects, and sibling routing. Remaining gaps are small: whether cacheId and platform+chatId are alternatives, and the failure behavior for a nonexistent turn.

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

Parameters3/5

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

Schema description coverage is 100%, so the schema already explains turnIndex, content, role, resyncFromHost, and the id selectors. The description only contributes the extra note that resyncFromHost requires the bound browser tab, which is marginal beyond the structured data.

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 ('Update one cached block') plus a second explicit mode ('resync that turn from the live tab via resyncFromHost'). It also distinguishes itself from chat_cache_append and chat_cache_sync by function, so an agent can pick it without opening the schemas.

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 an explicit preference rule ('Prefer for surgical cache edits') and names two alternatives with the conditions that select them (add turns vs. refresh whole chat). When-not guidance is implied clearly enough by the surgical-vs-whole distinction.

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