Skip to main content
Glama

fofa_stats

Read-onlyIdempotent

Aggregate official FofaMap dimensions for a query, returning the top results (default 5) while excluding product data to summarize asset statistics.

Instructions

Aggregate official dimensions. The published contract is the top 5. product cannot be aggregated. Wait 5 seconds between calls.

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": {
      "query": "<query>",
      "fields": "<fields>"
    },
    "name": "fofa_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
sizeNo
queryYes
fieldsYes

Output Schema

NameRequiredDescriptionDefault
dataNo
summaryYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.1

TDQS

C2.6/5.0
Behavior3/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 genuinely adds behavior the annotations do not: a 5-second inter-call throttle, a top-5 publication cap, and a field exclusion (product). However, it never says whether the aggregation is over the whole index or the query result set, which is the behavior an agent most needs.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is short and front-loads the verb, which is good, but the brevity comes from ellipsis rather than economy: "official dimensions" and "the published contract" are unexplained shorthand that force guesswork. Four clipped fragments do not form a coherent instruction.

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?

An output schema exists, so return values need not be described, but with 0% parameter coverage and a cryptic one-line description the agent has no way to construct a correct query or know which fields are legal. For a tool with two required parameters this is under-specified.

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% across three parameters, so the description must carry the burden and largely does not. "The published contract is the top 5" is a partial hint about size (whose schema default is 5), and "product cannot be aggregated" hints at an invalid fields value, but query and the rest of fields remain unexplained.

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

Purpose3/5

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

"Aggregate official dimensions" names an operation (aggregation) but leaves "official dimensions" undefined, so an agent cannot tell whether this aggregates hosts, products, or arbitrary FOFA fields. It is distinguishable from fofa_search only by the word "aggregate", not by any stated scope or output.

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 statement of when to use this versus fofa_search, fofa_fields, or fofa_exposure_review, all of which sit adjacent in the sibling list. The only guidance is a negative constraint (product cannot be aggregated) and a throttle, not a routing rule.

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