Skip to main content
Glama

SMTP Server Check

smtp_server_check
Read-onlyIdempotent

Live-probe a mail server over SMTP: connects to port 25 (or a given port), reads the banner, issues EHLO and lists advertised capabilities (STARTTLS, AUTH mechanisms, SIZE, 8BITMIME, PIPELINING), then upgrades via STARTTLS when offered and reports the TLS protocol and certificate (issuer, expiry). The server-side complement to email_deliverability_check (which reads DNS records only and never connects). No mail is sent and no relay attempt is made.

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": {
      "host": "<host>"
    },
    "name": "smtp_server_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
hostYesMail server hostname, e.g. mail.example.com — or a bare domain, in which case its lowest-priority-number MX host is probed
portNoSMTP port (default 25)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare readOnly, idempotent, non-destructive and open-world, but the description adds substantial context beyond them: the exact commands issued (EHLO, STARTTLS), what is inspected, and what is reported back (capabilities, TLS protocol version, certificate issuer and expiry). Crucially it discloses the negative behavior that annotations cannot express — no mail is sent and no relay is attempted — which is the key safety fact for an agent deciding whether to call a tool that talks to a third-party mail server.

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?

Front-loaded with the core action in the opening clause, followed by the protocol steps in execution order, then a single closing sentence that both disambiguates from the sibling and disclaims side effects. Every clause carries information; nothing is repeated from the name or title.

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?

There is no output schema, so the description must convey what comes back, and it does: advertised capabilities (STARTTLS, AUTH mechanisms, SIZE, 8BITMIME, PIPELINING), TLS protocol, and certificate issuer/expiry. Combined with the safety profile already carried by annotations, an agent has everything needed to decide and invoke correctly for a two-parameter network probe.

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%, with both host and port already documented in the schema, including the MX-fallback behavior for a bare domain. The description only echoes the port default ('port 25 (or a given port)') and adds no syntax, format, or fallback detail beyond the schema, so the baseline of 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 and resource ('Live-probe a mail server over SMTP') and then enumerates the exact protocol sequence performed: connect on port 25, read banner, issue EHLO, list capabilities, upgrade via STARTTLS, report TLS protocol and certificate. It also names the sibling it is not (email_deliverability_check, which 'reads DNS records only and never connects'), so an agent can route between them 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?

Clear context is given: use this when a live SMTP conversation is needed, as opposed to the DNS-only sibling, and it explicitly bounds scope with 'No mail is sent and no relay attempt is made.' It does not address other plausible alternatives present among siblings such as check_open_ports or ssl_cert_check, so the when-not guidance is 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.