Skip to main content
Glama

Mailrun Agent Identity

Pause or resume the email agent on a thread

set_thread_agent
Idempotent

Pause (paused true) or resume (paused false) the hosted email agent on one thread of the identity, for example while a person handles it; the agent does not answer that thread until it is resumed. Allowed in any mode. The thread must exist on the identity (thread ids from list_threads).

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": {
      "identity_id": "<identity_id>",
      "thread_id": "<thread_id>",
      "paused": "<paused>"
    },
    "name": "set_thread_agent"
  }
}

Input Schema

NameRequiredDescriptionDefault
pausedYestrue pauses the agent on this thread; false resumes it.
thread_idYesThread id from list_threads.
identity_idYesIdentity id from list_identities.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare non-readOnly, idempotent, non-destructive, so the safety bar is partly covered. The description adds genuinely new behavior: the agent will not answer that thread until resumed, and the thread must exist on the identity. It stops short of describing return values or failure behavior for a nonexistent thread, but the effect of the call is well disclosed.

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?

Front-loaded with the action and parameter mapping, then prerequisites; every clause (human-handoff example, mode allowance, thread existence) contributes. It is a dense run-on with semicolons rather than cleanly separated sentences, which slightly hurts scanability.

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?

For a 3-parameter idempotent toggle with full schema coverage and no output schema, the description covers purpose, effect, mode, and preconditions. Only minor gaps remain, such as what happens if the identity has no hosted agent or how an invalid thread id is reported.

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 100% and each parameter already carries a description, so the schema does the heavy lifting. The description restates the paused mapping and points to list_threads for thread ids, adding only minor cross-reference value beyond the schema.

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?

States a specific verb pair (pause/resume), the exact resource (the hosted email agent on one thread of the identity), and the parameter mapping (paused true/false) up front. An agent can distinguish this from get_email_agent, update_email_agent, or get_thread without opening a schema.

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?

Gives a concrete motivating scenario ("while a person handles it") and a mode constraint ("Allowed in any mode"), plus the precondition that the thread must exist. It does not name an explicit alternative for related agent-configuration needs, but the context for use is clear.

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