Skip to main content
Glama
safe-ssh-mcp

safe-ssh-mcp

by Areso

get_dns_lookup

Read-only

Resolve hostnames or IPs as the remote host does with getent, and view /etc/resolv.conf; optionally query DNS directly with dig for a specific record type or server.

Instructions

Resolves a name or IP as apps on the host do (getent), and shows /etc/resolv.conf. use_dig=True asks DNS directly; record_type and server need it.

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

Input Schema

NameRequiredDescriptionDefault
hostYes
nameYes
portNo
userYes
serverNo
timeoutNo
use_digNo
key_pathNo
record_typeNoA
password_envNo
accept_new_hostkeyNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.4.0
    • removedInput schema / properties / password
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "string"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null
      -}
    • addedInput schema / properties / password_env
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null
      +}
    • addedInput schema / properties / record_type / enum
      Added value: +[
      +  "A",
      +  "AAAA",
      +  "CNAME",
      +  "MX",
      +  "NS",
      +  "TXT",
      +  "SOA",
      +  "PTR",
      +  "SRV",
      +  "CAA"
      +]
  2. Changed1 schema field changedv0.3.3
    • changedInput schema / properties / timeout / default
      Previous value: -20New value: +60
  3. Addedv0.2.0

TDQS

A3.7/5.0
Behavior3/5

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

readOnlyHint=true already covers the safety profile, so the description only needs to add context, and it does: it discloses that resolution happens on the target host as applications see it and that resolv.conf is returned. It says nothing about the SSH/auth implications of host/user/key_path/password_env or about failure behavior when a name does not resolve.

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, no waste, and the primary behavior is front-loaded before the mode switch and its parameter dependency.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need not be explained, and the dig-vs-getent distinction is covered. For an 11-parameter SSH-based tool, however, the auth parameters and connection failure semantics are unaddressed, leaving meaningful gaps.

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% across 11 parameters, so the description carries the full burden and only covers three: use_dig, record_type, and server, with the genuinely useful dependency rule that the latter two require use_dig=True. The eight remaining parameters, including the auth-related key_path and password_env and the timeout/port behavior, are left undocumented in both schema and description.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb+resource ("Resolves a name or IP") and adds the two distinct outputs: getent-style host resolution and the contents of /etc/resolv.conf. This is enough to separate it from resolution-adjacent siblings like get_ip_addr, though it never names an alternative explicitly.

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?

Gives a clear mode-selection rule: default behavior mimics on-host resolution, while use_dig=True queries DNS directly. No when-not-to-use or sibling routing is stated, so it stops short of a 5.

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