Skip to main content
Glama

get_cached_thread

Read-onlyIdempotent

Read only the durable mailbox cache; this tool never calls IMAP or another provider. status:'ok' and complete:true mean the cached thread graph is complete. cache.stale is a compatibility alias for cache.threadStale, which describes that thread snapshot; account-wide mailbox freshness is separate in cache.mailboxFreshness.status (fresh, stale, or unknown). An unknown mailbox watermark is not evidence that cached mail is stale, and only a stale state should be described as delayed. not_cached and incomplete are not proof that the mailbox has no other messages. checkpoint.complete describes account-wide folder watermark coverage, separately from thread completeness; inspect checkpoint.gaps when a CRM decision needs complete history.

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": {
      "accountId": "<accountId>",
      "threadId": "<threadId>"
    },
    "name": "get_cached_thread"
  }
}

Input Schema

NameRequiredDescriptionDefault
threadIdYes
accountIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. Added

TDQS

A3.5/5.0
Behavior5/5

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

Annotations already cover readOnly/idempotent/non-destructive, and the description still adds substantial behavior: it clarifies that no provider call happens, decodes status/complete semantics, flags cache.stale as an alias for cache.threadStale, and warns that unknown watermark or not_cached is not evidence of absent mail. These interpretive caveats directly prevent an agent from mislabeling cached data as delayed or missing, which annotations alone cannot convey.

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?

The read-only constraint is correctly front-loaded, but the bulk of the text is a chained sequence of field-by-field disambiguations that reads as a run-on and pushes return-value minutiae ahead of basic context. Most clauses carry information, yet the density and lack of structure (no grouping of input vs output semantics) make it harder to scan than needed.

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

Completeness3/5

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

With no output schema and no annotations on return values, the description is right to decode status/complete/stale/checkpoint fields, and it does that well. It is incomplete on the input side (both required parameters are unexplained) and never plainly states what the tool returns (thread graph with messages?) or its failure behavior for a missing account.

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% and the description never explains accountId or threadId — no statement of accepted formats, whether threadId is provider-specific, or what happens when a thread spans accounts. The phrases 'account-wide' and 'thread snapshot' hint at scope but add essentially no meaning beyond the parameter names.

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 opening sentence states a specific verb and resource: read-only access to the 'durable mailbox cache' with an explicit negative ('never calls IMAP or another provider'), which separates it from live-fetch siblings like get_thread. It never spells out the input pairing (accountId + threadId) or names the alternative sibling, so differentiation is implied rather than stated.

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

Usage Guidelines3/5

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

Usage context is implied by the cache-only framing, and one conditional is given ('inspect checkpoint.gaps when a CRM decision needs complete history'). There is no explicit when-to-use vs when-to-prefer-live guidance, no mention of request_cached_thread_refresh or get_thread as alternatives, and no statement of what to do on not_cached/incomplete.

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