Skip to main content
Glama

fofa_syntax

Read-onlyIdempotent

Retrieve official FOFA query operators and syntax fields from the API appendix to build accurate search queries and validate syntax.

Instructions

Return official FOFA query operators and syntax fields from the API appendix.

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_syntax"
  }
}

Input Schema

NameRequiredDescriptionDefault
keywordNo
sectionNooverview

Output Schema

NameRequiredDescriptionDefault
dataNo
summaryYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv2.0.2
    • addedInput schema / properties / keyword
      Added value: +{
      +  "default": "",
      +  "title": "Keyword",
      +  "type": "string"
      +}
    • addedInput schema / properties / section
      Added value: +{
      +  "default": "overview",
      +  "title": "Section",
      +  "type": "string"
      +}
  2. First observedv2.0.1

TDQS

B3/5.0
Behavior3/5

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

The annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is largely covered. The description adds that content is official and comes from the API appendix, implying a static, cached reference response. It says nothing about how results are scoped or paginated when keyword/section are supplied, so it adds only modest context beyond the annotations.

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?

A single tight sentence with the core purpose front-loaded and no redundant wording. It is efficient, though the brevity comes at the cost of the parameter and usage detail noted elsewhere.

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, and the read-only nature is annotation-covered. However, for a two-parameter reference tool with zero schema coverage, the definition should at minimum explain what keyword and section select, and how this differs from fofa_fields.

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 full burden for the two parameters, yet it never mentions 'keyword' or 'section' and never explains the default 'overview' section. The parameters' titles are bare ('Keyword', 'Section') with no enum or description, leaving the agent guessing what values are valid.

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 gives a specific verb and resource: returning FOFA query operators and syntax fields, sourced from the official API appendix. This is clearly a reference/lookup tool, but it never distinguishes itself from the nearby sibling fofa_fields, which plausibly covers overlapping field metadata, so an agent must still infer which one to call.

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 tool, when not to, or which sibling to prefer (fofa_validate_query, fofa_fields, fofa_search). The phrase 'from the API appendix' hints at a static reference lookup, but that is inference rather than guidance.

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