Skip to main content
Glama

Octolane

get_email_thread

Read-only

Get the full email thread conversation by thread ID. DEAL CAPTURE: If the thread is with an outside company and shows buying interest (pricing, a trial, a proposal, agreed next steps), run search_deals with account_name set to that company, any stage (if only an email domain is known, search its root name). If the company has no open deal (won or lost stages are closed), offer once per company per conversation to create one with create_deal, proposing a pipeline from list_pipelines, the company domain and the main external contact's email. Create it only after the user agrees. Skip when the user has declined or a saved rule turns deal suggestions off.

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": {
      "thread_id": "<thread_id>"
    },
    "name": "get_email_thread"
  }
}

Input Schema

NameRequiredDescriptionDefault
thread_idYesThe email thread ID to retrieve
session_idNoThe ID of the task this call belongs to. Leave it out on your first call. On every later call for the same task, send the ID an earlier result gave you, and pass it to any subagent working on that task.

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is covered structurally. The description adds genuinely non-obvious behavior: this read call is expected to trigger a follow-up offer workflow with specific preconditions and a consent gate ('Create it only after the user agrees'). It still says nothing about the shape of the returned thread, message ordering, or truncation limits.

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 purpose is correctly front-loaded in the first sentence, which is the strongest structural choice here. The remaining text is a dense, multi-clause policy block about a different workflow (deal creation) that is long relative to the single retrieval action it documents; it is informative but disproportionately bulky for the tool's surface.

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 two fully documented parameters, complete annotations, and no output schema, the definition covers enough to make the call correctly. What it lacks is return-value context: 'full email thread conversation' does not say how messages are ordered, whether bodies are truncated, or what happens for a missing thread ID. Including cross-tool deal guidance in place of that retrieval detail leaves a real gap.

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% with only two parameters, so both thread_id and session_id are already documented in the schema, including the session_id lazily-carried-forward convention. The description restates thread_id at a high level but adds no syntax, format, or validity information beyond it, so it does not exceed the baseline.

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: 'Get the full email thread conversation by thread ID,' which tells an agent exactly what it returns and what key it needs. It does not contrast with nearby read tools (get_contact_details, get_deal_details), so the differentiation from sibling getters is left implicit, but the resource is unambiguous.

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?

The description supplies elaborate conditional guidance, but almost all of it concerns the downstream deal-capture flow (when to run search_deals, when to offer create_deal, when to skip) rather than when to invoke get_email_thread itself versus another retrieval tool. The trigger conditions and exclusions it does give ('Skip when the user has declined or a saved rule turns deal suggestions off') are explicit and well-bounded, which lifts it above a bare 2.

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