Skip to main content
Glama
Motorical SMTP MCP Server

Motorical SMTP MCP Server

motorical_get_error_codes

Read-onlyIdempotent

Retrieve SMTP error codes for a Motor Block with counts, diagnoses, and recommended actions to troubleshoot email delivery failures.

Instructions

SMTP error codes seen for one Motor Block, with counts and a specific diagnosis for each. Each row has the code, its count, a label and hint saying what it means and what to do, cause (the platform bounce bucket, for example recipient_invalid or policy_block_auth), retryable (temporary failures are retried by the platform), suggestedAction (none, retry, remove or investigate) and lookup. The stored code is basic (550), enhanced (5.7.1) or a bucket (200 accepted with the exact reply not recorded, which includes delivery to a Motorical-hosted mailbox; 400 and 500 when the exact code was not recorded). Counts are the same rows motorical_get_logs returns: to see the messages behind a row, call motorical_get_logs with the row lookup (smtpCode) and read smtpResponse on one message. 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_error_codes"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoISO date or datetime, inclusive
fromNoISO date or datetime, inclusive
limitNoMax distinct error codes returned
motorBlockIdNoRequired when the authorization covers more than one Motor Block

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already cover the safety profile (read-only, idempotent, closed-world), and the description still adds substantial behavior: the meaning of basic/enhanced/bucket codes (including why 200/400/500 appear), what each row field signifies, the retry semantics of the platform, and the authorization scope. The implicit constraint that motorBlockId is needed when the token spans multiple blocks is also surfaced.

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 core purpose, then the row schema, then the drill-down pointer and scope. Dense but nearly every sentence carries information; the bucket-code enumeration (200/400/500) is the wordiest part and could be tightened slightly.

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?

With no output schema, the description takes on the return-shape burden and discharges it by enumerating every row field (code, count, label/hint, cause, retryable, suggestedAction, lookup). Combined with the scope note and the escalation path to motorical_get_logs, an agent has everything needed to call and interpret this tool.

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 description coverage is 100%, so to/from/limit and the motorBlockId conditional are already documented, making 3 the baseline. The description adds meaning around rows and the 'lookup' key but says nothing extra about date semantics or how limit interacts with distinct codes beyond what the schema states.

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 and resource ('SMTP error codes seen for one Motor Block') plus the shape of the result (counts and a diagnosis per code). It distinguishes itself from nearby tools by explicitly naming motorical_get_logs as the message-level counterpart, so an agent can route without opening either 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 clear usage context: this is the aggregate-per-code view, and to see the underlying messages you call motorical_get_logs with the row's lookup (smtpCode). It also states the required OAuth scope and points to motorical_whoami for scope details. It does not explicitly exclude other analytics siblings (e.g. deliverability/anomalies), so it falls short of full when-not guidance.

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