Skip to main content
Glama

Read an email conversation

get_thread
Read-onlyIdempotent

The conversation around one email: every email of the same application, or of the same sender and subject when it belongs to none, oldest first. Each message gives its id, sender, subject, received time, category and the application it belongs to, without bodies. Reads only.

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": {
      "message_id": "<message_id>"
    },
    "name": "get_thread"
  }
}

Input Schema

NameRequiredDescriptionDefault
message_idYesA message id from list_inbox.

Output Schema

NameRequiredDescriptionDefault
messagesYesEvery email of the conversation, oldest first, without bodies.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed15 schema fields changed
    • changedInput schema / properties / message_id / description
      Previous value: -"A message id from list_inbox, as a number or as the same digits in a string."New value: +"A message id from list_inbox."
    • addedOutput schema / properties / messages / description
      Added value: +"Every email of the conversation, oldest first, without bodies."
    • addedOutput schema / properties / messages / items / description
      Added value: +"One email of the inbox: who sent it, when, what it is and the application it belongs to."
    • addedOutput schema / properties / messages / items / properties / application / description
      Added value: +"The application this email belongs to, or null when it belongs to none."
    • addedOutput schema / properties / messages / items / properties / application / properties
      Added value: +{
      +  "company": {
      +    "description": "The employer's name.",
      +    "type": [
      +      "string",
      +      "null"
      +    ]
      +  },
      +  "job_id": {
      +    "description": "The job id of the application.",
      +    "type": "string"
      +  },
      +  "status": {
      +    "description": "The application's ledger status.",
      +    "type": [
      +      "string",
      +      "null"
      +    ]
      +  },
      +  "title": {
      +    "description": "The posting's title.",
      +    "type": [
      +      "string",
      +      "null"
      +    ]
      +  }
      +}
    • addedOutput schema / properties / messages / items / properties / application / required
      Added value: +[
      +  "job_id"
      +]
    • addedOutput schema / properties / messages / items / properties / category / description
      Added value: +"What the email is, as classified: interview, rejection, assessment, offer, recruiter, verification, application_confirmation or unknown."
    • addedOutput schema / properties / messages / items / properties / category / type
      Added value: +"string"
    • addedOutput schema / properties / messages / items / properties / id / description
      Added value: +"The message id get_message and get_thread take."
    • addedOutput schema / properties / messages / items / properties / received_at / description
      Added value: +"When the email arrived, ISO 8601."
    • addedOutput schema / properties / messages / items / properties / received_at / type
      Added value: +"string"
    • addedOutput schema / properties / messages / items / properties / sender / description
      Added value: +"The sender's address."
    • addedOutput schema / properties / messages / items / properties / sender / type
      Added value: +"string"
    • addedOutput schema / properties / messages / items / properties / subject / description
      Added value: +"The email's subject as received."
    • addedOutput schema / properties / messages / items / properties / subject / type
      Added value: +"string"
  2. Changed1 schema field changed
    • changedInput schema / properties / message_id / description
      Previous value: -"A positive message id from list_inbox, as an integer or decimal string."New value: +"A message id from list_inbox, as a number or as the same digits in a string."
  3. Changed4 schema fields changed
    • addedInput schema / properties / message_id / anyOf
      Added value: +[
      +  {
      +    "maximum": 9223372036854776000,
      +    "minimum": 1,
      +    "type": "integer"
      +  },
      +  {
      +    "maxLength": 19,
      +    "pattern": "^0*[1-9][0-9]*$",
      +    "type": "string"
      +  }
      +]
    • changedInput schema / properties / message_id / description
      Previous value: -"A message id from list_inbox."New value: +"A positive message id from list_inbox, as an integer or decimal string."
    • removedInput schema / properties / message_id / minimum
      Removed value: -1
    • removedInput schema / properties / message_id / type
      Removed value: -"integer"
  4. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, non-destructive, closed-world behavior, so 'Reads only' adds little. However, the description goes beyond annotations by disclosing the result shape (per-message id, sender, subject, received time, category, application), the explicit absence of bodies, and the oldest-first ordering — real behavioral context the annotations do not carry.

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?

A single dense sentence that front-loads the core concept and then qualifies grouping and ordering without filler. Slight density cost in the nested fallback clause, but every phrase carries 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 single-parameter read tool with annotations and an output schema, the definition covers what the thread is, how it is scoped, how it is ordered, and what each message contains. Only the relationship to sibling tools (get_message, list_inbox) is left unstated.

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?

With one parameter at 100% schema description coverage, the schema already explains that message_id comes from list_inbox. The description does not reference the parameter at all, so it adds no meaning beyond the schema; baseline 3 applies.

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?

States a specific resource (the conversation around one email) and even defines the grouping rule: same application, falling back to same sender+subject, ordered oldest first. It is not tautological with the title, though it never names the sibling get_message, which is the natural contrast for body retrieval.

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 is only implied: the 'without bodies' clause hints that a different tool should be used when message bodies are needed, but no tool is named and there is no explicit when-to-use or when-not-to-use statement. An agent can infer context but must resolve the alternative itself.

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