Skip to main content
Glama

DNS history

dnsHistory
Read-onlyIdempotent

Get the historical DNS records of a domain, showing how its A, MX, NS and other records changed over time. Use this for investigations and migrations: earlier hosting IPs (for example the origin IP behind a CDN), past mail servers, or name server changes. For the current records only use dnsLookup. For ownership changes use whoisHistory. Costs 2 credits per page. Returns past records, each with the dates it was first and last seen; sort=desc with sortBy=lastSeen puts the most recent first. Results are paginated: raise page to get more, and filter by type to reduce output. A lookup that runs out of time returns a timeout (HTTP 408), so an empty list really means no recorded history. Behavior: read-only. Makes one request to the WhoisFreaks API for your WhoisFreaks account (identified by the WHOISFREAKS_API_KEY environment variable or, on the hosted server, by the API key sent with the request or the account connected with OAuth) and uses that account's API credits; nothing is created or changed. If the call fails, the result is a short message instead of data, for example: the API key was refused (invalid, or plan or credits used up) with what to do next, domain extension not supported (HTTP 403), no data found (HTTP 404), or rate limit reached (HTTP 429).

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": {
      "domainName": "<domainName>"
    },
    "name": "dnsHistory"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoPage number for paginated results. Default: 1
sortNoSort the records by sortBy, ascending or descending. Omit for unsorted results.
typeNoRecord types to return: 'all' (the default), one type such as A, or a comma-separated list such as a,mx,ns. Supported: A, AAAA, MX, NS, CNAME, SOA, TXT.
formatNoResponse format. Default: json
sortByNoDate that sort orders by. Only used together with sort. Default: lastSeen
domainNameYesDomain name to retrieve historical DNS records for. Example: whoisfreaks.com

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / sort
      Added value: +{
      +  "description": "Sort the records by sortBy, ascending or descending. Omit for unsorted results.",
      +  "enum": [
      +    "asc",
      +    "desc"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / sortBy
      Added value: +{
      +  "description": "Date that sort orders by. Only used together with sort. Default: lastSeen",
      +  "enum": [
      +    "firstSeen",
      +    "lastSeen"
      +  ],
      +  "type": "string"
      +}
  2. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, yet the description adds substantial behavior beyond them: 2 credits per page, a single WhoisFreaks API request billed to the caller's account, pagination mechanics, and specific failure semantics (408 timeout means no history vs. empty list; 403 unsupported extension; 404 no data; 429 rate limit) with error text returned instead of data. This is exactly the extra context annotations cannot convey.

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 purpose, then routing, then cost/pagination, then the behavior-and-errors block; each section is scannable and most sentences carry unique information. It runs long and the parenthetical on API-key/OAuth resolution is heavier than needed for call selection, but nothing is seriously redundant.

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 compensates by describing the return shape (past records with firstSeen/lastSeen dates) and the failure shape (short message with next steps). Combined with cost, pagination, and the timeout caveat, an agent has everything needed to call it correctly and interpret results.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description genuinely adds meaning: it explains the interaction of sort=desc with sortBy=lastSeen to get most-recent-first, that raising page yields more results, and that filtering by type reduces output size. Only modest gaps remain (e.g. it doesn't clarify format=xml behavior beyond the schema).

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 ('Get the historical DNS records of a domain') plus the concrete shape of the data ('how its A, MX, NS and other records changed over time'). It explicitly separates itself from dnsLookup (current records) and whoisHistory (ownership changes), so an agent can pick it without opening sibling schemas.

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

Usage Guidelines5/5

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

Gives a named use-case list ('investigations and migrations: earlier hosting IPs ... past mail servers, or name server changes') and two explicit routing rules to alternatives: dnsLookup for current records, whoisHistory for ownership changes. When-to-use and when-not-to-use are both present.

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.

Resources