Skip to main content
Glama

shodan_stats

Read-onlyIdempotent

Fetches aggregated Shodan search statistics by query and optional facets to analyze exposed hosts and service distributions.

Instructions

Get aggregated statistics for a Shodan query.

Input Schema

NameRequiredDescriptionDefault
queryYes
facetsNo
api_keyNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.5

TDQS

B3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and openWorldHint=true, so safety and idempotency are covered. The description adds only that results are 'aggregated statistics,' without disclosing rate limits, authentication needs, or whether facets affect the shape of the response.

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?

A single front-loaded sentence with no wasted words. It states the action and output type immediately, which is appropriate for a short tool description.

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

Completeness2/5

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

For a three-parameter tool with 0% schema coverage and no output schema, the description is too thin. It omits what facets do, how api_key is supplied, and what the aggregated output looks like, leaving the agent to guess from parameter names.

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

Parameters2/5

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

Schema description coverage is 0%, so the description carries the burden for all three parameters. It hints that 'query' is a Shodan query, but does not explain 'facets' (central to aggregated stats) or 'api_key', leaving most parameter semantics undocumented.

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 ('Get') and resource ('aggregated statistics for a Shodan query'), which makes clear this returns summary/facet data rather than raw search results. It does not explicitly distinguish itself from siblings like shodan_search or shodan_host_info, but the aggregation framing is enough to infer the difference.

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

Usage Guidelines2/5

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

There is no guidance on when to use this instead of shodan_search or shodan_host_info, nor any mention of prerequisites such as an API key. The only implied usage is 'use this for stats,' which an agent could infer from the name alone.

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

Deploy Server

Other Tools