Skip to main content
Glama
doublegate

CyberChef MCP Server

by doublegate

cyberchef_xor_key_length

Read-onlyIdempotent

Recover the key length of repeating-key XOR using index of coincidence, autocorrelation, and Kasiski statistics, then score candidate key bytes against English to decrypt.

Instructions

Recover the key length of a repeating-key XOR by three independent statistics — index of coincidence, autocorrelation and Kasiski — then score every candidate key byte per column against English and decrypt. Reports what each method concluded, so a disagreement is visible rather than averaged away. CyberChef's XOR Brute Force stops at a two-byte key. Measured over 72 cases: the exact length in 60%, and the length or a multiple of it — which still decrypts — in 96%. Least reliable on short inputs and on plaintext with its own strong period.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
inputYesThe ciphertext. At most 1 MB.
candidatesNoHow many ranked candidates to report.
input_formatNoHow `input` is encoded. Raw treats it as latin1 bytes.Raw
preview_bytesNoHow much decrypted output to return. 0 for none.
max_key_lengthNoLongest key length to consider.
assumed_common_byteNoAssume this is the most common plaintext byte in every column (32 for text) and take each column's most common ciphertext byte to be it. Unset, every candidate key byte is scored against English instead, which needs no assumption.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv3.6.0

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the readOnly and idempotent annotations, the description discloses meaningful behavior: it uses three independent statistics, reports disagreements rather than averaging them away, and decrypts. It also provides measured success rates and known limitations, giving an agent realistic expectations about output quality.

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?

Four dense sentences cover function, methodology, output behavior, differentiation, and limitations without wasted words. The core purpose is front-loaded, and every sentence adds information useful for selecting and invoking the tool.

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?

For a complex crypto-analysis tool with no output schema, the description covers method, output behavior, success rates, and limitations. It could be slightly more explicit about the exact shape of the returned candidates and decrypted preview, but the schema's preview_bytes and candidates parameters plus the description's 'reports what each method concluded' make the behavior sufficiently clear.

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 has full, detailed descriptions for all six parameters, including encoding options, defaults, and ranges, so the description does not need to restate them. The description adds little parameter-specific meaning, but baseline 3 is appropriate because the schema already carries the documentation burden.

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 opens with a specific verb and resource: 'Recover the key length of a repeating-key XOR' and explains it also scores key bytes against English and decrypts. It clearly differentiates itself by noting CyberChef's XOR Brute Force stops at a two-byte key, positioning this tool for longer keys.

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 gives useful selection context: CyberChef's XOR Brute Force only handles two-byte keys, implying this tool is for longer repeating-key XOR. It also adds reliability guidance by warning that it is least reliable on short inputs and plaintext with strong periodicity, though it does not explicitly name sibling alternatives or provide a full when-not-to-use list.

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

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/doublegate/CyberChef-MCP'

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