Skip to main content
Glama
Motorical SMTP MCP Server

Motorical SMTP MCP Server

motorical_get_logs

Read-onlyIdempotent

Search and paginate SMTP send logs for one Motor Block to trace delivery outcomes and failures. Filter by SMTP code class or exact code, recipient query, date range, and current outcome.

Instructions

Search send logs for one Motor Block. Paginate with cursor. Recipient addresses are masked unless the token carries logs.pii, which OAuth tokens never do. To find failures by cause use smtpCode: the stored code is whatever the receiving server reported, in either form (basic like 550 or enhanced like 5.7.1), so a class such as 5xx (all permanent failures), 4xx (all temporary ones) or a group such as 5.7.x (policy and reputation blocks) is usually what you want; an exact code matches only that exact form. Requires OAuth scope: read:analytics (see motorical_whoami for what it allows).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "motorical_get_logs"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoISO date or datetime, inclusive
fromNoISO date or datetime, inclusive
limitNoPage size
queryNoSpace-separated key:value terms, all of which must match: recipient:<exact address>, domain:<exact domain>, code:<an SMTP code filter in the same forms as smtpCode, no spaces>, id:<message uuid>. Text without a key: prefix is ignored; there is no subject search.
cursorNoOpaque cursor from a previous page
smtpCodeNoFilter by SMTP code, as the receiving server reported it (basic like 550 or enhanced like 5.7.1, both appear in the same logs). Forms: exact 550 or 5.7.1; a class 5xx or 4xx (5.x.x also works); a group 5.7.x; or a comma-separated list of up to 10, no spaces, e.g. 5.7.x,4xx. An invalid value is a 400 that says what is accepted
includePIINoUnmask recipient addresses. Requires the logs.pii scope, which is never granted to OAuth tokens — the API returns 403.
motorBlockIdNoRequired when the authorization covers more than one Motor Block
currentOutcomeNoFilter to one delivery outcome, e.g. delivered, bounced, deferred

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the readOnly/idempotent annotations, it discloses that recipient addresses are masked, that logs.pii is never granted to OAuth tokens, that includePII yields a 403, and that an invalid smtpCode produces a 400 naming accepted forms. These are exactly the runtime behaviors an agent needs before calling and would otherwise discover by failing.

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 purpose and pagination, then masking, then filtering advice, then scope — a sensible order. The single long smtpCode sentence is dense but every clause carries information; nothing is 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?

With 9 optional parameters, no output schema, and no required fields, the description covers the risky surfaces: PII masking, pagination, code-filter forms, and scope. Date-range semantics and query syntax are left entirely to the schema, which is reasonable given full coverage.

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 the schema already documents every parameter including the smtpCode forms and query key:value grammar. The description adds interpretive value on matching semantics (exact code matches only that exact form) but largely restates what the smtpCode schema entry already says, so the baseline 3 is appropriate.

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?

Opens with a specific verb and resource plus scope: 'Search send logs for one Motor Block', and the pagination sentence states the cursor model. It distinguishes itself from the message-level siblings implicitly by being a search over logs, though it never names which sibling to use for a single message lookup.

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 real usage advice for the hardest parameter: use smtpCode classes (5xx/4xx) or groups (5.7.x) rather than exact codes, and explains why ('the stored code is whatever the receiving server reported'). Also states the required scope read:analytics and points to motorical_whoami. It stops short of saying when to use this tool versus e.g. motorical_get_message_events.

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