Skip to main content
Glama

Shodan Host

shodan_host
Read-onlyIdempotent

What's exposed on IP , open ports, services, and CVEs. Returns the full Shodan host profile: ports, hostnames, org/ISP, geolocation, OS, known vulnerabilities, and a per-service banner sample. Example: shodan_host({ ip: "8.8.8.8", _apiKey: "your-key" })

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "ip": "8.8.8.8",
      "_apiKey": "your-shodan-api-key"
    },
    "name": "shodan_host"
  }
}

Input Schema

NameRequiredDescriptionDefault
ipYesIPv4 address to look up, e.g. "8.8.8.8"
_apiKeyYesShodan API key (account.shodan.io; paid membership required)
historyNoInclude historical banners (optional, default false)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "_apiKey": "your-shodan-api-key",
      +    "ip": "8.8.8.8"
      +  },
      +  {
      +    "_apiKey": "your-shodan-api-key",
      +    "history": true,
      +    "ip": "1.1.1.1"
      +  }
      +]
  2. First observed

TDQS

A3.7/5.0
Behavior4/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 adds genuinely useful behavior beyond that by spelling out the response payload (full host profile, per-service banner sample) in the absence of an output schema. Remaining gaps are error behavior and query-credit consumption.

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 answer to 'what does this return' is front-loaded in the first clause, followed by the payload inventory and a concrete example. Every sentence carries information; the only minor redundancy is restating 'open ports, services' both in the lead and in the return list.

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 no output schema, the description does the necessary work of enumerating return fields, so an agent knows what it will get back. For a three-parameter, read-only lookup that is close to sufficient; the missing pieces are sibling routing and credit/rate-limit expectations.

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%, so ip, _apiKey and history are each documented in the schema, including the paid-membership note and default-false for history. The description's only addition is a worked example call, which confirms the shape but adds no new semantic meaning. Baseline 3 applies.

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?

Opens with a specific verb-like framing ('What's exposed on IP <ip>') and enumerates the resources returned: ports, services, CVEs, hostnames, org/ISP, geolocation, OS, vulnerabilities. That is unambiguous single-host reconnaissance. It does not explicitly distinguish itself from siblings like shodan_host_count or shodan_host_search, so it stops short of a 5.

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: the required 'ip' parameter and the single-host framing suggest one-IP-at-a-time lookups, and the sibling names imply a count/search counterpart. There is no explicit statement of when to prefer this over shodan_host_count or shodan_host_search, and no note on API credit cost per lookup, which matters for Shodan.

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.