Skip to main content
Glama

Fluxmail Cloud

Read email body

get_email_body
Read-only

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 changed
    • 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. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "data": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "format": {
      +          "type": "string"
      +        },
      +        "nextOffset": {
      +          "type": "number"
      +        },
      +        "offset": {
      +          "type": "number"
      +        },
      +        "text": {
      +          "type": "string"
      +        },
      +        "totalChars": {
      +          "type": "number"
      +        }
      +      },
      +      "required": [
      +        "format",
      +        "text",
      +        "offset",
      +        "totalChars"
      +      ],
      +      "type": "object"
      +    }
      +  },
      +  "required": [
      +    "data"
      +  ],
      +  "type": "object"
      +}
  3. Changed2 schema fields changed
    • 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
  4. Changed15 schema fields changed
    • changedInput schema / $schema
      Previous value: -"https://json-schema.org/draft/2020-12/schema"New value: +"http://json-schema.org/draft-07/schema#"
    • addedInput schema / properties / accountId / anyOf
      Added value: +[
      +  {
      +    "minLength": 1,
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / accountId / description
      Added value: +"Account to operate on. Optional when exactly one account is connected."
    • removedInput schema / properties / accountId / maxLength
      Removed value: -512
    • 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"
    • removedInput schema / properties / messageId / maxLength
      Removed value: -512
    • addedInput schema / properties / offset / anyOf
      Added value: +[
      +  {
      +    "minimum": 0,
      +    "type": "integer"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / offset / maximum
      Removed value: -9007199254740991
    • removedInput schema / properties / offset / minimum
      Removed value: -0
    • removedInput schema / properties / offset / type
      Removed value: -"integer"
  5. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  6. Added

TDQS

B3.3/5.0
Behavior3/5

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

The annotations already declare readOnlyHint=true, openWorldHint=false and destructiveHint=false, so the safety profile is covered. The description adds the meaningful behavioral fact that reads are bounded/truncated and must be continued, but it does not say what happens when the offset exceeds the body length, whether truncation is signalled, or that maxChars is capped at 50000.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences, front-loaded with the core action and followed by the one operational instruction that matters. Nothing is padded or redundant.

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?

An output schema exists, so the description needn't explain return values, and the pagination hint covers the main non-obvious workflow. Still, for a 5-parameter tool with under-half schema coverage, the description leaves offset/maxChars semantics and truncation behavior underspecified.

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 offset and maxChars are documented nowhere; the description's 'bounded portion' vaguely gestures at maxChars and 'nextOffset' at offset but supplies no bounds, defaults, or format. It also refers to a 'nextOffset' token that does not exist as an input parameter name, which could confuse an agent matching it against the schema's 'offset'.

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 verb and resource: reads a bounded portion of one email body. This implicitly distinguishes it from the sibling get_email (message metadata) and download_attachment, but the description never names those siblings or makes the distinction explicit.

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 phrase 'Use nextOffset to continue' gives usable guidance for the pagination loop, which is the main usage decision here. However, there is no guidance on when to prefer this over get_email or get_thread, nor any note on choosing text vs html bodyFormat.

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