Skip to main content
Glama

DKIM record generator

generate_dkim_record
Read-onlyIdempotent

Format a DKIM public key as the TXT record to publish at selector._domainkey.yourdomain. Returns the DNS host and the TXT value to paste, plus any warnings. It does not change DNS.

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": {
      "selector": "<selector>",
      "publicKey": "<publicKey>"
    },
    "name": "generate_dkim_record"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyTypeNoKey type: rsa (default, what most providers use) or ed25519.
selectorYesThe DKIM selector your email provider gave you, e.g. google or s1. The record goes at <selector>._domainkey.<domain>.
publicKeyYesThe DKIM public key your email provider shows in its DKIM settings. Paste it as given, with or without the BEGIN/END PUBLIC KEY lines.

Output Schema

NameRequiredDescriptionDefault
hostYesWhere to publish it: the DNS name (host) of the TXT record.
typeYes
valueYesThe record value to paste into DNS.
toolUrlYesThe same check as a free web tool on pipefire.ai.
warningsYesThings to check before publishing, such as nearing the SPF 10-lookup limit. Empty when there are none.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / publicKey / description
      Previous value: -"The public key from your email provider, PEM (-----BEGIN PUBLIC KEY-----) or bare base64."New value: +"The DKIM public key your email provider shows in its DKIM settings. Paste it as given, with or without the BEGIN/END PUBLIC KEY lines."
    • addedOutput schema / properties / warnings / description
      Added value: +"Things to check before publishing, such as nearing the SPF 10-lookup limit. Empty when there are none."
  2. Changed4 schema fields changed
    • addedInput schema / properties / keyType / description
      Added value: +"Key type: rsa (default, what most providers use) or ed25519."
    • changedInput schema / properties / publicKey / description
      Previous value: -"The public key, PEM or bare base64."New value: +"The public key from your email provider, PEM (-----BEGIN PUBLIC KEY-----) or bare base64."
    • addedInput schema / properties / selector / description
      Added value: +"The DKIM selector your email provider gave you, e.g. google or s1. The record goes at <selector>._domainkey.<domain>."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "host": {
      +      "description": "Where to publish it: the DNS name (host) of the TXT record.",
      +      "type": "string"
      +    },
      +    "toolUrl": {
      +      "description": "The same check as a free web tool on pipefire.ai.",
      +      "type": "string"
      +    },
      +    "type": {
      +      "const": "TXT",
      +      "type": "string"
      +    },
      +    "value": {
      +      "description": "The record value to paste into DNS.",
      +      "type": "string"
      +    },
      +    "warnings": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "host",
      +    "type",
      +    "value",
      +    "warnings",
      +    "toolUrl"
      +  ],
      +  "type": "object"
      +}
  3. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds value by disclosing output content (DNS host, TXT value to paste, warnings) and explicitly restating that no DNS changes occur, removing the main ambiguity an agent might have about side effects.

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?

Two short sentences, front-loaded with the action and target, followed by the return summary and the non-mutating caveat. Nothing is wasted or padded.

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 an output schema present and full parameter coverage, the description needn't explain return values, and its scope statement closes the main gap for a low-complexity generator. It could add a brief note on which key type to prefer, but everything essential for correct invocation is available across description, schema and annotations.

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%, including an explanation of the selector placement and key type enum, so the schema carries the parameter burden. The description only echoes the selector-to-host mapping already in the schema and says nothing about the rsa/ed25519 choice, so the 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?

The description states a specific verb and resource: format a DKIM public key into the TXT record to publish at selector._domainkey.<domain>. It also implicitly distinguishes this from the check_* siblings by framing the tool as a record generator rather than a validator, so an agent can tell what it produces 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 Guidelines3/5

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

Usage is implied by 'the TXT record to publish' and reinforced by 'It does not change DNS', which tells the agent this is a preparation step, not a live DNS mutation. However, no alternatives are named (e.g. check_dkim for verifying an existing record), so the when-not guidance is left to inference.

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.