Skip to main content
Glama
Jambozx

OnlineCyberTools MCP (280+ filterable tools)

webdev_code_formatter

Read-onlyIdempotent

Format or minify HTML, CSS, or JavaScript code with configurable indentation and comment preservation. Select language and action, returns processed code with size and line statistics.

Instructions

HTML/CSS/JS Code Formatter and Minifier. Pretty-print or minify a single HTML, CSS, or JavaScript snippet using whitespace/brace indentation rules. Set language to pick the dialect and action to format (readable, indented) or minify (whitespace/comments stripped). This is the multi-language dispatcher: use webdev_css_beautifier or webdev_javascript_beautifier for those single languages, and webdev_sql_formatter, json_formatter, or webdev_xml_formatter for SQL/JSON/XML (not supported here). Heuristic whitespace formatter, not an AST validator, so JSX, template literals, and malformed input may need review. Runs locally via a Node bridge: read-only, non-destructive, contacts no external service, rate-limited (60 req/min anon). Returns the processed output plus size/line statistics.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYesSource code to process (alias: input). Must be non-empty.
languageNoSource dialect. Unknown values fall back to html.html
actionNoformat = readable indentation; minify = strip whitespace (and comments unless preserved). Any value other than "minify" is treated as format.format
optionsNoFormatting/minifying options.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
inputNoThe original code, echoed back.
outputNoThe formatted or minified result.
languageNoLanguage actually used (post-fallback).
actionNoAction actually applied.
statisticsNoSize and line metrics comparing input to output.
Behavior5/5

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

Beyond annotations (readOnly, non-destructive), description adds details about local execution via Node bridge, rate limiting (60 req/min anon), and output contents (size/line stats). No contradictions.

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 concise, front-loaded with key actions, and structured with clear sections: summary, usage guidance, limitations, and behavioral notes. Every sentence adds value.

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?

Given the tool's complexity (4 params, nested object, output schema), the description covers all essential aspects: purpose, usage, alternatives, limitations, behavior, and output. No gaps.

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?

Schema coverage is 100%, so baseline is 3. The description adds value by explaining the meaning of 'format' vs 'minify' actions and the role of indentSize, but schema descriptions already cover parameters well.

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 formats and minifies HTML, CSS, or JavaScript code, and identifies it as a multi-language dispatcher. It differentiates from sibling tools like webdev_css_beautifier and webdev_javascript_beautifier.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly tells when to use this tool versus alternatives (e.g., for single languages or SQL/JSON/XML). Also warns about limitations like JSX and malformed input, guiding appropriate usage.

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/Jambozx/onlinecybertools-mcp-server'

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