Skip to main content
Glama

tm_verify_domain_dns

DestructiveIdempotent

Verifies a domain by checking its DNS TXT record against the verification token; returns 400 on mismatch to enable immediate failure in CI flows.

Instructions

Run the DNS-TXT verification check on a previously-added domain.

The server looks up the TXT record at _trafficmorph-verify.<domain> and matches it against the verificationToken issued by :func:tm_add_domain. On match, the domain flips to verified=true and becomes usable as a profile target.

On miss the server returns 400 (rather than a polling- style 200 "still pending"). That's deliberate — CI flows fail fast on misconfigured DNS instead of looping forever. The 400 error message includes the expected TXT name + token, so the AI host can read it back to the user verbatim for them to copy into their DNS provider.

Success response is the same VerifiedDomainResponse shape as :func:tm_add_domain, now with verified=true, verifiedAt populated, and verificationMethod="DNS" (the server's stored value — uppercase per DomainVerificationService.markVerified L112/L148/L183; other documented values are "HTTP" and "ADMIN"). Pair with :func:tm_list_domains after a successful call to confirm the flag flipped.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
domain_idYes
Behavior4/5

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

Annotations already provide idempotentHint: true and destructiveHint: true. The description adds valuable behavioral details: the 400 error on miss (deliberate for fast failure), response shape with verified=true, verifiedAt, verificationMethod='DNS', and specific code references. This goes beyond annotations.

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?

The description is well-structured with clear sections and bullet points. It is longer than necessary but each sentence adds value, including error handling details and response shape. Could be slightly more concise, but effective.

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?

Given one parameter, no output schema, and annotations, the description covers the verification process, error conditions, response details, and integration with other tools (tm_add_domain, tm_list_domains). It is fully complete for an AI agent to use correctly.

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 0%, so description must compensate. It explains the domain must be previously added via tm_add_domain and implies domain_id is the identifier, but does not explicitly describe the parameter's meaning or constraints beyond that. It adds marginal value over the schema's 'integer' type.

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 clearly states it 'Run the DNS-TXT verification check on a previously-added domain.' It uses specific verb ('verify') and resource ('domain'), and explicitly distinguishes from sibling tm_verify_domain_http by specifying DNS method.

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?

The description provides explicit context: run after tm_add_domain, and pair with tm_list_domains to confirm. It explains the 400 error behavior for CI flows. However, it does not explicitly state when not to use this tool or compare with alternatives beyond naming tm_verify_domain_http as a sibling.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/trafficmorph-gif/tm-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server