Skip to main content
Glama

Mailrun Agent Identity

Read content

read_content
Read-onlyIdempotent

Continue reading content behind a content_ref from get_message, get_message_attachment, get_call or a draft. as=text pages UTF-8 text with a version-bound cursor and limit_chars (default 8000, max 32000). as=bytes returns base64 chunks by offset/max_bytes for client software to reassemble (default 1 MiB, max 4 MiB per call); do not paste bytes into the conversation. A changed or deleted source answers content_unavailable: perform a fresh authorized read.

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": {
      "content_ref": "<content_ref>"
    },
    "name": "read_content"
  }
}

Input Schema

NameRequiredDescriptionDefault
asNotext (default for text-like content) or bytes (default for binary).
cursorNoas=text: continuation cursor from the previous page.
offsetNoas=bytes: byte offset to start from.
max_bytesNoas=bytes: decoded bytes to return; clamped to the server maximum.
content_refYesOpaque reference from a prior result. Not a URL, not a credential; useless without current authorization.
limit_charsNoas=text: characters per page.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive/closed-world, and the description adds substantially more: page defaults and caps (8000/32000 chars, 1 MiB/4 MiB bytes), the base64-chunk-plus-client-reassembly contract for as=bytes, the version-bound cursor behavior, and the content_unavailable failure mode for changed or deleted sources. It also clarifies the ref is not a credential and is useless without current authorization.

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?

Four dense sentences, front-loaded with the source tools and then split cleanly by mode (text vs bytes), ending with the error contract. Every clause carries operational information; nothing is restated from the schema or annotations.

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?

For a six-parameter, no-output-schema paging tool, the definition covers return shape (UTF-8 text pages vs base64 chunks), size bounds, continuation mechanics, and failure behavior. An agent can page correctly and handle errors without further context.

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 would be 3, but the description supplies cross-parameter logic the schema does not: cursor/limit_chars apply to as=text while offset/max_bytes apply to as=bytes, plus concrete defaults and maxima. It leaves the opaque content_ref format itself to the schema, which is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb and resource: 'Continue reading content behind a content_ref', and immediately names the four sibling tools that produce such a ref (get_message, get_message_attachment, get_call, a draft). This makes the tool's role in the retrieval chain unambiguous, distinct from the getters that only return refs.

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 clearly signals the precondition (a content_ref obtained from a prior read) and rules out misuse by warning 'do not paste bytes into the conversation' and by prescribing a 'fresh authorized read' after content_unavailable. It stops short of an explicit when-not-to-use statement or a named alternative for whole-content retrieval, so it is strong but not exhaustive.

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