Skip to main content
Glama

search_patterns

Search Wireshark capture data for CTF flags (flag{...}) and custom regex patterns to uncover hidden clues during network analysis.

Instructions

【CTF必备】Search for patterns including CTF flags (flag{...}, CTF{...}) and custom regex. Use this when: 1) User asks to find flag, 2) User wants to search for specific patterns in traffic, 3) After following a TCP stream to search its content.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
session_idYesID of the session
data_sourceNoData source: tcp_streams, http_body, or raw_packettcp_streams
search_flagNoSearch for CTF flag patterns
stream_indexNoOptional TCP stream index (for tcp_streams/http_body)
custom_patternNoCustom regex pattern to search
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It implies a read-only search operation and mentions data sources and optional stream index, but does not disclose potential side effects, limitations, or behavior on no matches. This is adequate but not rich.

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?

The description is compact, front-loaded with the main purpose, and uses a clear list for usage scenarios. Every sentence contributes value without unnecessary detail.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The description adequately covers purpose, usage context, and key parameters. However, with no output schema, it does not mention return format or behavior when no matches are found, which would be useful for a search tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and all parameters already have descriptions. The description adds some contextual meaning (e.g., linking custom regex and CTF flags to specific parameters) but does not significantly enhance understanding beyond the schema.

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

Purpose5/5

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

The description clearly states it searches for patterns including CTF flags and custom regex, with a specific verb ('search') and resource ('patterns'). It also lists explicit use cases, distinguishing it from sibling tools by focusing on pattern searching rather than detection or extraction.

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?

Provides three explicit 'when to use' scenarios: finding flags, searching specific patterns, and searching after following a TCP stream. This gives clear context for usage, though it does not mention when not to use or explicitly name alternative tools.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Gentle-bae/mcp-wireshark'

If you have feedback or need assistance with the MCP directory API, please join our Discord server