Skip to main content
Glama
Sendmux Email Inbox API + Sending

Sendmux Email Inbox API + Sending

Official
by qubrics

Read Attachment

mailbox_read_attachment
Read-onlyIdempotent

Read an email attachment's contents by message and attachment ID: text-like files return inline text, while binary or oversized files return metadata and a fresh download link.

Instructions

Use this after finding a message attachment when you need the attachment contents. Text-like attachments are downloaded server-side and returned as text, so agents do not need a generic web_fetch tool. Binary or oversized attachments return metadata plus a fresh download link.

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>",
      "attachment_id": "<attachment_id>"
    },
    "name": "mailbox_read_attachment"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoRead mode: auto, metadata, text, or resource_link. auto inlines small text attachments.auto
mailbox_idNoMailbox public ID when the credential can access more than one mailbox.
message_idYesMessage ID containing the attachment.
attachment_idYesAttachment ID from message metadata.
max_text_bytesNoMaximum text bytes to return inline. Defaults to 262144 and is capped at 1048576.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.0.17
    • changedOutput schema / oneOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "data": {
      -        "oneOf": [
      -          {
      -            "additionalProperties": false,
      -            "properties": {
      -              "content_id": {
      -                "description": "Content ID for inline attachments, when present.",
      -                "type": [
      -                  "string",
      -                  "null"
      -                ]
      -              },
      -              "content_type": {
      -                "example": "application/pdf",
      -                "type": "string"
      -              },
      -              "disposition": {
      -                "example": "attachment",
      -                "type": [
      -                  "string",
      -                  "null"
      -                ]
      -              },
      -              "download_url": {
      -                "description": "Short-lived URL for this exact attachment. Fetch it promptly; if it expires, call the message or attachment metadata endpoint again to receive a fresh URL.",
      -                "example": "https://app.sendmux.ai/api/v1/mailbox/messages/msg_123/attachment-downloads/attref_abc123?download_token=...",
      -                "type": "string"
      -              },
      -              "filename": {
      -                "example": "invoice.pdf",
      -                "type": [
      -                  "string",
      -                  "null"
      -                ]
      -              },
      -              "id": {
      -                "description": "Attachment blob ID.",
      -                "type": "string"
      -              },
      -              "size_bytes": {
      -                "example": 12345,
      -                "type": [
      -                  "integer",
      -                  "null"
      -                ]
      -              }
      -            },
      -            "required": [
      -              "id",
      -              "filename",
      -              "content_type",
      -              "size_bytes",
      -              "disposition",
      -              "content_id"
      -            ],
      -            "type": "object"
      -          },
      -          {
      -            "additionalProperties": false,
      -            "properties": {
      -              "bytes_read": {
      -                "minimum": 0,
      -                "type": "integer"
      -              },
      -              "content_id": {
      -                "description": "Content ID for inline attachments, when present.",
      -                "type": [
      -                  "string",
      -                  "null"
      -                ]
      -              },
      -              "content_type": {
      -                "example": "application/pdf",
      -                "type": "string"
      -              },
      -              "disposition": {
      -                "example": "attachment",
      -                "type": [
      -                  "string",
      -                  "null"
      -                ]
      -              },
      -              "download_url": {
      -                "description": "Short-lived URL for this exact attachment. Fetch it promptly; if it expires, call the message or attachment metadata endpoint again to receive a fresh URL.",
      -                "example": "https://app.sendmux.ai/api/v1/mailbox/messages/msg_123/attachment-downloads/attref_abc123?download_token=...",
      -                "type": "string"
      -              },
      -              "filename": {
      -                "example": "invoice.pdf",
      -                "type": [
      -                  "string",
      -                  "null"
      -                ]
      -              },
      -              "id": {
      -                "description": "Attachment blob ID.",
      -                "type": "string"
      -              },
      -              "read_mode": {
      -                "const": "text"
      -              },
      -              "size_bytes": {
      -                "example": 12345,
      -                "type": [
      -                  "integer",
      -                  "null"
      -                ]
      -              },
      -              "text": {
      -                "type": "string"
      -              },
      -              "truncated": {
      -                "type": "boolean"
      -              }
      -            },
      -            "required": [
      -              "id",
      -              "filename",
      -              "content_type",
      -              "size_bytes",
      -              "disposition",
      -              "content_id",
      -              "read_mode",
      -              "text",
      -              "truncated",
      -              "bytes_read"
      -            ],
      -            "type": "object"
      -          },
      -          {
      -            "additionalProperties": false,
      -            "properties": {
      -              "content_id": {
      -                "description": "Content ID for inline attachments, when present.",
      -                "type": [
      -                  "string",
      -                  "null"
      -                ]
      -              },
      -              "content_type": {
      -                "example": "application/pdf",
      -                "type": "string"
      -              },
      -              "disposition": {
      -                "example": "attachment",
      -                "type": [
      -                  "string",
      -                  "null"
      -                ]
      -              },
      -              "download_url": {
      -                "description": "Short-lived URL for this exact attachment. Fetch it promptly; if it expires, call the message or attachment metadata endpoint again to receive a fresh URL.",
      -                "example": "https://app.sendmux.ai/api/v1/mailbox/messages/msg_123/attachment-downloads/attref_abc123?download_token=...",
      -                "type": "string"
      -              },
      -              "filename": {
      -                "example": "invoice.pdf",
      -                "type": [
      -                  "string",
      -                  "null"
      -                ]
      -              },
      -              "id": {
      -                "description": "Attachment blob ID.",
      -                "type": "string"
      -              },
      -              "read_mode": {
      -                "const": "resource_link"
      -              },
      -              "resource_link": {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "mime_type": {
      -                    "type": "string"
      -                  },
      -                  "name": {
      -                    "type": "string"
      -                  },
      -                  "size_bytes": {
      -                    "type": [
      -                      "integer",
      -                      "null"
      -                    ]
      -                  },
      -                  "uri": {
      -                    "type": "string"
      -                  }
      -                },
      -                "required": [
      -                  "uri",
      -                  "name",
      -                  "mime_type",
      -                  "size_bytes"
      -                ],
      -                "type": "object"
      -              },
      -              "size_bytes": {
      -                "example": 12345,
      -                "type": [
      -                  "integer",
      -                  "null"
      -                ]
      -              },
      -              "text": {
      -                "type": "null"
      -              }
      -            },
      -            "required": [
      -              "id",
      -              "filename",
      -              "content_type",
      -              "size_bytes",
      -              "disposition",
      -              "content_id",
      -              "read_mode",
      -              "text",
      -              "resource_link"
      -            ],
      -            "type": "object"
      -          }
      -        ]
      -      },
      -      "meta": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "request_id": {
      -            "type": "string"
      -          }
      -        },
      -        "type": "object"
      -      },
      -      "ok": {
      -        "const": true
      -      }
      -    },
      -    "required": [
      -      "ok",
      -      "data"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "error": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "code": {
      -            "type": "string"
      -          },
      -          "doc_url": {
      -            "type": "string"
      -          },
      -          "errors": {
      -            "items": {
      -              "additionalProperties": false,
      -              "properties": {
      -                "code": {
      -                  "type": "string"
      -                },
      -                "field": {
      -                  "type": "string"
      -                },
      -                "message": {
      -                  "type": "string"
      -                }
      -              },
      -              "required": [
      -                "field",
      -                "code",
      -                "message"
      -              ],
      -              "type": "object"
      -            },
      -            "type": "array"
      -          },
      -          "message": {
      -            "type": "string"
      -          },
      -          "param": {
      -            "type": "string"
      -          },
      -          "retryable": {
      -            "type": "boolean"
      -          }
      -        },
      -        "required": [
      -          "code",
      -          "message"
      -        ],
      -        "type": "object"
      -      },
      -      "meta": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "request_id": {
      -            "type": "string"
      -          }
      -        },
      -        "type": "object"
      -      },
      -      "ok": {
      -        "const": false
      -      }
      -    },
      -    "required": [
      -      "ok",
      -      "error"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "data": {
      +        "oneOf": [
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "content_id": {
      +                "description": "Content ID for inline attachments, when present.",
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "content_type": {
      +                "example": "application/pdf",
      +                "type": "string"
      +              },
      +              "disposition": {
      +                "example": "attachment",
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "download_url": {
      +                "description": "Short-lived URL for this exact attachment. Fetch it promptly; if it expires, call the message or attachment metadata endpoint again to receive a fresh URL.",
      +                "example": "https://app.qubrics.com/api/v1/mailbox/messages/msg_123/attachment-downloads/attref_abc123?download_token=...",
      +                "type": "string"
      +              },
      +              "filename": {
      +                "example": "invoice.pdf",
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "id": {
      +                "description": "Attachment blob ID.",
      +                "type": "string"
      +              },
      +              "size_bytes": {
      +                "example": 12345,
      +                "type": [
      +                  "integer",
      +                  "null"
      +                ]
      +              }
      +            },
      +            "required": [
      +              "id",
      +              "filename",
      +              "content_type",
      +              "size_bytes",
      +              "disposition",
      +              "content_id"
      +            ],
      +            "type": "object"
      +          },
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "bytes_read": {
      +                "minimum": 0,
      +                "type": "integer"
      +              },
      +              "content_id": {
      +                "description": "Content ID for inline attachments, when present.",
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "content_type": {
      +                "example": "application/pdf",
      +                "type": "string"
      +              },
      +              "disposition": {
      +                "example": "attachment",
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "download_url": {
      +                "description": "Short-lived URL for this exact attachment. Fetch it promptly; if it expires, call the message or attachment metadata endpoint again to receive a fresh URL.",
      +                "example": "https://app.qubrics.com/api/v1/mailbox/messages/msg_123/attachment-downloads/attref_abc123?download_token=...",
      +                "type": "string"
      +              },
      +              "filename": {
      +                "example": "invoice.pdf",
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "id": {
      +                "description": "Attachment blob ID.",
      +                "type": "string"
      +              },
      +              "read_mode": {
      +                "const": "text"
      +              },
      +              "size_bytes": {
      +                "example": 12345,
      +                "type": [
      +                  "integer",
      +                  "null"
      +                ]
      +              },
      +              "text": {
      +                "type": "string"
      +              },
      +              "truncated": {
      +                "type": "boolean"
      +              }
      +            },
      +            "required": [
      +              "id",
      +              "filename",
      +              "content_type",
      +              "size_bytes",
      +              "disposition",
      +              "content_id",
      +              "read_mode",
      +              "text",
      +              "truncated",
      +              "bytes_read"
      +            ],
      +            "type": "object"
      +          },
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "content_id": {
      +                "description": "Content ID for inline attachments, when present.",
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "content_type": {
      +                "example": "application/pdf",
      +                "type": "string"
      +              },
      +              "disposition": {
      +                "example": "attachment",
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "download_url": {
      +                "description": "Short-lived URL for this exact attachment. Fetch it promptly; if it expires, call the message or attachment metadata endpoint again to receive a fresh URL.",
      +                "example": "https://app.qubrics.com/api/v1/mailbox/messages/msg_123/attachment-downloads/attref_abc123?download_token=...",
      +                "type": "string"
      +              },
      +              "filename": {
      +                "example": "invoice.pdf",
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "id": {
      +                "description": "Attachment blob ID.",
      +                "type": "string"
      +              },
      +              "read_mode": {
      +                "const": "resource_link"
      +              },
      +              "resource_link": {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "mime_type": {
      +                    "type": "string"
      +                  },
      +                  "name": {
      +                    "type": "string"
      +                  },
      +                  "size_bytes": {
      +                    "type": [
      +                      "integer",
      +                      "null"
      +                    ]
      +                  },
      +                  "uri": {
      +                    "type": "string"
      +                  }
      +                },
      +                "required": [
      +                  "uri",
      +                  "name",
      +                  "mime_type",
      +                  "size_bytes"
      +                ],
      +                "type": "object"
      +              },
      +              "size_bytes": {
      +                "example": 12345,
      +                "type": [
      +                  "integer",
      +                  "null"
      +                ]
      +              },
      +              "text": {
      +                "type": "null"
      +              }
      +            },
      +            "required": [
      +              "id",
      +              "filename",
      +              "content_type",
      +              "size_bytes",
      +              "disposition",
      +              "content_id",
      +              "read_mode",
      +              "text",
      +              "resource_link"
      +            ],
      +            "type": "object"
      +          }
      +        ]
      +      },
      +      "meta": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "request_id": {
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "ok": {
      +        "const": true
      +      }
      +    },
      +    "required": [
      +      "ok",
      +      "data"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "error": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "code": {
      +            "type": "string"
      +          },
      +          "doc_url": {
      +            "type": "string"
      +          },
      +          "errors": {
      +            "items": {
      +              "additionalProperties": false,
      +              "properties": {
      +                "code": {
      +                  "type": "string"
      +                },
      +                "field": {
      +                  "type": "string"
      +                },
      +                "message": {
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "field",
      +                "code",
      +                "message"
      +              ],
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "message": {
      +            "type": "string"
      +          },
      +          "param": {
      +            "type": "string"
      +          },
      +          "retryable": {
      +            "type": "boolean"
      +          }
      +        },
      +        "required": [
      +          "code",
      +          "message"
      +        ],
      +        "type": "object"
      +      },
      +      "meta": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "request_id": {
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "ok": {
      +        "const": false
      +      }
      +    },
      +    "required": [
      +      "ok",
      +      "error"
      +    ],
      +    "type": "object"
      +  }
      +]
  2. Changed3 schema fields changedv1.0.8
    • addedOutput schema / $schema
      Added value: +"https://json-schema.org/draft/2020-12/schema"
    • removedOutput schema / additionalProperties
      Removed value: -true
    • addedOutput schema / oneOf
      Added value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "data": {
      +        "oneOf": [
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "content_id": {
      +                "description": "Content ID for inline attachments, when present.",
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "content_type": {
      +                "example": "application/pdf",
      +                "type": "string"
      +              },
      +              "disposition": {
      +                "example": "attachment",
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "download_url": {
      +                "description": "Short-lived URL for this exact attachment. Fetch it promptly; if it expires, call the message or attachment metadata endpoint again to receive a fresh URL.",
      +                "example": "https://app.sendmux.ai/api/v1/mailbox/messages/msg_123/attachment-downloads/attref_abc123?download_token=...",
      +                "type": "string"
      +              },
      +              "filename": {
      +                "example": "invoice.pdf",
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "id": {
      +                "description": "Attachment blob ID.",
      +                "type": "string"
      +              },
      +              "size_bytes": {
      +                "example": 12345,
      +                "type": [
      +                  "integer",
      +                  "null"
      +                ]
      +              }
      +            },
      +            "required": [
      +              "id",
      +              "filename",
      +              "content_type",
      +              "size_bytes",
      +              "disposition",
      +              "content_id"
      +            ],
      +            "type": "object"
      +          },
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "bytes_read": {
      +                "minimum": 0,
      +                "type": "integer"
      +              },
      +              "content_id": {
      +                "description": "Content ID for inline attachments, when present.",
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "content_type": {
      +                "example": "application/pdf",
      +                "type": "string"
      +              },
      +              "disposition": {
      +                "example": "attachment",
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "download_url": {
      +                "description": "Short-lived URL for this exact attachment. Fetch it promptly; if it expires, call the message or attachment metadata endpoint again to receive a fresh URL.",
      +                "example": "https://app.sendmux.ai/api/v1/mailbox/messages/msg_123/attachment-downloads/attref_abc123?download_token=...",
      +                "type": "string"
      +              },
      +              "filename": {
      +                "example": "invoice.pdf",
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "id": {
      +                "description": "Attachment blob ID.",
      +                "type": "string"
      +              },
      +              "read_mode": {
      +                "const": "text"
      +              },
      +              "size_bytes": {
      +                "example": 12345,
      +                "type": [
      +                  "integer",
      +                  "null"
      +                ]
      +              },
      +              "text": {
      +                "type": "string"
      +              },
      +              "truncated": {
      +                "type": "boolean"
      +              }
      +            },
      +            "required": [
      +              "id",
      +              "filename",
      +              "content_type",
      +              "size_bytes",
      +              "disposition",
      +              "content_id",
      +              "read_mode",
      +              "text",
      +              "truncated",
      +              "bytes_read"
      +            ],
      +            "type": "object"
      +          },
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "content_id": {
      +                "description": "Content ID for inline attachments, when present.",
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "content_type": {
      +                "example": "application/pdf",
      +                "type": "string"
      +              },
      +              "disposition": {
      +                "example": "attachment",
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "download_url": {
      +                "description": "Short-lived URL for this exact attachment. Fetch it promptly; if it expires, call the message or attachment metadata endpoint again to receive a fresh URL.",
      +                "example": "https://app.sendmux.ai/api/v1/mailbox/messages/msg_123/attachment-downloads/attref_abc123?download_token=...",
      +                "type": "string"
      +              },
      +              "filename": {
      +                "example": "invoice.pdf",
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "id": {
      +                "description": "Attachment blob ID.",
      +                "type": "string"
      +              },
      +              "read_mode": {
      +                "const": "resource_link"
      +              },
      +              "resource_link": {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "mime_type": {
      +                    "type": "string"
      +                  },
      +                  "name": {
      +                    "type": "string"
      +                  },
      +                  "size_bytes": {
      +                    "type": [
      +                      "integer",
      +                      "null"
      +                    ]
      +                  },
      +                  "uri": {
      +                    "type": "string"
      +                  }
      +                },
      +                "required": [
      +                  "uri",
      +                  "name",
      +                  "mime_type",
      +                  "size_bytes"
      +                ],
      +                "type": "object"
      +              },
      +              "size_bytes": {
      +                "example": 12345,
      +                "type": [
      +                  "integer",
      +                  "null"
      +                ]
      +              },
      +              "text": {
      +                "type": "null"
      +              }
      +            },
      +            "required": [
      +              "id",
      +              "filename",
      +              "content_type",
      +              "size_bytes",
      +              "disposition",
      +              "content_id",
      +              "read_mode",
      +              "text",
      +              "resource_link"
      +            ],
      +            "type": "object"
      +          }
      +        ]
      +      },
      +      "meta": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "request_id": {
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "ok": {
      +        "const": true
      +      }
      +    },
      +    "required": [
      +      "ok",
      +      "data"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "error": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "code": {
      +            "type": "string"
      +          },
      +          "doc_url": {
      +            "type": "string"
      +          },
      +          "errors": {
      +            "items": {
      +              "additionalProperties": false,
      +              "properties": {
      +                "code": {
      +                  "type": "string"
      +                },
      +                "field": {
      +                  "type": "string"
      +                },
      +                "message": {
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "field",
      +                "code",
      +                "message"
      +              ],
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "message": {
      +            "type": "string"
      +          },
      +          "param": {
      +            "type": "string"
      +          },
      +          "retryable": {
      +            "type": "boolean"
      +          }
      +        },
      +        "required": [
      +          "code",
      +          "message"
      +        ],
      +        "type": "object"
      +      },
      +      "meta": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "request_id": {
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "ok": {
      +        "const": false
      +      }
      +    },
      +    "required": [
      +      "ok",
      +      "error"
      +    ],
      +    "type": "object"
      +  }
      +]
  3. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, so safety is covered. The description does add useful behavior beyond them: server-side download of text attachments and metadata-plus-fresh-link fallback for binary or oversized files. It says nothing about permissions, mailbox scoping, or failure modes.

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?

Three short sentences, front-loaded with the usage trigger and followed by the two behavioral cases. The web_fetch remark earns its place by preventing a detour, and there is no filler.

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?

An output schema exists, so return-value detail is not required, and the description covers the main branching outcomes (inline text vs. metadata plus link). The remaining gap is sibling disambiguation within a very crowded attachment-tool family.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, and the description goes slightly beyond by explaining that oversized attachments degrade to a link, which is the semantics behind max_text_bytes. It does not mention the mode parameter or mailbox_id scoping, leaving those entirely to the schema.

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 clear verb and resource (read an attachment's contents) and ties it to a trigger (after finding a message attachment). It does not distinguish itself from close siblings like mailbox_get_attachment, mailbox_get_attachment_text, or mailbox_request_attachment_text, so an agent must infer which of the look-alikes to pick.

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?

Gives a clear entry condition (after locating an attachment when you need its contents) and explicitly closes off one alternative (generic web_fetch). It is silent on the real ambiguity, though: nothing says when to prefer this over get_attachment, get_attachment_text, or request_attachment_text.

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

Deploy Server

Other Tools