Skip to main content
Glama
w0h1v

mcp-shodan

by w0h1v

shodan_search

Read-only

Search Shodan's database for internet-connected devices and retrieve details on services, vulnerabilities, geographic distribution, and country-based statistics using advanced filters.

Instructions

Search Shodan's database of internet-connected devices. Returns detailed information about matching devices including services, vulnerabilities, and geographic distribution. Supports advanced search filters and returns country-based statistics.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesSearch query for Shodan.
max_resultsNoMaximum results to return.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.0.0
    • addedInput schema / $schema
      Added value: +"http://json-schema.org/draft-07/schema#"
    • addedInput schema / additionalProperties
      Added value: +false
  2. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already carry the read-only safety profile (readOnlyHint=true, openWorldHint=true), lowering the burden. The description adds value by specifying what results contain (services, vulnerabilities, geographic distribution, country statistics), but it does not disclose operational traits such as API-key requirements or rate limits that matter for a Shodan-backed search.

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?

Three sentences, front-loaded with the primary purpose. Minor redundancy exists in listing return types twice ('services, vulnerabilities, and geographic distribution' and 'country-based statistics'), but overall there is no wasted verbiage.

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?

With no output schema, the description correctly takes on explaining return content, which it does (services, vulnerabilities, geo distribution). However, it omits operational essentials for a network-scanning API—authentication requirements and result pagination—and offers only vague filter syntax guidance, leaving an agent under-informed for a moderately complex tool.

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 both query and max_results are already documented. The description adds only a marginal hint that query supports advanced filters, without syntax or examples. This matches the baseline 3 for high-coverage schemas.

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 ('Search Shodan's database of internet-connected devices') and describes what it returns. It implicitly distinguishes from the lookup siblings (ip_lookup, cve_lookup, etc.) by being a filter/statistics search rather than a single-entity lookup, though this differentiation is not made explicit.

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?

The mention of 'advanced search filters' and 'country-based statistics' implies this is for broad exploratory searches rather than targeted lookups, but no alternative tool is named and no when-not-to-use conditions are given. An agent must infer the boundary against the six lookup siblings.

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