Skip to main content
Glama

MTA-STS check

check_mta_sts
Read-onlyIdempotent

Check a domain's MTA-STS policy, which forces encrypted delivery of incoming mail: whether the _mta-sts record exists and the policy file loads, and its mode (testing, enforce or none). Returns pass, warn or fail, the record as published, what was found, how to fix it, and a guide link.

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": {
      "domain": "<domain>"
    },
    "name": "check_mta_sts"
  }
}

Input Schema

NameRequiredDescriptionDefault
domainYesThe domain to check, e.g. example.com. A URL or email address also works.

Output Schema

NameRequiredDescriptionDefault
totalYesAlways 1: one record was checked.
domainYesThe domain that was checked.
passedYes1 if the record passed, otherwise 0.
recordsYesOne row for the record checked: pass/warn/fail, the record as published, what was found, the fix and a guide link.
toolUrlYesThe same check as a free web tool on pipefire.ai.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedOutput schema / properties / passed / description
      Previous value: -"How many records passed."New value: +"1 if the record passed, otherwise 0."
    • addedOutput schema / properties / records / description
      Added value: +"One row for the record checked: pass/warn/fail, the record as published, what was found, the fix and a guide link."
    • changedOutput schema / properties / total / description
      Previous value: -"How many records were checked."New value: +"Always 1: one record was checked."
  2. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "domain": {
      +      "description": "The domain that was checked.",
      +      "type": "string"
      +    },
      +    "passed": {
      +      "description": "How many records passed.",
      +      "type": "integer"
      +    },
      +    "records": {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "finding": {
      +            "description": "What was found, in one sentence.",
      +            "type": "string"
      +          },
      +          "fix": {
      +            "description": "What to change. Empty when nothing needs doing.",
      +            "type": "string"
      +          },
      +          "guide": {
      +            "description": "Pipefire guide that explains this record.",
      +            "type": "string"
      +          },
      +          "record": {
      +            "description": "Which record: MX, SPF, DKIM, DMARC, BIMI or MTA-STS.",
      +            "type": "string"
      +          },
      +          "state": {
      +            "enum": [
      +              "pass",
      +              "warn",
      +              "fail"
      +            ],
      +            "type": "string"
      +          },
      +          "value": {
      +            "description": "The record as published, or null if there is none.",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          }
      +        },
      +        "required": [
      +          "record",
      +          "state",
      +          "value",
      +          "finding",
      +          "fix",
      +          "guide"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "toolUrl": {
      +      "description": "The same check as a free web tool on pipefire.ai.",
      +      "type": "string"
      +    },
      +    "total": {
      +      "description": "How many records were checked.",
      +      "type": "integer"
      +    }
      +  },
      +  "required": [
      +    "domain",
      +    "passed",
      +    "total",
      +    "records",
      +    "toolUrl"
      +  ],
      +  "type": "object"
      +}
  3. First observed

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, openWorld, and non-destructive, so the safety profile is covered. The description contributes the evaluation semantics (pass/warn/fail verdicts and the testing/enforce/none modes), but says nothing about permissions, rate limits, or caveats, and part of the return-value detail is redundant with the existing output schema.

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?

It is a single dense but front-loaded sentence that leads with the purpose and then lists what is verified and returned; nearly every clause carries information. Slight redundancy comes from describing return values that the output schema already covers.

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 one fully documented parameter, rich annotations, and an output schema, the description supplies enough context to call the tool correctly. The only gap is guidance on when to prefer this check over related email-security checks.

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?

The single 'domain' parameter has 100% schema description coverage, and the schema already explains that URLs and email addresses are accepted. The description adds no additional parameter meaning, 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?

The description names a specific verb and resource ('Check a domain's MTA-STS policy') and then enumerates the concrete artifacts examined: the _mta-sts record, the policy file load, and the mode. That level of specificity separates it from siblings like check_dmarc or check_spf without needing to name them.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied: an agent can infer this belongs to an email-security diagnostic flow, but the description gives no explicit when-to-use, prerequisites, or when a different check is more appropriate. No exclusions or alternatives are stated.

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.