Skip to main content
Glama
Motorical SMTP MCP Server

Motorical SMTP MCP Server

motorical_wait_for_outcome

Read-onlyIdempotent

Wait for a real email send to reach its actual delivery outcome instead of only the 202 acceptance; if still pending, retry with the same taskId after retryAfterMs.

Instructions

Wait for a real send's actual delivery outcome (not just the 202 acceptance). Bounded server-side wait with backoff, capped under typical client timeouts. If the result is still_pending, wait retryAfterMs and call this again with the same taskId. Requires OAuth scope: read:analytics (see motorical_whoami for what it allows).

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": {
      "taskId": "<taskId>"
    },
    "name": "motorical_wait_for_outcome"
  }
}

Input Schema

NameRequiredDescriptionDefault
taskIdYesFrom motorical_send_email's nextAction after a real (non-dryRun) send
includePIINoReturn unmasked recipient addresses. Requires the logs.pii scope; default false (masked).

Output Schema

NameRequiredDescriptionDefault
resultNo
statusYes
retryAfterMsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Goes well beyond the annotations: it discloses that the wait is server-side and bounded with backoff, deliberately capped under typical client timeouts, and that a still_pending result is a normal non-terminal answer with a retryAfterMs hint. It also surfaces an auth prerequisite (read:analytics scope, pointing to motorical_whoami), which annotations do not cover. It stops short of describing what the terminal outcome values look like, but the output schema carries that.

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 short sentences, front-loaded with the differentiating purpose, then behavior, then the retry rule, then the auth prerequisite. No filler and no repetition of schema or annotation content.

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?

Given an output schema exists, the definition supplies everything an agent needs to call this correctly: the source of taskId, the bounded-wait behavior, the pending/retry loop, and the required scope. Only the set of terminal outcome values is left to the output schema, which is reasonable.

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%, so both taskId and includePII are already documented in structured form, including the logs.pii scope requirement for unmasking. The description adds only the retry rule (reuse the same taskId), which is useful but marginal; baseline 3 applies.

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 (wait) and a specific resource (a real send's actual delivery outcome), and explicitly distinguishes this from the 202 acceptance returned by the send call. An agent can tell this is the follow-up poll for a send, not a generic status/logs lookup, without opening the 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?

Clearly scopes use to real (non-dryRun) sends and gives an explicit retry protocol: if the result is still_pending, wait retryAfterMs and call again with the same taskId. It does not name a sibling alternative (e.g. motorical_get_send_status or motorical_get_message_events) for agents that want a non-blocking check, so the when-not guidance is implicit.

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