Skip to main content
Glama

messages_source

The full MIME source (every header and both body parts) exactly as handed to SMTP — what the lead actually received, including footer, signature and the quoted thread, which body does not contain. headers is the parsed header list and text / html the decoded body parts (html is null for a text-only message). Headers the mail server adds after us (DKIM-Signature, Received) are not included. Stored for messages sent after 2026-10-28; 404 for anything not sent (check has_source on the message).

Method: GET /api/v1/workspaces/{workspace_sqid}/messages/{sqid}/source/

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": {
      "sqid": "<sqid>"
    },
    "name": "messages_source"
  }
}

Input Schema

NameRequiredDescriptionDefault
sqidYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so well: it discloses exactly what content is included (footer, signature, quoted thread), what is excluded (DKIM-Signature and Received added after sending), the storage cutoff, the 404 failure mode, and the HTTP method. That is unusually complete behavioral context for a read tool.

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?

Front-loaded with the core purpose, then the return shape, then exclusions, then constraints — no sentence is filler. The denser return-field explanation is justified because no output schema exists.

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

Completeness5/5

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

No output schema exists, so the description takes on the job of explaining the return fields (`headers`, `text`, `html`, and `html` being null for text-only), and it does. Combined with the storage window and error behavior, an agent has what it needs to call and interpret this correctly.

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 coverage is 0% for the single `sqid` parameter, and the description only reveals its meaning indirectly through the URL template and the note to check `has_source` on the message. It never states the identifier format or that `sqid` is the message identifier distinct from the workspace identifier in the path.

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 resource (full MIME source, every header and both body parts as handed to SMTP) and sharply distinguishes it from the `body` field, which it says lacks footer, signature and quoted thread. It does not distinguish itself from nearby siblings such as messages_get or messages_preview, so it stops short of a 5.

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

Usage Guidelines4/5

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

It gives concrete use conditions: only for messages sent after 2026-10-28, 404 for anything not sent, and a pre-check via `has_source` on the message. It never names an alternative tool to use instead, which keeps it below 5.

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.