Skip to main content
Glama

search_cached_threads_by_recipient

Read-onlyIdempotent

Search only the durable OpenSearch metadata subset for exact participant email matches. This never contacts a mail provider. Results always have status:'partial' and complete:false; an empty page is not proof that the mailbox has no matches. cache.mailboxFreshness.status is fresh, stale, or unknown; unknown means the mailbox checkpoint cannot prove its age, not that returned matches are stale. Continue with the opaque nextCursor when present, and use get_cached_thread plus the asynchronous refresh request before importing a selected thread.

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>",
      "recipientEmail": "<recipientEmail>"
    },
    "name": "search_cached_threads_by_recipient"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
cursorNo
accountIdYes
recipientEmailYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. Added

TDQS

A4.3/5.0
Behavior5/5

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

The annotations already cover readOnly/idempotent/closed-world, but the description adds substantial non-obvious behavior: results are always status:'partial' with complete:false, an empty page is not proof of absence, and freshness 'unknown' does not mean returned matches are stale. Those caveats are exactly what an agent needs in order to interpret a result correctly and are not derivable from the annotations or schema.

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?

Every sentence carries distinct information and the scope constraint is front-loaded before the caveats. It is densely packed and long for a search tool, but no sentence is filler and the ordering (what it is → limits → fields → next step) is logical.

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 cached, paginated search with no output schema, the definition covers partiality, freshness semantics, pagination, and the follow-up path well. The gaps are secondary: no mention of the 50-result cap, no explanation of accountId, and no hint about what a result record contains.

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 0%, so the description must compensate, and it only partly does. It clarifies recipientEmail as an exact participant match but gives no meaning for accountId or limit, and it refers to `nextCursor` while the schema property is named `cursor`, which could confuse an agent wiring the continuation value.

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 definition names a specific verb and resource ('Search ... the durable OpenSearch metadata subset') and adds the scope that separates it from the live-search sibling: 'This never contacts a mail provider' and 'exact participant email matches.' This contrast with search_threads_by_recipient is clear enough that an agent does not need to open either schema to tell them apart.

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

Usage Guidelines4/5

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

The definition gives concrete continuation guidance ('Continue with the opaque nextCursor when present') and a workflow handoff: use get_cached_thread plus the asynchronous refresh request before importing a selected thread. It stops short of an explicit routing rule such as 'use search_threads_by_recipient when you need live provider results,' so the live-vs-cache choice is implied rather than stated.

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