Skip to main content
Glama

chat_read

Read-onlyIdempotent

Read a bounded range of chat turns with a character cap, using or auto-filling the SQLite cache to retrieve only the needed slice.

Instructions

Read a bounded slice of chat turns with a maxChars cap (uses/auto-fills the SQLite cache). Prefer after chat_outline for start/end indexes; use chats_get for the entire chat, chat_cache_read for offline cache-only access. Requires browsers_bind when the cache miss needs a host fetch.

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": {
      "platform": "<platform>",
      "chatId": "<chatId>"
    },
    "name": "chat_read"
  }
}

Input Schema

NameRequiredDescriptionDefault
endNoExclusive end turn index from chat_outline
startNoInclusive start turn index from chat_outline
branchNoConversation branch: active thread only, or all branches when the provider supports them
chatIdYesChat id to read
maxCharsNoHard cap on returned characters (200-20000)
platformYesProvider id: chatgpt | grok | grok-x | copilot | claude | qwen | deepseek | perplexity | kimi | zai | minimax

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. Changed6 schema fields changedv1.0.4
    • addedInput schema / properties / branch / description
      Added value: +"Conversation branch: active thread only, or all branches when the provider supports them"
    • addedInput schema / properties / chatId / description
      Added value: +"Chat id to read"
    • addedInput schema / properties / end / description
      Added value: +"Exclusive end turn index from chat_outline"
    • addedInput schema / properties / maxChars / description
      Added value: +"Hard cap on returned characters (200-20000)"
    • addedInput schema / properties / platform / description
      Added value: +"Provider id: chatgpt | grok | grok-x | claude | copilot | qwen | deepseek | perplexity"
    • addedInput schema / properties / start / description
      Added value: +"Inclusive start turn index from chat_outline"
  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 and openWorld, so the safety profile is covered; the description adds genuinely new behavior — that it uses and auto-fills the SQLite cache, and that a cache miss requiring a host fetch depends on browsers_bind. It does not explain the shape of returned turns, but the dependency and caching semantics are the operationally important details.

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 short sentences with no filler: capability plus bound first, then the preferred ordering, then the exclusion alternatives, then the dependency. Every clause carries routing or behavioral information.

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 read tool with no output schema, the description covers caching, indexing workflow, alternatives, and the external dependency. Minor gaps remain around the returned slice format and default branch behavior, but nothing that would cause a wrong invocation.

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 is 3, but the description still adds meaning: it tells the agent that start/end indexes come from chat_outline (provenance not in the schema) and that maxChars is a hard cap interacting with the cache. The remaining params (platform, chatId, branch) 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?

The description opens with a specific verb and resource: 'Read a bounded slice of chat turns with a maxChars cap', and immediately distinguishes it from chats_get (entire chat) and chat_cache_read (offline cache-only). An agent can choose between these siblings without opening any schema.

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?

It gives explicit routing rules: 'Prefer after chat_outline for start/end indexes', 'use chats_get for the entire chat', 'chat_cache_read for offline cache-only access', and names the prerequisite 'Requires browsers_bind when the cache miss needs a host fetch'. Both when-to-use and which-alternative conditions are stated.

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