Skip to main content
Glama

fofa_rules

Read-onlyIdempotent

Search and preview bounded rule sets by category or keyword, then inspect per-rule verification before running product searches.

Instructions

Search a bounded rule preview; focus by category/keyword and inspect per-rule verification before product searches.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "fofa_rules"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
keywordNo
categoryNo

Output Schema

NameRequiredDescriptionDefault
dataNo
summaryYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv2.0.2
    • addedInput schema / properties / category
      Added value: +{
      +  "default": "",
      +  "title": "Category",
      +  "type": "string"
      +}
    • addedInput schema / properties / limit
      Added value: +{
      +  "default": 50,
      +  "title": "Limit",
      +  "type": "integer"
      +}
  2. First observedv2.0.1

TDQS

C2.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, openWorldHint=false and destructiveHint=false, so the safety profile is fully covered and the description needn't repeat it. The description does add one real trait — the result set is "bounded" (a preview rather than exhaustive results) — plus the notion of per-rule "verification" data, but neither is explained (bound size, what verification means).

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 a single front-loaded sentence with no padding, which is good, but the density comes at the cost of clarity — phrases like "bounded rule preview" and "per-rule verification" are compressed to the point of obscurity.

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 for a three-parameter search tool with no enums and zero schema coverage, the definition leaves too much open: what a rule is, what the bounded preview contains, and how it relates to fofa_search and fofa_validate_query.

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 must carry parameter meaning, and it only loosely gestures at "category/keyword". The limit parameter (default 50) is never mentioned, no formats, value ranges, or default behavior are explained, and it is unclear whether category and keyword combine or are alternatives.

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?

The verb is "search" but the resource, "bounded rule preview", is ambiguous — nothing in the definition says what a "rule" is or where the preview comes from. The phrase "before product searches" does hint it is a precursor to fofa_search, which gives partial sibling differentiation, but an agent still cannot confidently say what this returns.

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?

Usage is only implied: "inspect per-rule verification before product searches" suggests a pre-flight step ahead of fofa_search, but it never names that sibling or states when not to use this tool. There is no guidance on whether this is mandatory before searching or optional exploration.

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