Skip to main content
Glama
zyj999-abc

crypto-reverse-mcp

by zyj999-abc

reconstruct_algorithm

Reconstruct standalone implementations of cryptographic algorithms from JavaScript source code and sample input/output pairs. Generate self-contained Python or Node.js code that reproduces the same transformation.

Instructions

Reconstruct a standalone implementation of a cryptographic algorithm from JS source + captured input/output samples. Given the original JS code and (optionally) sample input→output pairs, generate a self-contained Python implementation that reproduces the same transformation. Supports common AES/RSA/HMAC/MD5/SHA/SM2/SM3/SM4 patterns. Input: source code, optional samples (array of {input, output} pairs), target language (python/node). Returns reconstructed code + verification notes.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sourceYesJS source code containing the crypto function
samplesNoSample input/output pairs for verification
functionNameNoName of the target function to reconstruct (if known)
targetLanguageNoOutput language (default: python)
Behavior4/5

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

No annotations, so description carries full burden. It explains it generates self-contained Python implementation, supports common patterns, returns code + verification notes. Missing details on error handling or time limits, but adequate for a reconstruction tool.

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?

One paragraph with front-loaded purpose. Every sentence adds value, no waste. Efficient and clear.

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?

No output schema, but description states return value (reconstructed code + verification notes). Parameters well described. Could mention verification process more, but sufficient for the complexity.

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

Parameters4/5

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

100% schema coverage, so baseline is 3. Description adds value by explaining the role of samples as optional verification and target language options, beyond the schema 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?

Clear verb 'reconstruct' and resource 'cryptographic algorithm' with specific inputs (JS source, samples). Distinguishes from siblings like detect_crypto (detection) and extract_crypto_constants (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?

States when to use: given JS source and optionally samples to generate Python implementation. Implies context but does not explicitly exclude alternatives (e.g., if only detection needed, use detect_crypto).

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/zyj999-abc/crypto-reverse-mcp'

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