Skip to main content
Glama

Pentest Encode

pentest_encode_payload
Read-onlyIdempotent

Transform a payload string through an ordered encoding chain for authorized filter research. Results include the final value, intermediate values, optional decode path and rationale, and detection guidance. All transforms are local; no live probing occurs.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
chainYesOrdered list of encodings to apply (1–6 steps). Applied left to right. E.g., ["unicode", "url"] applies Unicode escape first, then URL-encodes the result.
explainNoWhether to include the decode path and bypass rationale.
payloadYesInput payload string to encode. Max 10,000 characters.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
errorNoPresent when the call failed. Absent on success.
encodedNoFinal encoded payload after all chain steps applied.
originalNoThe input payload.
decode_pathNoStep-by-step explanation of how a decoder (WAF, server, browser) would reverse the encoding chain. Included when explain is true.
detection_noteNoDetection methods for encoded variants, including normalization and behavior signals.
bypass_rationaleNoWhy this encoding combination might bypass common filter patterns. Included when explain is true.
intermediate_stepsNoIntermediate values at each encoding step, for tracing the chain.
authorized_use_reminderNoReminder that encoding transforms are for authorized bypass research only.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and openWorldHint=false, so safety is covered. The description adds real value beyond that: it discloses the return shape (final value, intermediate values, optional decode path and rationale, detection guidance) and explicitly states all transforms are local with no live probing, which an agent could not infer from annotations alone.

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?

Three sentences, front-loaded with the core action and scope, then output contents, then the safety caveat. No filler sentences and nothing repeated from the schema.

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

Completeness5/5

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

An output schema exists, so the description need not enumerate return fields in detail, and it still summarizes them at the right level. Combined with annotations covering the safety profile and a fully documented input schema, an agent has everything needed to call this correctly.

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 description coverage is 100%, so the schema already documents the payload, chain (with left-to-right ordering, max 6 steps and an example) and the explain flag. The description mentions the ordered chain and optional decode path but adds no syntax or format information beyond what the schema provides, so the baseline of 3 applies.

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 names a specific verb ('Transform/encode') and resource ('a payload string') plus the mechanism ('ordered encoding chain'), which is clearly distinct from siblings like pentest_generate_payloads or pentest_analyze_response. It does not explicitly name a sibling to differentiate against, so it stops short of a 5.

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?

The phrase 'for authorized filter research' implies the intended context, but there is no explicit when-to-use vs when-not, no prerequisites, and no routing to alternatives such as generate_payloads when no payload exists yet. Usage is only implied.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.