Skip to main content
Glama

Read email body

get_email_body
Read-only

Read a limited portion of an email body, then use nextOffset to fetch subsequent parts when the message is too large to load at once.

Instructions

Read a bounded portion of one email body. Use nextOffset to continue.

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": {
      "messageId": "<messageId>",
      "bodyFormat": "<bodyFormat>"
    },
    "name": "get_email_body"
  }
}

Input Schema

NameRequiredDescriptionDefault
offsetNo
maxCharsNo
accountIdNoAccount to operate on. Optional when exactly one account is connected.
messageIdYes
bodyFormatYesThe body part to read

Output Schema

NameRequiredDescriptionDefault
dataYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.24.0
    • addedInput schema / properties / bodyFormat
      Added value: +{
      +  "description": "The body part to read",
      +  "enum": [
      +    "text",
      +    "html"
      +  ],
      +  "type": "string"
      +}
    • removedInput schema / properties / format
      Removed value: -{
      -  "enum": [
      -    "text",
      -    "html"
      -  ],
      -  "type": "string"
      -}
    • changedInput schema / required
      Previous value: -[
      -  "messageId",
      -  "format"
      -]New value: +[
      +  "messageId",
      +  "bodyFormat"
      +]
  2. Changed2 schema fields changedv0.19.0
    • changedInput schema / properties / accountId / anyOf
      Previous value: -[
      -  {
      -    "minLength": 1,
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "maxLength": 512,
      +    "minLength": 1,
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / messageId / maxLength
      Added value: +512
  3. Changed10 schema fields changedv0.15.0
    • addedInput schema / properties / accountId / anyOf
      Added value: +[
      +  {
      +    "minLength": 1,
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / accountId / minLength
      Removed value: -1
    • removedInput schema / properties / accountId / type
      Removed value: -"string"
    • addedInput schema / properties / maxChars / anyOf
      Added value: +[
      +  {
      +    "maximum": 50000,
      +    "minimum": 1,
      +    "type": "integer"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / maxChars / maximum
      Removed value: -50000
    • removedInput schema / properties / maxChars / minimum
      Removed value: -1
    • removedInput schema / properties / maxChars / type
      Removed value: -"integer"
    • addedInput schema / properties / offset / anyOf
      Added value: +[
      +  {
      +    "minimum": 0,
      +    "type": "integer"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / offset / minimum
      Removed value: -0
    • removedInput schema / properties / offset / type
      Removed value: -"integer"
  4. Changed1 schema field changedv0.11.1
    • removedOutput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
  5. Addedv0.11.0

TDQS

C2.9/5.0
Behavior3/5

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

The annotations already establish that this is a safe read-only operation. The description adds that the body is read in bounded portions and can be continued, but it does not clarify truncation defaults, maximum sizes, or error behavior, and it uses 'nextOffset' while the schema has an 'offset' parameter.

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?

The description is very short and front-loads the purpose. The second sentence is efficient but refers to 'nextOffset' rather than the schema's 'offset', creating avoidable confusion.

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

Completeness2/5

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

The tool has five parameters and only partial schema description coverage, so the description needs to clarify paging and body-size behavior. It does not adequately do so and misnames the continuation parameter, leaving an agent unable to confidently page through a body from the description alone.

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 only 40%, so the description should help explain offset, maxChars, messageId, and bodyFormat. Instead it names 'nextOffset', which is not in the schema, and gives no meaningful semantics for the existing paging or size parameters.

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 description states a specific verb and resource: reading a bounded portion of one email body. It does not explicitly distinguish this from sibling tools such as get_email or get_thread, but the body-only scope is reasonably clear.

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

Usage Guidelines2/5

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

The only usage guidance is 'Use nextOffset to continue', which addresses pagination but not when to choose this tool over get_email or get_thread. It also gives no guidance on bodyFormat selection or account handling.

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