Skip to main content
Glama

fofa_agent_run

Read-onlyIdempotent

Launch a background FofaMap agent job from a natural-language intent and return immediately, then poll its status or cancel it with the related tools.

Instructions

Start an Agent background job with use_fofamap_model=true; returns immediately.

Poll fofa_job_status or cancel with fofa_job_cancel. Never scans. Omitted report_language follows interface language.

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": {
      "intent": "<intent>"
    },
    "name": "fofa_agent_run"
  }
}

Input Schema

NameRequiredDescriptionDefault
sizeNo
intentYes
sampleNo
max_pagesNo
web_searchNo
max_recordsNo
max_durationNo
report_languageNo
use_fofamap_modelNo

Output Schema

NameRequiredDescriptionDefault
dataNo
summaryYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed12 schema fields changedv2.0.2
    • addedInput schema / properties / max_duration
      Added value: +{
      +  "default": 600,
      +  "title": "Max Duration",
      +  "type": "integer"
      +}
    • addedInput schema / properties / max_pages / anyOf
      Added value: +[
      +  {
      +    "type": "integer"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / max_pages / default
      Previous value: -10New value: +null
    • removedInput schema / properties / max_pages / type
      Removed value: -"integer"
    • addedInput schema / properties / max_records / anyOf
      Added value: +[
      +  {
      +    "type": "integer"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / max_records / default
      Previous value: -1000New value: +null
    • removedInput schema / properties / max_records / type
      Removed value: -"integer"
    • addedInput schema / properties / report_language
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Report Language"
      +}
    • addedInput schema / properties / sample
      Added value: +{
      +  "default": false,
      +  "title": "Sample",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / size
      Added value: +{
      +  "default": 100,
      +  "title": "Size",
      +  "type": "integer"
      +}
    • addedInput schema / properties / use_fofamap_model
      Added value: +{
      +  "default": false,
      +  "title": "Use Fofamap Model",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / web_search
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "boolean"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Web Search"
      +}
  2. First observedv2.0.1

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is largely covered. The description adds genuine async context ('returns immediately', how to poll/cancel), but it omits cost, runtime bounds (max_duration default 600s), and what a job produces; starting a new job per call also sits in tension with idempotentHint=true, which the description does not address.

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 short, front-loaded sentences with no filler; the async-then-poll-then-cancel flow is easy to scan. The clipped fragment 'Never scans' is terse to the point of ambiguity about what it negates.

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-shape explanation is fairly excused, but for a background-job launcher with nine undocumented parameters the definition leaves too much unspecified: what the required intent looks like, how size/sample/max_pages/max_records interact, and what happens at max_duration timeout are all unstated.

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 9 parameters, so the description carries the full burden, yet it explains only report_language behavior and a use_fofamap_model value. Critical parameters such as intent (the sole required one), size, sample, max_pages, web_search, max_records and max_duration receive no semantic explanation anywhere.

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?

The description states a specific verb and resource ('Start an Agent background job') and adds the key async trait ('returns immediately'). It is distinguishable from siblings like fofa_search because it names the polling and cancel companions, though the odd phrase 'with use_fofamap_model=true' conflicts with the schema's default of false and muddies what the tool actually does by default.

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?

It tells the agent what to do after invocation ('Poll fofa_job_status or cancel with fofa_job_cancel') and rules out a use case with 'Never scans', implicitly pushing direct queries to fofa_search/fofa_validate_query. It does not explicitly say 'use this instead of fofa_search when you want a long-running report', so the alternative routing is inferential rather than stated.

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