Skip to main content
Glama

chat_cache_read

Read-onlyIdempotent

Read cached chat blocks from local SQLite by turn range, block ID, or full-text query within one chat, returning results without reopening the browser.

Instructions

Read cached chat blocks from local SQLite by turn range, blockId, or FTS query within one chat without hitting the browser. Prefer after chat_cache_sync/library_ingest; use chats_search for cross-chat FTS; use chat_read when the cache may be cold. Identify the copy via cacheId or platform+chatId.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "chat_cache_read"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryNoFTS5 search query over this chat only; use chats_search for library-wide
chatIdNoChat id when selecting cache by platform+chatId
blockIdNoSpecific cached block id to return
cacheIdNoCache row id from a previous sync/outline
endTurnNoExclusive end turn index
maxCharsNoHard cap on returned characters (200-200000)
platformNoProvider id: chatgpt | grok | grok-x | copilot | claude | qwen | deepseek | perplexity | kimi | zai | minimax
startTurnNoInclusive start turn index

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 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"
      +]
    • changedInput schema / properties / query / description
      Previous value: -"FTS5 search query over cached turn text"New value: +"FTS5 search query over this chat only; use chats_search for library-wide"
  2. Changed8 schema fields changedv1.0.4
    • addedInput schema / properties / blockId / description
      Added value: +"Specific cached block id to return"
    • addedInput schema / properties / cacheId / description
      Added value: +"Cache row id from a previous sync/outline"
    • addedInput schema / properties / chatId / description
      Added value: +"Chat id when selecting cache by platform+chatId"
    • addedInput schema / properties / endTurn / description
      Added value: +"Exclusive end turn index"
    • addedInput schema / properties / maxChars / description
      Added value: +"Hard cap on returned characters (200-200000)"
    • addedInput schema / properties / platform / description
      Added value: +"Provider id: chatgpt | grok | grok-x | claude | copilot | qwen | deepseek | perplexity"
    • addedInput schema / properties / query / description
      Added value: +"FTS5 search query over cached turn text"
    • addedInput schema / properties / startTurn / description
      Added value: +"Inclusive start turn index"
  3. First observedv1.0.3

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive/closed-world, so the safety profile is covered. The description adds genuinely non-schema behavior: reads are served from local SQLite without contacting the browser, and results depend on a prior sync/ingest having populated the cache. It does not discuss result ordering or whether query combines with the turn bounds.

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?

Three sentences, each load-bearing: what it does and on what storage, when to prefer/avoid, then how to address the cache copy. Capability is front-loaded and there is no filler.

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 eight-parameter, no-output-schema tool with strong annotations, the definition covers source, prerequisites, alternatives, and addressing strategy. The remaining gap is interaction semantics between filters (e.g. whether an FTS query can be combined with startTurn/endTurn and how results are ordered).

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 100%, so the baseline would be 3, but the description adds selection logic the schema does not express: the cache row must be identified either by cacheId or by the platform+chatId pair. That disjunction is real added meaning for an agent choosing among eight optional parameters.

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 ('Read cached chat blocks from local SQLite') plus the three selection modes (turn range, blockId, FTS query) and the scope boundary ('within one chat without hitting the browser'). The sibling routing sentence makes clear it is not chats_search or chat_read.

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?

Explicitly names both prerequisites ('Prefer after chat_cache_sync/library_ingest') and the two alternatives with the condition that selects each ('use chats_search for cross-chat FTS; use chat_read when the cache may be cold'). When-to-use and when-not-to-use are both covered.

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