Skip to main content
Glama

fofa_search_next

Read-onlyIdempotent

Fetches the next page of FOFA search results using an opaque cursor to continue asset queries; if the cursor expires, start a new search.

Instructions

Continue with the opaque cursor immediately. An expired cursor (40870) is an error; start a new search.

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>",
      "cursor": "<cursor>",
      "fields": "<fields>"
    },
    "name": "fofa_search_next"
  }
}

Input Schema

NameRequiredDescriptionDefault
fullNo
sizeNo
queryYes
cursorYes
fieldsYes

Output Schema

NameRequiredDescriptionDefault
pagesNo
queryYes
totalNo
usageNo
fieldsYes
recordsYes
summaryYes
consumedNo
page_sizeNo
max_recordsNo
next_cursorNo
duplicates_removedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv2.0.2
    • addedOutput schema / properties / duplicates_removed
      Added value: +{
      +  "default": 0,
      +  "title": "Duplicates Removed",
      +  "type": "integer"
      +}
    • addedOutput schema / properties / max_records
      Added value: +{
      +  "default": 100,
      +  "title": "Max Records",
      +  "type": "integer"
      +}
    • addedOutput schema / properties / page_size
      Added value: +{
      +  "default": 100,
      +  "title": "Page Size",
      +  "type": "integer"
      +}
    • addedOutput schema / properties / pages
      Added value: +{
      +  "default": 1,
      +  "title": "Pages",
      +  "type": "integer"
      +}
    • addedOutput schema / properties / usage
      Added value: +{
      +  "additionalProperties": true,
      +  "title": "Usage",
      +  "type": "object"
      +}
  2. First observedv2.0.1

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, and non-destructive behavior, so safety is covered. The description adds genuinely useful error semantics for code 40870 and the "immediately" hint that cursors are short-lived, but it omits that the cursor must be replayed with the same query/fields and does not explain cursor lifetime.

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, front-loaded with the primary action, with no filler. The error-handling note is compact and immediately actionable.

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 described. However, for a five-parameter pagination tool with zero schema coverage, the definition leaves out the critical constraint that query/fields must match the original search and says nothing about how long a cursor remains valid.

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 five parameters, so the description carries the full burden. It only clarifies that the cursor is opaque and must be passed through verbatim; query, fields, size, and full are given no meaning at all, including whether they must match the originating search.

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?

"Continue with the opaque cursor" clearly identifies this as a pagination/continuation operation rather than a fresh search, and the closing "start a new search" implies the alternative path. It never names fofa_search directly, so the sibling differentiation is inferred rather than stated.

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?

The description tells the agent when to invoke it (holding a cursor from a prior search) and what to do on failure (expired cursor is an error, restart with a new search). It stops short of naming the sibling tool to call for the restart or explaining when a fresh search is preferable to paging.

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