Skip to main content
Glama

decode_stream

Decode Base64, hex, URL, or rot13 encoded data from a TCP stream. Use when you suspect an encoded flag or need to extract payloads from network traffic.

Instructions

【CTF必备】Automatically decode Base64, hex, URL, or rot13 encoded data. Use this when: 1) User asks to decode something, 2) After entropy analysis suggests encoding, 3) Found what looks like encoded flag.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
encodingNoEncoding type: auto, base64, hex, url, rot13auto
session_idYesID of the session
stream_indexYesTCP stream index to decode
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It mentions 'automatically decode' but does not state whether the operation is read-only, what happens if decoding fails, whether it affects session state, or any side effects. This is a significant gap for a tool operating on network streams.

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?

The description is concise and front-loaded with the core action. The leading '【CTF必备】' is non-essential decoration, but the overall length and structure are efficient, with clear use-case bullets following the main statement.

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?

For a tool with no output schema and no annotations, the description provides adequate purpose and usage guidance but lacks behavioral details (error handling, output format, read-only confirmation) needed for full contextual completeness. It's minimally viable but not comprehensive.

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?

The input schema already provides 100% description coverage for all three parameters. The description adds limited meaning by mentioning the encoding types (base64, hex, URL, rot13), which correspond to the 'encoding' parameter, but doesn't add anything beyond the schema's existing descriptions.

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 the tool's function: automatically decoding Base64, hex, URL, or rot13 encoded data. It uses a specific verb ('decode') and names the resource (encoded data streams), distinguishing it from sibling tools like follow_tcp_stream and analyze_entropy.

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 provides explicit when-to-use scenarios (user asks to decode, after entropy analysis, found encoded flag), giving clear context. However, it lacks explicit when-not-to-use guidance or mention of alternative tools, so it's just short of a 5.

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